Skip to content

Latest commit

 

History

History
45 lines (27 loc) · 1.86 KB

File metadata and controls

45 lines (27 loc) · 1.86 KB

Pokemon Go Reader

Requests information about Pokemon currently in inventory from Niantic and displays stats for each Pokemon in a table.

Dependencies

  1. Install NodeJS - Node version used in development is 6.3.1
  2. Navigate to project root, open a terminal, and run:

npm install

to install dependencies

Building/Running

  • To run both the Node server and the webapp, open a terminal in the project root and run:

    npm start

    This will start the Node server on the port specified in server/config/properties.js by the server.port property. It will also transpile the webapp and start a http-server instance on http://localhost:8080.

  • To run only the Node server, open a terminal in the project root and run:

    npm run server

    This will start the Node server on the port specified in server/config/properties.js by the server.port property.

  • To run only the webapp, open a terminal in the project root and run:

    npm run webapp

    This will transpile the webapp and start a http-server instance on http://localhost:8080.

  • To run only the webapp in development mode, open a terminal in the project root and run:

    npm run webapp-dev

    This will transpile the webapp, watch for front end changes and re-transpile when they are detected, and start a lite-server instance on http://localhost:3000.

Notes

  • You will want to change the apiHost property in webapp/services/properties.service.ts to the local IP of the machine that's running the Node server. If you don't do this, the front end requests will fail.

  • If you use a Google account and have two factor authentication enabled, you will need to generate an app password and use that to log in.