MongoDB - https://docs.mongodb.com/manual/installation/
Node 8+
MovieDB API Key
./config/default
- update the MongoDB connection string and the MovieDB api key.
A Postman collection has been provided for ease of testing.
-
npm install
- install dependencies -
npm run start
- start express, listening on configured port -
Create an authorization key or api-key:
GET /api/login
. -
Create a User with
POST /api/admin/users
passing the API key asx-api-key
header and a body payload as{ "username": "boaty", "firstName": "Boaty", "lastName": "McBoatface" }
-
Retrieve User ID from
GET /api/admin/users
with API key. -
Create a User favorite -
POST /api/users/[USER_ID]/favorites
, a body payload as{ "movieID": 76341 }