Fan Tsz Ho, LOHANAKAKUL Sasatorn
This project has separate frontend and backend folders. Please follow the steps below to set up each part.
git clone https://github.com/your-username/4021-Group-Project.git
cd 4021-Group-ProjectBackend:
cd shooting_area/backend
npm installFrontend:
cd ../../shooting_area/frontend
npm installcd shooting_area/backend
node server.jsFirst, build the frontend:
cd ../../shooting_area/frontend
npm run buildThen, serve the built files on port 8000 (requires serve):
npm install -g serve
serve -s dist -l 8000http://localhost:8000
Note:
Make sure that localhost:3000 is available for the backend server connection. If another service is using this port, stop it or change the backend server port in your configuration.
If you want to test the multiplayer function on your local machine, please use different browsers or incognito/private windows for each player.
Our game supports more than 2 players, but browsers may have issues with cookies when opening multiple tabs in the same browser.
!!! Do not reload during the game, as the room will be closed once the game started. If reload accidently, all the remaining players need to logout and refresh the page to pair new game. !!!