53 lines
1.2 KiB
Markdown
53 lines
1.2 KiB
Markdown
# buerokalender
|
|
|
|
Eine kleine Webapp um die Belegung eines Büroarbeitsplatzes ohne Kollision zu buchen.
|
|
|
|
## Running the application in dev mode
|
|
|
|
You can run your application in dev mode that enables live coding using:
|
|
```shell script
|
|
./mvnw compile quarkus:dev
|
|
```
|
|
|
|
## Packaging and deployment
|
|
|
|
The application can be packaged using:
|
|
```shell script
|
|
./mvnw package
|
|
```
|
|
It produces the `quarkus-run.jar` file in the `target/quarkus-app/` directory.
|
|
|
|
If you want to build an _über-jar_, execute the following command:
|
|
```shell script
|
|
./mvnw package -Dquarkus.package.type=uber-jar
|
|
```
|
|
|
|
The application is now runnable using `java -jar target/quarkus-app/quarkus-run.jar`.
|
|
|
|
### Creating a native executable
|
|
|
|
You can create a native executable with no GraalVM installed:
|
|
```shell script
|
|
./mvnw package -Pnative -Dquarkus.native.container-build=true
|
|
```
|
|
|
|
...and execute it:
|
|
```shell script
|
|
export POSTGRES_HOST=localhost
|
|
export POSTGRES_PORT=5432
|
|
export POSTGRES_USER=buerokalender
|
|
export POSTGRES_PASSWORD=buerokalender
|
|
|
|
target/buerokalender-1.1.0-runner
|
|
```
|
|
|
|
Push to docker.io:
|
|
```shell script
|
|
./mvnw clean package -DskipTests -Dquarkus.container-image.push=true
|
|
```
|
|
|
|
## Set up
|
|
|
|
Initial Admin-User $BASE_URL/user/init
|
|
|