Coder Social home page Coder Social logo

project-mongo-api's Introduction

Mongo API Project

Database and API of netflix titles created with MongoDB, Express and Node.js

Endpoints:

/shows - lists the 20 first shows in the API

/shows/type/movies - lists the 20 first shows of type movies

/shows/type/tv-shows - lists the 20 first shows of type TV-show

/shows/released/:year - lists the 20 first shows in the API that was released in the given year

/shows/:id - lists the show with the corresponding ID in the API

Queries:

title - /shows?title={search word} lists every show which has the given parameter in its title

page - /shows?page={number} lists the 20 shows of that page in the API

limit - /shows?limit={number} limits the number of shows in the result

The process

I started with getting my data into the mongo database locally with the mongoose method mongoose.model(). Then I created the first route "shows" to make sure I could reach the data with mongoos method .find(). When this worked I started creating more routes and queries based on the data of the dataset, added error handling and more filter as I had the time. For example to limit the amout of results and picking what "page" to fetch. The API is then connected to Heroku and the database to the cloud with MongoDB Atlas.

View it live

Deployed with Heroku: https://netflix-mongo-db.herokuapp.com/

project-mongo-api's People

Contributors

corneliaryas avatar emolsz avatar dependabot[bot] avatar idlefingers avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.