1
|
# Prujezd-vozidel-PK - frontend
|
2
|
Frontend pro zobrazení dat o průjezdu vozidel pro Plzeňský kraj
|
3
|
|
4
|
## Configuration
|
5
|
|
6
|
The configuration files are in the `./config/`.
|
7
|
The files `development.json` and `production.json` overwrite the main configuration file `default.json`.
|
8
|
|
9
|
This is the default configuration:
|
10
|
```json
|
11
|
{
|
12
|
"API_URL": "http://students.kiv.zcu.cz/~valesz/index.php/api/v1",
|
13
|
"TOKEN_GENERATOR_PATH": "../backend/lib/generateToken.php"
|
14
|
}
|
15
|
```
|
16
|
|
17
|
## Build
|
18
|
|
19
|
Install dependencies:
|
20
|
|
21
|
```bash
|
22
|
$ npm install
|
23
|
```
|
24
|
|
25
|
And build:
|
26
|
|
27
|
```bash
|
28
|
$ npm run build:production
|
29
|
```
|
30
|
Output directory is `./dist`
|