ki-frontend/README.md

59 lines
880 B
Markdown
Raw Permalink Normal View History

2021-05-31 16:14:28 +02:00
# ki-frontend
2021-07-26 21:07:57 +02:00
[![Build Status](https://drone.wtf-eg.de/api/badges/kompetenzinventar/ki-frontend/status.svg)](https://drone.wtf-eg.de/kompetenzinventar/ki-frontend)
2021-06-07 17:41:25 +02:00
Vue3 Projekt:
2021-07-28 21:52:12 +02:00
2021-05-31 16:14:28 +02:00
## Project setup
```
2021-06-14 22:27:23 +02:00
npm ci
2021-05-31 16:14:28 +02:00
```
2021-07-28 21:52:12 +02:00
### Konfigurationsdatei anpassen
```
cp public/config.js.dev public/config.js
vi public/config.js
```
2021-05-31 16:14:28 +02:00
### Compiles and hot-reloads for development
```
2021-07-28 21:52:12 +02:00
npm run serve
2021-05-31 16:14:28 +02:00
```
### Compiles and minifies for production
```
2021-07-28 21:52:12 +02:00
npm run build
2021-05-31 16:14:28 +02:00
```
### Lints and fixes files
```
npm run lint
```
### Customize configuration
See [Configuration Reference](https://cli.vuejs.org/config/).
2021-06-07 17:41:25 +02:00
Vorraussetzung: Node & NPM
2021-06-14 22:27:23 +02:00
## Docker
### Image bauen
```
2021-07-26 21:01:45 +02:00
docker build --target ki-frontend --tag ki_frontend .
2021-06-14 22:27:23 +02:00
```
### Container starten
```
docker run \
--name=ki_frontend \
2021-07-28 21:52:12 +02:00
-v ${PWD}/public/config.js:/user/share/nginx/html/config.js \
2021-06-14 22:27:23 +02:00
-p 8000:80 \
ki_frontend
```