MannyNR / Top-100-Superhero-Movies-API

A JSON API using Mongoose and Express on IMDB's Top 100 Superhero movies (as of 03/30/22)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Welcome to my IMBD's Top 100 Superhero Movies API

The Basics

================

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).


Getting Started

========================

Installation

  1. First make sure to have the latest Node Package Manager Installed (NPM).
npm install npm@latest -g
  1. Clone the repo in your desired folder
git clone https://github.com/MannyNR/Top-100-Superhero-Movies-API.git
  1. Install NPM packages
npm install
  1. Seed the data
npm run db:seed
  1. Connect to server
npm run start

alt text


API Reference

=====================

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/

Get all Movies on the list:

alt text


Create a new Movie and add to the list:

alt text

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 },
};

Let's see our newly added superhero movie:

alt text


Update/comment on an unfair spot for a great superhero movie:

alt text


Deleting, because 101 Dalmatians is not a superhero movie...:

alt text



Deployed on Heroku!

Link to deployed app

alt text

About

A JSON API using Mongoose and Express on IMDB's Top 100 Superhero movies (as of 03/30/22)


Languages

Language:JavaScript 100.0%