An open API service indexing awesome lists of open source software.

https://github.com/ahmedrafid023/express-backend-server

It is an express.js backend server using mongoDB as database
https://github.com/ahmedrafid023/express-backend-server

expressjs mongodb nodejs rest-api

Last synced: 3 months ago
JSON representation

It is an express.js backend server using mongoDB as database

Awesome Lists containing this project

README

          

# 🎬 Matrix Backend - Movie Website API

This is the backend server for the **Matrix** movie website, built using **Node.js, Express.js, and MongoDB**.

## πŸš€ Live API
πŸ”— [Express Backend Server](https://express-backend-server-omega.vercel.app/)

## πŸ› οΈ Tech Stack
- **Hosting:** Vercel ☁️
- **Node.js** ⚑
- **Express.js** πŸš€
- **MongoDB & Mongoose** πŸ“¦
- **JWT Authentication** πŸ”
- **CORS & Dotenv** 🌍

## πŸ“¦ Installation

Clone the repository:
```sh
git clone https://github.com/AhmedRafid023/Express-backend-server.git
cd matrix-backend
```

Install dependencies:
```sh
npm install
```

Create a `.env` file in the root directory and add:
```
PORT=5000
MONGO_URI=your_mongodb_connection_string
JWT_SECRET=your_jwt_secret
```

Run the development server:
```sh
npm run devStart
```

## πŸ“Œ API Endpoints

### Authentication
- `POST /api/auth/register` - Register a new user
- `POST /api/auth/login` - Login and get JWT token

### User Watchlist
- `POST /api/watchlist/add` - Add a movie to watchlist
- `GET /api/watchlist/check` - Check if it's already in the watchlist
- `GET /api/watchlist` - Get user’s watchlist
- `DELETE /api/watchlist/remove` - Remove a movie from watchlist

## 🀝 Contributing
Contributions are welcome! Feel free to fork the project and submit a PR.

## πŸ“œ License
MIT License Β© 2025 Ahmed Rafid