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
- Host: GitHub
- URL: https://github.com/ahmedrafid023/express-backend-server
- Owner: AhmedRafid023
- Created: 2025-02-22T05:16:31.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-04-30T17:29:53.000Z (about 1 year ago)
- Last Synced: 2026-01-03T16:32:05.890Z (6 months ago)
- Topics: expressjs, mongodb, nodejs, rest-api
- Language: JavaScript
- Homepage: https://express-backend-server-omega.vercel.app
- Size: 4.53 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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