Welcome to the next major version of PRUNplanner, now open-sourced and community-driven! After years of developing PRUNplanner—the empire and base management tool for Prosperous Universe—on my own, I've decided to make the frontend rework public. This new version leverages the already public PRUNplanner API to create an enhanced user experience.
Development previews are powered by Netlify: http://preview.prunplanner.org/
Please Note, v2 uses the production backend. Changes made in the preview will be persisted to the database as if you would work with prunplanner.org. It is currently not served with HTTPS.
Install dependencies with pnpm install
and run the vite development:
pnpm run dev
PRUNplanners frontend currently lacks proper and full-scope testing of its non-visual features and data validation. One aim of this rewrite is to reach full test coverage and zod
validation.
Backend calls can be mocked easily with axios-mock-adapter.
# Run tests
pnpm run test
# Or use vitest-ui
pnpm run test:ui
Key | Type | Default Value |
---|---|---|
VITE_APP_VERSION | string | "0.xx" |
VITE_API_BASE_URL | string | "https://api.prunplanner.org" |
VITE_SHARE_BASE_URL | string | "https://prunplanner.org/shared" |
GAME_DATA_STALE_MINUTES_BUILDINGS | int | 1440 |
GAME_DATA_STALE_MINUTES_RECIPES | int | 1440 |
GAME_DATA_STALE_MINUTES_MATERIALS | int | 1440 |
GAME_DATA_STALE_MINUTES_EXCHANGES | int | 30 |
GAME_DATA_STALE_MINUTES_PLANETS | int | 180 |
PRUNplanner is allowed to use Highcharts as it got a license certificate granted for its Core
and Stock
libraries. If you want to use this repository outside of local development, please ensure to follow the Highcharts license terms and conditions that might apply.