2021-07-14 17:41:12 +02:00
|
|
|
# Explore
|
2018-01-23 11:07:39 +01:00
|
|
|
|
2023-09-15 14:33:14 +02:00
|
|
|
This project was generated with [Angular CLI](https://github.com/angular/angular-cli) version 7.3.10 and has been updated to 16.1.7.
|
2018-01-23 11:07:39 +01:00
|
|
|
|
2021-07-14 17:41:12 +02:00
|
|
|
## Install packages
|
2018-01-23 11:07:39 +01:00
|
|
|
|
2021-07-14 17:41:12 +02:00
|
|
|
Run npm install (maybe needs sudo), a script that will delete unused files from library will be run.
|
2018-01-23 11:07:39 +01:00
|
|
|
|
2021-07-14 17:41:12 +02:00
|
|
|
## Development server
|
2018-01-23 11:07:39 +01:00
|
|
|
|
2021-07-14 17:41:12 +02:00
|
|
|
Run `npm start` for a dev server. Navigate to `http://localhost:4300/`. The app will automatically reload if you change any of the source files.
|
2018-01-23 11:07:39 +01:00
|
|
|
|
2021-07-14 17:41:12 +02:00
|
|
|
## Build - CSR
|
2018-01-23 11:07:39 +01:00
|
|
|
|
2021-07-14 17:41:12 +02:00
|
|
|
Use the `npm run build-dev` for a development build.<br>
|
|
|
|
Use the `npm run build-test` for a test build.<br>
|
|
|
|
Use the `npm run build-beta` for a beta build.<br>
|
|
|
|
Use the `npm run build-prod` for a production build.
|
2018-01-23 11:07:39 +01:00
|
|
|
|
2021-07-14 17:41:12 +02:00
|
|
|
## Build - SSR
|
2018-01-23 11:07:39 +01:00
|
|
|
|
2021-07-14 17:41:12 +02:00
|
|
|
Use the `npm run build:ssr-dev` for a development build.<br>
|
|
|
|
Use the `npm run build:ssr-test` for a test build.<br>
|
|
|
|
Use the `npm run build:ssr-beta` for a beta build.<br>
|
|
|
|
Use the `npm run build:ssr-prod` for a production build.
|
2018-01-23 11:07:39 +01:00
|
|
|
|
2021-07-14 17:41:12 +02:00
|
|
|
## Run SSR
|
2018-01-23 11:07:39 +01:00
|
|
|
|
2021-07-14 17:41:12 +02:00
|
|
|
`npm run serve:ssr` will run the last server build.
|
2018-01-23 11:07:39 +01:00
|
|
|
|
2021-07-14 17:41:12 +02:00
|
|
|
## Webpack Analyzer
|
2018-01-23 11:07:39 +01:00
|
|
|
|
2021-07-14 17:41:12 +02:00
|
|
|
In order to analyze bundle size you can run `npm run webpack-bundle-analyzer`
|
2018-01-23 11:07:39 +01:00
|
|
|
|
2021-07-14 17:41:12 +02:00
|
|
|
## Running unit tests
|
2018-01-23 11:07:39 +01:00
|
|
|
|
2021-07-14 17:41:12 +02:00
|
|
|
Run `ng test` to execute the unit tests via [Karma](https://karma-runner.github.io).
|
2018-01-23 11:07:39 +01:00
|
|
|
|
2021-07-14 17:41:12 +02:00
|
|
|
## Running end-to-end tests
|
2018-01-23 11:07:39 +01:00
|
|
|
|
2021-07-14 17:41:12 +02:00
|
|
|
Run `ng e2e` to execute the end-to-end tests via [Protractor](http://www.protractortest.org/).
|