2018-08-02 13:41:30 +00:00
|
|
|
# Control Center
|
|
|
|
|
2022-11-17 10:21:54 +00:00
|
|
|
Admin Dashboard
|
|
|
|
|
|
|
|
## ⚙️ Installation
|
2018-08-02 13:41:30 +00:00
|
|
|
|
2023-10-11 12:06:48 +00:00
|
|
|
1. Add configurations:
|
2022-04-25 08:20:58 +00:00
|
|
|
|
2022-11-17 10:21:54 +00:00
|
|
|
- [`src/assets/appConfig.json`](./src/assets/_appConfig.json)
|
|
|
|
- [`src/assets/authConfig.json`](./src/assets/_authConfig.json)
|
|
|
|
|
|
|
|
You can copy from examples like this one: [`_appConfig.json`](./src/assets/_appConfig.json)
|
2022-04-25 08:20:58 +00:00
|
|
|
|
|
|
|
2. Install packages
|
|
|
|
```sh
|
|
|
|
npm ci
|
|
|
|
```
|
2018-08-02 13:41:30 +00:00
|
|
|
|
2022-09-06 14:14:45 +00:00
|
|
|
### Stage
|
|
|
|
|
|
|
|
Running in stage mode needs files:
|
|
|
|
|
|
|
|
- `src/assets/appConfig.stage.json`
|
|
|
|
- `src/assets/authConfig.stage.json`
|
|
|
|
|
2022-11-17 10:21:54 +00:00
|
|
|
## 🚀 Launch
|
2019-03-15 11:11:29 +00:00
|
|
|
|
2022-04-25 08:20:58 +00:00
|
|
|
1. Start
|
|
|
|
```sh
|
|
|
|
npm start
|
|
|
|
```
|
|
|
|
2. Open [localhost:4200](http://localhost:4200/)
|
2022-08-01 16:21:48 +00:00
|
|
|
|
|
|
|
If you want to develop a library, then it's better to start building library separately:
|
|
|
|
|
|
|
|
```sh
|
|
|
|
npm run dev
|
|
|
|
npm run dev-libs
|
|
|
|
```
|
2022-11-17 10:21:54 +00:00
|
|
|
|
|
|
|
## 👩💻 Development
|
|
|
|
|
|
|
|
### Console Utilities
|
|
|
|
|
|
|
|
- `ccSwitchLogging()` - Enable/disable logging requests to the console
|
|
|
|
- `ccGetMyRoles()` - Display your roles from the token
|