Skip to content

Latest commit

 

History

History
39 lines (27 loc) · 973 Bytes

File metadata and controls

39 lines (27 loc) · 973 Bytes

AngularDashboard

Environment

remember to change the environments in the file /src/environments/environment.ts:

export const environment = {
  production: false,
  apiUrl: 'http://localhost:8000'
};

When you add new env variables, remember to also update the entrypoint.sh script for deploying smoothly

Deployment

There is a Dockerfile which builds the angular app, and then copies the nginx configuration and the entrypoint.sh script, useful for environment variables. You will need to set the environment variables in the machine you will deploy the app to.

Development server

To start a local development server, run:

ng serve

Code scaffolding

Angular CLI includes powerful code scaffolding tools. To generate a new component, run:

ng generate component component-name

For a complete list of available schematics (such as components, directives, or pipes), run:

ng generate --help