Trötbot
This bot retrieves toots from Mastodon.
What does "Tröt" mean anyway?
"Tröt" is the German word for toot, the noise a mastodon or elephant makes while exhaling through their proboscis.
Setup for local development with QuarkusDev
- Set your instance's hostname in
src/main/resources/application.properties
. - Retrieve an Access Token from your mastodon instance:.
- Go to settings / development.
- Create a new application.
- Required privileges:
read
.
- Copy the file
env.template
to.env
. - Paste your access token.
- Start the application with
./gradlew quarkusDev
OpenAPI specification
OpenAPI specification can be received from http://localhost:8080/q/openapi.
Swagger UI is available at http://localhost:8080/q/swagger-ui.
Running in a local kubernetes cluster
Bootstrap a cluster by following the instructions.
Set your mastodon instance and access token here.
If you are currently developing and want to test your changes locally use:
$ tilt up -- --local
This will run a gradle build
and update the deployed image whenever changes are made.
The troetbot should be available under http://localhost:8888.