Giter Club home page Giter Club logo

notflix's Introduction

Notflix API

The project is generated by LoopBack using MongoDB hosted on MLabs.

Running the Server

to start the server you should have Node.js and run the NPM instaled. Clone the repo and then run

npm install

Allow the packages to fully install and then you should be able to run

node . from the command line

This should start your server on localhost:3000. You will see something that looked like it's broken. That's a good sign!

Travel to http://localhost:3000/explorer and you'll see our available models. Click movies to see all the available routes for that model. Click Users for the same.

You can click on one of the protocols and test the API directly from the explorer. Or travel to http://localhost:3000/api/movies to see all the movies listed. The current schema is:

{
	"title": "Superbad",
	"run_time": "90min",
	"genre": "comedy",
	"description": "Hinjinks ensue -- we can deletethis at any time",
	"id": "59e44e0e30fd4a2db463605f"
}

We can edit this schema at any point in time. We might not need it at all.

React Front End Should be in client_src directory

Okay, so we are running React in development so all client facing files should be in the client_src directory so we can keep our servers separate and then production ready application can run on the same port at the server.

For now the React app should run on port 3001 which is in the config file.

cd client_src/

You may need to run npm install again, I'm not totally sure, but once it's ready you can either run

npm start or yarn start to get the basic react package started!

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.