This is the backend for the Smart Chat application. It uses Node.js, Express, and MongoDB (with Mongoose).
- User authentication
- JWT-based security
- MongoDB database connection
- RESTful API structure
- Node.js
- MongoDB (local or remote)
- Clone the repository
- Install dependencies:
npm install
- Set up your
.envfile (see.env.examplefor template) - Start the server:
npm run dev
MONGODB_URI: MongoDB connection stringPORT: Server portJWT_SECRET: Secret for JWT tokensFRONTEND_URL: Allowed frontend origin for CORS
backend/
├── src/
│ ├── app.js
│ ├── db/
│ │ └── dbconfig.js
│ ├── models/
│ ├── controllers/
│ ├── routes/
│ └── utils/
├── .env
├── .env.example
├── package.json
└── README.md
MIT