- Svelte
- Express
- Socket.io
The application is composed of two components. A client and server, you'll have to set both of them up for the application to function.
In both ./web and ./server run
- npm
npm install --save
- Clone the repo
git clone https://github.com/ramenguy21/sequence-game.git
- Install NPM packages
npm install
- Enter relevant .env details,
For server, the .env config is:
For client,
PORT = 3000;
VITE_SERVER_ADDRESS="http://localhost:3000/"
To play the game, go to (http://localhost:5173/). Enter a username. It will print a string to the console. Copy the string, go to another tab with the same address, click on "Join a room" button, and enter another username and the previously copied string into the room name.
- Dynamic lobby support.
- Functioning game end check.
- Support for reconnection.
Muhammad Hamza Asad - [email protected]