- (Make sure you have npm and nodejs installed on your system)
- Run
npm init -yto initialize the nodejs project- Run
npm installto build all the packages
- Please note that nodemon need to be installed separately as a dev-dependency using the
npm install nodemon --save-devcommand.
- Use the following command to run the project:
npm start- This will start up the project and specify the url: (ex.
http://localhost:5050)
- Start up the app (i.e. run the project) and navigate to the specified url (ex.
http://localhost:5050).- Register a user using the provided registration field
- Next, enter your username and password. After submitting, the page home page will redirect you to the chat page.
- To register another user and navigate to the same url (ex.
http://localhost:5050), open a new tab or window and follow similar proceedures as before.
- After both users logged in successfully, you are free to chat))
https://www.npmjs.com/package/bcrypt https://socket.io/ https://docs.mongodb.com/manual/