forked from kompetenzinventar/ki-frontend
provide config.js
This commit is contained in:
18
README.md
18
README.md
@ -3,19 +3,28 @@
|
||||
[](https://drone.wtf-eg.de/kompetenzinventar/ki-frontend)
|
||||
|
||||
Vue3 Projekt:
|
||||
|
||||
## Project setup
|
||||
```
|
||||
npm ci
|
||||
```
|
||||
|
||||
### Konfigurationsdatei anpassen
|
||||
|
||||
```
|
||||
cp public/config.js.dev public/config.js
|
||||
vi public/config.js
|
||||
```
|
||||
|
||||
|
||||
### Compiles and hot-reloads for development
|
||||
```
|
||||
VUE_APP_API_URL=http://localhost:8000 npm run serve
|
||||
npm run serve
|
||||
```
|
||||
|
||||
### Compiles and minifies for production
|
||||
```
|
||||
VUE_APP_API_URL=http://localhost:8000 npm run build
|
||||
npm run build
|
||||
```
|
||||
|
||||
### Lints and fixes files
|
||||
@ -28,9 +37,6 @@ See [Configuration Reference](https://cli.vuejs.org/config/).
|
||||
|
||||
Vorraussetzung: Node & NPM
|
||||
|
||||
### Enviroment Variable
|
||||
VUE_APP_API_URL ist die Enviroment Variable mit der die Adresse der API übergeben wird
|
||||
|
||||
|
||||
## Docker
|
||||
|
||||
@ -46,7 +52,7 @@ docker build --target ki-frontend --tag ki_frontend .
|
||||
```
|
||||
docker run \
|
||||
--name=ki_frontend \
|
||||
-e VUE_APP_API_URL=http://localhost:5000 \
|
||||
-v ${PWD}/public/config.js:/user/share/nginx/html/config.js \
|
||||
-p 8000:80 \
|
||||
ki_frontend
|
||||
```
|
||||
|
Reference in New Issue
Block a user