This offline-first web application provides tree recommendations for different climate change scenarios.
This is a Next.js project bootstrapped with create-next-app
.
- Install all dependencies:
pnpm install
- Optionally customize vector tiles endpoint: copy
.env
to.env.local
and modify the endpoint variable. - Build the app for production:
pnpm build
- Serve the
./build
directory using your favorite HTTP server. - Optionally run the app in development mode:
pnpm dev
- Open http://localhost:3000 with your browser to see the result.
Please use the GitHub issue tracker for all bugs and feature requests. Before creating a new issue, do a quick search to see if the problem has been reported already..
Deploy master to production on https://www.tree-app.ch:
- Create a deploy branch (e.g.
johnDoe/deployProd20082024
) from the current master and push - Create a pull request with base branch
production
and the deploy branch as compare branch. - Merge with the option
Rebase and Merge
orSquash and Merge
(github might not let you rebase due to conflicts)
To test offline-mode in development, the local build must be launched using http (not https). This can be done with the following steps:
pnpm build
pnpm global add serve
serve -s build