Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rishabhraikwar98/chats-backend
Backend for Chats Realtime chat app created with MERN Stack and Socket.IO
https://github.com/rishabhraikwar98/chats-backend
express javascript mern-stack mongodb mongoose nodejs npm postman realtime-chat socket-io zod-validation
Last synced: about 1 month ago
JSON representation
Backend for Chats Realtime chat app created with MERN Stack and Socket.IO
- Host: GitHub
- URL: https://github.com/rishabhraikwar98/chats-backend
- Owner: rishabhraikwar98
- Created: 2024-05-27T10:55:50.000Z (8 months ago)
- Default Branch: main
- Last Pushed: 2024-07-18T14:40:36.000Z (7 months ago)
- Last Synced: 2024-07-18T18:36:02.373Z (7 months ago)
- Topics: express, javascript, mern-stack, mongodb, mongoose, nodejs, npm, postman, realtime-chat, socket-io, zod-validation
- Language: JavaScript
- Homepage:
- Size: 76.2 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Chats (Backend)
This project is the backend of a real-time chat application built with MERN Stack and Socket.IO . It provides a robust and scalable server-side solution for handling authentication, real-time messaging, and dynamic user status updates, friend requests etc.
## Features
- Real-time Messaging: Facilitates instant messaging between users using Socket.IO.
- Authentication: Secure user authentication using JWT.
- User Management: Handles user registration, login, and profile updates.
- Dynamic Online Status: Updates and provides users' online status in real-time.
- Message Storage: Persists messages and chat history using MongoDB.
- Notifications: Sends real-time notifications for new messages and friend requests.## Run Locally
Clone the project
```bash
git clone https://github.com/rishabhraikwar98/Chats-Backend
```Go to the project directory
```bash
cd Chats-Backend
```Install dependencies
```bash
npm install
```Start the server
```bash
npm run start
```## Environment Variables
To run this project, you will need to add the following environment variables to your .env file
`MONGO_URI`
`BASE_URL` (Frontend)
`JWT_SECRET`
`CLOUDINARY_CLOUD_NAME`
`CLOUDINARY_API_SECRET`
`CLOUDINARY_API_KEY`
## Tech Used
- Node.js: For server-side JavaScript runtime.
- Express.js: For creating the server and handling API routes.
- MongoDB: For database management.
- Mongoose: For MongoDB object modeling.
- Socket.IO: For real-time communication.
- JWT: For secure user authentication.
- Zod: For form validation.
## RelatedFrontend Repo
[Chats](https://github.com/rishabhraikwar98/chats)