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
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.
To start a local development server, run:
ng serveAngular CLI includes powerful code scaffolding tools. To generate a new component, run:
ng generate component component-nameFor a complete list of available schematics (such as components, directives, or pipes), run:
ng generate --help