open source API for movies app build by Node JS / Express JS / Mongo DB with another technologies like :
- JWT -> Json Web Token (instead sessions)
- Bcrypt -> Data Encryption
Clone the project
git clone https://github.com/AhmedMahmoud929/netflix-clone-api
Go to the project directory
cd netflix-clone-api
Install dependencies
npm install
Configure .env
file with this variables :
PORT
-> localhost portDB_URL
-> your mongo db urlSECRET_KEY
-> the key that the JWT will use
Start the server
npm run start
AUTH
/api/auth/register [POST]
/api/auth/login [POST]
USERS
/api/users [GET]
/api/users/:id [GET]
/api/users/:id [PATCH]
/api/users/:id [DELETE]
MOVIES
/api/movies [GET]
/api/movies [POST]
/api/movies/:id [GET]
/api/movies/:id [PATCH]
/api/movies/:id [DELETE]
LISTS
/api/lists [GET]
/api/lists [POST]
/api/lists/:id [DELETE]
USERS
/api/users/?limit=10 [GET]
MOVIES
/api/movies/?genre=romantic [GET]
/api/movies/?type=serie [GET]
LISTS
/api/lists/?genre=romantic [GET]
/api/lists/?type=serie [GET]