Requests information about Pokemon currently in inventory from Niantic and displays stats for each Pokemon in a table.
- Install NodeJS - Node version used in development is 6.3.1
- Navigate to project root, open a terminal, and run:
npm install
to install dependencies
-
To run both the Node server and the webapp, open a terminal in the project root and run:
npm startThis 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 serverThis 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 webappThis 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-devThis 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.
-
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.