Author: Benoit Sioc'han de Kersabiec
This project has been made to be admitted to the Digital Tech Year. It is a Pictionary Game. Users can login/register and then play. Once a user is logged in, he can see all the games he has created and join an ongoing game. A game can start when there is at least 2 players. A 'drawer' is choosen among the players. He chooses a word among three propositions and start to draw. The other players take guesses. Once all the other players have guessed or once the time has elapsed (after 90s), the drawer changes and the cycle restarts. A game globally end when one player hits 500 points.
An internet connection is needed
Ensure you have nodeJS installed (version 10.18.0 or heigher)
- Clone the repository
- Go in the pictionary_back folder
- Run
npm install
- Run
node server.js
- Go in the pictionary_front folder
- Run
npm install
- Run
npm run start
- Once it has start, go to localhost:3000
- To launch the process on a local network, change the server address in /pictionary_front/.env to your disired IP adress
This project is using the MERN stack:
- MongoDB (Database)
- Express (to build an nodeJS web application)
- React (FrontEnd Side)
- NodeJS (BackEnd side)
The database is in the cloud (MongoDB Atlas), thus it's already initialized
Mongoose is used to deal with the mongoDB database
Autentification tokens are manage by Jason Web Token
Real time transmission for drawing and chating is achieved thanks to Socket.io
Linter used is ESlint
To log in as an admin, use:
email: admin@admin.com
password: adminSession