An efficient and scalable backend service built using Node.js and MongoDB to power a real-time Chat Application. This service manages authentication, and authorization and provides seamless interaction. MongoDB serves as the persistent data storage, enabling secure and flexible data management for messages and user profiles.
Server: Node, Express, MongoDB
- bcrypt
- express
- jsonwebtoken
- mongodb
- mongoose
- nodemon
- socket.io
- validator
- User authentication & authorization
- Session storage
- Create a chat room
- Join a chat room
- Leave the chat room
- Send a message to room participants
To run this project, you will need to add the following environment variables to your .env file
MONGODB_USERNAME
MONGODB_PASSWORD
JWT_SECRET_KEY
POST http://localhost:3000/auth/register
POST http://localhost:3000/auth/login
POST http://localhost:3000/auth/logout
POST http://localhost:3000/rooms/create-room
POST http://localhost:3000/rooms/join-room
POST http://localhost:3000/rooms/leave-room
POST http://localhost:3000/messages/send
Clone the project
git clone https://github.com/gurudattpuranik25/chat-application.git
Go to the project directory
cd chat_application
Install dependencies
npm install
Start the server
npm start
If you have any feedback, please reach out to me at [email protected]