Skip to content

Initial setup

Mark Fullmer edited this page Jun 15, 2020 · 1 revision

Pre-requisites

Install & run

Once all the prerequisites have been met, the following commands will scaffold the codebase:

  1. Clone this repository
  2. nvm use 10
  3. npm install
  4. ng serve

Connecting to the backend

The src/environments/environment.ts file provides a model for the domain, consumer key and secret that need to be supplied to connect to the backend API.

Different environments can be defined here, such as environment.development.ts (which can then be built via ng build --environment=development) or environment.prod.ts (which can be built via the shorthand ng build --prod).

Troubleshooting

Can't run ng build --prod

You probably don't have a src/environments/environment.prod.ts file. See "Connecting to the backend," above.

Clone this wiki locally