This project is a backend service for a web application. It provides APIs for user authentication, data management, and other functionalities.
- Node.js
- Express.js
- MongoDB
- JWT (JSON Web Token)
- Clone the repository:
git clone https://github.com/yourusername/minor2-backend.git
- Navigate to the project directory:
cd minor2-backend - Install dependencies:
npm install
- Create a
.envfile in the root directory and add the following environment variables:PORT=3000 MONGODB_URI=your_mongodb_uri JWT_SECRET=your_secret_key
- Start the development server:
npm run dev
- The server will be running at
http://localhost:3000.
POST /v1/api/auth/register- Register a new userPOST /v1/api/auth/login- Login a userPOST /v1/api/auth/login- Logout a user
This project is licensed under the MIT License.
For any inquiries, please contact [your email address].