Skip to content

Commit

Permalink
Code to test deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
uo288543 committed Apr 8, 2024
1 parent d8ce759 commit 9108ae4
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
7 changes: 7 additions & 0 deletions multiplayer/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,13 @@ const getQuestion = () => {
});
};

//TODO REMOVE
app.get("/test", (req, res) => {
const q = getQuestion();
res.json({ test: q });
});


function getAndEmitQuestions(roomCode) {
const questionList = [];
const getQuestionSequentially = async () => {
Expand Down
3 changes: 2 additions & 1 deletion webapp/src/pages/Game.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,9 @@ import CardContent from '@mui/material/CardContent';
const apiEndpoint = process.env.REACT_APP_API_ENDPOINT || 'http://localhost:8000';


const Game = () => {
const Game = () => {//TODO REMOVE
console.log("apiEndpoint: ", apiEndpoint)
console.log("process.env.REACT_APP_API_ENDPOINT: ", process.env.REACT_APP_API_ENDPOINT)
const navigate = useNavigate();
const MAX_ROUNDS = 3;
const SUCCESS_SOUND_ROUTE = "/sounds/success_sound.mp3";
Expand Down
2 changes: 1 addition & 1 deletion webapp/src/pages/MultiplayerRoom.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ const MultiplayerRoom = () => {
const navigate = useNavigate();
const [gameLoaded, setGameLoaded] = useState(false);

useEffect(() => {
useEffect(() => { //TODO REMOVE
console.log("SOCKET ENDPOINT URL: ", socketEndpoint)
console.log("process.env.REACT_APP_MULTIPLAYER_ENDPOINT: ", process.env.MULTIPLAYER_ENDPOINT);
const newSocket = io(socketEndpoint);
Expand Down

0 comments on commit 9108ae4

Please sign in to comment.