This project was generated with Angular CLI version 11.0.7.
Separating and securing configuration (or anything likely to vary between deployment environments) from source code will enable us to:
- Build once, deploy everywhere: strictly separate stages into build-release-run results in fast feedback, preventing code changes at runtime.
- Reduce gap between development and production environment.
- Change configurations in environments without changing source code.
- Apply credentials as environment variables to free of potential security threats.
tl;dr: To achieve those goals mentioned above, there are 3 steps:
- Containerize an application, and inject a configuration file into an artifact before deploying (if there are no credentials in configuration file, that’s all you need).
- Secure a configuration file.
- Secure a configuration file’s encryption key.
Read full article on Medium: Secure Angular configuration/credentials in containerized environment (as of 2021)
Node: v12.16.1 npm: v6.4.1
Run npm start
for a dev server. Navigate to http://localhost:4200/
. The app will automatically reload if you change any of the source files.
Run ng generate component component-name
to generate a new component. You can also use ng generate directive|pipe|service|class|guard|interface|enum|module
.
Run npm run build
to build the project. The build artifacts will be stored in the dist/
directory. Use the --prod
flag for a production build.
Run npm test
to execute the unit tests via Karma.