https://github.com/prasanth2817/chat-application-backend
The backend is built using Node.js with Express for handling API requests and Socket.IO for real-time messaging. MongoDB stores user data and chat messages, with Mongoose handling database operations. JWT is used for authentication, and bcrypt for password hashing. The code follows the MVC architecture for maintainability.
https://github.com/prasanth2817/chat-application-backend
bcryptjs cors dotenv expressjs jwt-authentication moongose mvc-architecture nodejs socket-io
Last synced: about 1 month ago
JSON representation
The backend is built using Node.js with Express for handling API requests and Socket.IO for real-time messaging. MongoDB stores user data and chat messages, with Mongoose handling database operations. JWT is used for authentication, and bcrypt for password hashing. The code follows the MVC architecture for maintainability.
- Host: GitHub
- URL: https://github.com/prasanth2817/chat-application-backend
- Owner: prasanth2817
- Created: 2024-10-08T18:31:30.000Z (7 months ago)
- Default Branch: main
- Last Pushed: 2024-10-17T18:17:57.000Z (7 months ago)
- Last Synced: 2025-02-13T02:23:09.897Z (3 months ago)
- Topics: bcryptjs, cors, dotenv, expressjs, jwt-authentication, moongose, mvc-architecture, nodejs, socket-io
- Language: JavaScript
- Homepage: https://chat-application-backend-ar01.onrender.com
- Size: 6.5 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Chat Application Backend:
Overview:
The backend of this chat application is built using Node.js and Express with a real-time communication layer powered by Socket.IO.
It handles authentication, user management, and chat storage using MongoDB. The backend follows the MVC architecture for better code organization.Features:
Node.js with Express for RESTful APIs.
Socket.IO for real-time messaging.
MongoDB with Mongoose for data storage.
JWT Authentication for securing API routes.
bcrypt for hashing user passwords.
Follows MVC architecture for maintainability.
Deployed on Render
Installation:
1.Clone the repository.
2.Install dependencies:
npm install
3.Create a .env file and add your environment variables:
MONGODB_URI=
JWT_SECRET=4.Start the development server:
npm start
Scripts:
Scripts:
npm start: Start the application.
npm run dev: Start the application in development mode.