Skip to content

Hardy0611/4021-Group-Project

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

95 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

4021 Group Project: Group 39

Fan Tsz Ho, LOHANAKAKUL Sasatorn

Getting Started

This project has separate frontend and backend folders. Please follow the steps below to set up each part.

1. Clone the repository

git clone https://github.com/your-username/4021-Group-Project.git
cd 4021-Group-Project

2. Install dependencies

Backend:

cd shooting_area/backend
npm install

Frontend:

cd ../../shooting_area/frontend
npm install

3. Start the backend server

cd shooting_area/backend
node server.js

4. Build and serve the frontend (production)

First, build the frontend:

cd ../../shooting_area/frontend
npm run build

Then, serve the built files on port 8000 (requires serve):

npm install -g serve
serve -s dist -l 8000

5. Open your browser and go to

http://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. !!!

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors