Skip to content

Utsavrai1/snap_talk_backend

Repository files navigation

SnapTalk Backend

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.

Features

  • User authentication
  • Real-time messaging
  • Chat rooms
  • Online/offline status
  • Message history

Technologies Used

  • Backend: Express.js, Node.js
  • Database: MongoDB
  • Real-time Communication: Socket.IO

Related Repositories

Installation

To get started with the backend, follow these steps:

Prerequisites

  • Node.js and npm installed
  • MongoDB installed and running

Clone the Repository

git clone https://github.com/Utsavrai1/snap_talk_backend.git
cd snap_talk_backend

Install Dependencies

npm install

Configure Environment Variables

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

Run the Application

npm run dev

The backend should now be running on http://localhost:3001.

Contributing

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.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published