Real-time web-based chat app created with Node.js, socket.io and MongoDB 👾
This project is a challenge given to me by Jobsity 💻
The aim is to develop a browser-based chat application where multiple users can chat in real-time.
The technologies used for this projects are:
- Node.js v12.18.3 ➡️ Backend language
- Express v4.17.1 ➡️ Backend framework
- Socket.io v2.3.0 ➡️ Real-time event-based communication library
- MongoDB ➡️ Database
- Vanilla JS ➡️ Frontend language
- Jest.js ➡️ Testing Framework
The following Bonus were achieved during the development of the app
- Have more than one chatroom.
- Unit test the functionality you prefer.
- Handle messages that are not understood or any exceptions raised within the bot.
Please be aware that you MUST set up your own DATABASEURL environment variable for the proper working order.
You can initialize a .env file and store the DATABASEURL env variable in it.
The dotenv dependency will initialize the env variables in the .env file. \
To run this project. First clone the repository locally using:
git clone [repositoryurl]
then you can run:
npm install
npm start
To run the test:
npm test