"Een eerlijke prijs voor lokaal opgewekte stroom en warmte."
A financial and energy calculation tool for Energy Cooperatives.
Live tool: cooperatieconfigurator.local4local.nu
made by Zenmo
anylogic | Simulation code. |
webtool | Root of the webtool. Contains a Docker compose file to run locally. |
├─ frontend | SPA based on React and Vite. Can build an artifact to embed in external website. |
└─ gradle | Gradle main project (nu.local4local) with sub projects: |
├─ common | DTOs and serialization logic shared between frontend, backend and AnyLogic. |
├─ backend | Webserver based on Kotlin and http4k. |
└─ /client | Library to connect from AnyLogic. |
1. cd to webtool
2. Copy ngrok.example.env
to ngrok.env
and optionally fill it out.
3. Install dependencies:
docker compose run --rm gradle-js
docker compose run --rm npm-base
4. Run components:
docker compose up -d backend frontend
Ensure client library is up-to-date
cd webtool
docker compose run --rm gradle-client-shadowjar
Alternatively:
cd webtool
./gradlew[.bat] client:shadowJar