Prototype.net test

Starwar API

clone the repo

npm install

// Production run

npm start

// Local development run

node app.js

http://localhost:1337

if you run npm start on localhost, the server will redirect you to the main site (hosted on Heroku)

if you want to test it locally, try one of those ways:

  • run it in debug mode
  • or change the NODE_ENV to development mode
  • or node app.js

//

Task 4

in the current Database schema there is no relation between the Planet and People, So it is not possible to solve it because there is no way to know the Pilot's Planet.

Important Note

The App does not use a Database, So the Login session will be lost after each server restart. Also the User's record will not be permanent on Heroku server.