Generated docs: https://ontola.gitlab.io/cache/index.html
This server is the Cache + Front-end server for Argu. It serves as the entry point, hosts the web application, serves cached resources, and queries Apex when needed.
This project is likely to be renamed to libro-server in the near future, as it no longer serves as just a cache.
- Open the project in IntelliJ IDEA
- Copy the environment file
cp .env.template .env - Start the run configuration (libro > Tasks > application > run) in the gradle menu (By default on the right)
Alternatively, use KTOR_ENV=development ./gradlew run to start the project
from the command line.
Apexand other Ontola services must be running. Seecore.- Make sure you have a
.envfromcoresymlinked to this directory. - See [resources/application.conf] for configuration options
- Run
KTOR_ENV=development ./gradlew run
application > runStarts the server.build > assembleBuilds the project.build > buildBuilds the project and runs the tests.build > cleanRemoves any build caches.verification > allTestsRuns the test suite.verification > ktlintCheckChecks for linting issues.formatting > ktlintFormatFixes any auto-fixable linting issues.documentation > dokkaHtml, dokkaGhm, etcBuilds the documentation.documentation > dokkaServeServes local html version of the docs.