This is the NodeJS Socket Server. You will also need to pull down the frontend Angular Client in order to run it locally.
If you get stuck during setup just reach out to me.
I prefer not to mess with the git command line where possible, so download Github Desktop if you don't already have it, then follow along.
- Open Github Desktop
- Sign in.
- Click File > Clone Repository
- Select
deception-game-socket-server
from the list - Pay attention to the Local Path at the bottom so you know where to find the project.
- Click Clone
At this point the code has been pulled down to the folder mention in Local Path.
- Go here
- Click
Download Node.js and NPM
- Open a command prompt
- CD into
deception-game-socket-server
- Run
npm install
(could take a while) - Add a file to the main folder, and name it
.env
- Add
PORT=8080
to the file - Add
ORIGIN=http://localhost:4200
to the file.
- In the command prompt, run
npm watch
You will need to run both the Client and the Socket Server in order for everything to work.