- clone the repository
- Run npm install
- Run npm run start
- open browser http://localhost:8080
Node.js
Express
MongoDB
HTML
CSS
JS
I have used Node.js in this project because it is perfect for real time communication and in the required chess game we have to update the data in real-time basis. I have used socket library for establishing real-time connection.
I have used MongoDB because it can handle variety of data and huge amount of data. It offers a MongoDB Node.js Driver which provides a JavaScript API and implements the network protocol required to read and write from a local or remote MongoDB database.
app->config->database.js Models contain the schema document. Match is the name of Schema which store the game information, id of user and moves.Game request send | receiver's end |
---|---|