Skip to content

Abhimanyu012/smart_chat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Smart Chat Backend

This is the backend for the Smart Chat application. It uses Node.js, Express, and MongoDB (with Mongoose).

Features

  • User authentication
  • JWT-based security
  • MongoDB database connection
  • RESTful API structure

Getting Started

Prerequisites

  • Node.js
  • MongoDB (local or remote)

Installation

  1. Clone the repository
  2. Install dependencies:
    npm install
  3. Set up your .env file (see .env.example for template)
  4. Start the server:
    npm run dev

Environment Variables

  • MONGODB_URI: MongoDB connection string
  • PORT: Server port
  • JWT_SECRET: Secret for JWT tokens
  • FRONTEND_URL: Allowed frontend origin for CORS

Project Structure

backend/
├── src/
│   ├── app.js
│   ├── db/
│   │   └── dbconfig.js
│   ├── models/
│   ├── controllers/
│   ├── routes/
│   └── utils/
├── .env
├── .env.example
├── package.json
└── README.md

License

MIT

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors