2018-11-27 09:06:26 +00:00
|
|
|
# Dashboard
|
|
|
|
|
2018-11-30 13:26:03 +00:00
|
|
|
## Libraries
|
2018-11-27 09:06:26 +00:00
|
|
|
|
2018-11-30 13:26:03 +00:00
|
|
|
- [Angular CLI](https://github.com/angular/angular-cli)
|
|
|
|
- [Angular Material](https://material.angular.io/)
|
|
|
|
- [Prettier](https://prettier.io/)
|
2019-04-25 11:56:34 +00:00
|
|
|
|
2022-09-06 12:56:35 +00:00
|
|
|
## Guides
|
2019-04-25 11:56:34 +00:00
|
|
|
|
2022-09-06 12:56:35 +00:00
|
|
|
- [Using typography](https://material.angular.io/guide/typography)
|
|
|
|
- [Theming your components](https://material.angular.io/guide/theming-your-components)
|
2020-11-20 16:39:59 +00:00
|
|
|
|
2022-09-06 12:56:35 +00:00
|
|
|
## Installation
|
|
|
|
|
|
|
|
1. Add environment and configurations:
|
|
|
|
|
2023-04-24 11:27:12 +00:00
|
|
|
- `src/.env`
|
|
|
|
- `src/appConfig.json`
|
|
|
|
- `src/authConfig.json`
|
|
|
|
|
|
|
|
You can copy from examples like this one: [`_appConfig.json`](./src/_appConfig.json)
|
2022-09-06 12:56:35 +00:00
|
|
|
|
|
|
|
2. Install packages
|
|
|
|
```sh
|
|
|
|
npm ci
|
|
|
|
```
|
2020-11-20 16:39:59 +00:00
|
|
|
|
2018-11-30 13:26:03 +00:00
|
|
|
## Development server
|
2018-11-27 09:06:26 +00:00
|
|
|
|
2022-09-06 12:56:35 +00:00
|
|
|
1. `npm start`
|
2019-11-19 14:30:54 +00:00
|
|
|
|
2018-11-30 13:26:03 +00:00
|
|
|
1. Navigate to `http://localhost:8000/`
|
2018-11-27 09:06:26 +00:00
|
|
|
|
2018-11-30 13:26:03 +00:00
|
|
|
## Production build
|
2018-11-27 09:06:26 +00:00
|
|
|
|
2018-11-30 13:26:03 +00:00
|
|
|
1. Run `npm run build`
|
|
|
|
1. The build artifacts will be stored in the `dist/` directory.
|
2018-11-27 09:06:26 +00:00
|
|
|
|
2018-11-30 13:26:03 +00:00
|
|
|
## Tests
|
2018-11-27 09:06:26 +00:00
|
|
|
|
2018-11-30 13:26:03 +00:00
|
|
|
- Run `npm run test` to execute the unit tests via [Karma](https://karma-runner.github.io).
|
2018-12-04 17:38:16 +00:00
|
|
|
|
|
|
|
## Utils
|
|
|
|
|
|
|
|
### Analyze bundle size
|
|
|
|
|
2020-04-15 16:49:05 +00:00
|
|
|
```sh
|
|
|
|
npm run build -- --prod --stats-json --extraWebpackConfig webpack.extra.js
|
|
|
|
npx webpack-bundle-analyzer dist/stats.json
|
|
|
|
```
|