docs: Add readme

This commit is contained in:
Minecon724 2025-02-17 09:10:30 +01:00
parent 1ad64f8e24
commit 1ba51886f4
Signed by: Minecon724
GPG key ID: 3CCC4D267742C8E8

View file

@ -1,3 +1,41 @@
- `/api/server/heartbeat` - server heartbeat
- `/api/plugin/{id}` - plugin info
- `/api/plugin/find/{name}` - find a plugin id by name
- `/api/plugin/find/{name}` - find a plugin id by name
## Deployment
**Note:** if you have any issues with the build, do `./mvnw clean` and try again.
### Docker
The best way to deploy is using Docker.
To build an image:
```bash
./mvnw install -Dquarkus.container-image.build=true
```
TODO write instructions.
### Java
#### Normal JAR
To build a JAR:
```bash
./mvnw package
```
The output will be `target/quarkus-app/quarkus-run.jar` \
You to distribute the whole `target/quarkus-app` directory.
#### Uber JAR
To build an uber-JAR:
```bash
./mvnw package -Dquarkus.package.jar.type=uber-jar
```
The output will be `target/mstats-1.0.0-runner.jar` \
You only need distribute that JAR.
### Native
To build a GraalVM native image:
```bash
./mvnw package -Dnative
```
The output will be `target/mstats-1.0.0-runner` \
You only need to distribute that executable.