Giter VIP home page Giter VIP logo

movies's Introduction

Movies

This application is generated using LoopBack 4 CLI with the initial project layout.

Prerequisites

Install dependencies and run the project

By default, dependencies were installed when this application was generated. Whenever dependencies in package.json are changed, run the following command inside the movies folder:

npm ci && npm start

Play around

Open http://127.0.0.1:3000/explorer/ in your browser. there you can find an explorer to test out all endpoints.

img.png

All MoviesController operations required a token: string that you can obtain by passing the following JSON to /login endpoint, to edit the example JSON just click on "Try it out" button on the right side.

{
    "email": "[email protected]",
    "password": "57Blocks!!"
}

Or you can create a new user with /register to create a different (email, password) pair.

Step by step /login:

img_1.png

Modify the example JSON for the data shown before.

img_2.png

Then click on "Execute", if the process was successful a new token it's generated that will work for the next 20 min.

img_4.png

Otherwise, there is described all possible responses by /login:

img_3.png

For the rest of the endpoint the process is very similar.

  • Note 1: The filter object can be used filter the request in multiple way, in particular to paginate (See Pagination Example) using { limit, skip }.

  • Note 2: For GET /movies the filter object can go empty {} to see the full result without filters.

Public movies

img_5.png

LoopBack

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.