SnapTalk is a real-time chat application. This repository contains the backend code built using Express.js and Node.js, with MongoDB as the database.
- User authentication
- Real-time messaging
- Chat rooms
- Online/offline status
- Message history
- Backend: Express.js, Node.js
- Database: MongoDB
- Real-time Communication: Socket.IO
- Frontend Repository: SnapTalk-Frontend
- Backend Repository: SnapTalk-Backend
- Mobile App Repository: SnapTalk Mobile
To get started with the backend, follow these steps:
- Node.js and npm installed
- MongoDB installed and running
git clone https://github.com/Utsavrai1/snap_talk_backend.git
cd snap_talk_backend
npm install
Create a .env file in the snap_talk_backend directory and add the following environment variables:
PORT=3001
DATABASEURL=your_mongodb_connection_string
JWT_SECRET=your_jwt_secret
FRONTEND_URL=http://localhost:3000
npm run dev
The backend should now be running on http://localhost:3001.
Contributions are welcome! Please fork the repository and create a pull request with your changes. Ensure your code follows the project's coding standards and includes tests where applicable.