================
A JSON API following the CRUD standard, (Create Read Update Delete). Technologies used for this API were Node, MongoDB, Mongoose and Express. The API provides the Top 100 Superhero movies according to IMDB user: dmap-161-475937 (updated as of March 30, 2022).
========================
- First make sure to have the latest Node Package Manager Installed (NPM).
npm install npm@latest -g
- Clone the repo in your desired folder
git clone https://github.com/MannyNR/Top-100-Superhero-Movies-API.git
- Install NPM packages
npm install
- Seed the data
npm run db:seed
- Connect to server
npm run start
=====================
Using a GUI program like Postman or for CLI users HTTPIE or CURL, you can create, read, update and delete documents in the database's collection.
http://localhost:3000/api/movies/
Keep in mind there are some required fields to create a new movie document:
{
Position: { type: Number },
Const: { type: String },
Created: { type: Date },
Modified: { type: Date },
Title: { type: String, required: true },
URL: { type: String, required: true },
Title_Type: { type: String },
IMDb_Rating: { type: Number, required: true },
Runtime_mins: { type: Number },
Year: { type: Number },
Genres: { type: String },
Num_Votes: { type: Number },
Release_Date: { type: Date },
Directors: { type: String },
};