https://github.com/geops/tree-app
PWA for tree recommendations
https://github.com/geops/tree-app
frontend
Last synced: 3 months ago
JSON representation
PWA for tree recommendations
- Host: GitHub
- URL: https://github.com/geops/tree-app
- Owner: geops
- License: mit
- Created: 2019-06-27T06:49:51.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2025-04-08T13:14:01.000Z (3 months ago)
- Last Synced: 2025-04-10T10:47:32.508Z (3 months ago)
- Topics: frontend
- Language: JavaScript
- Homepage: https://tree-app.ch
- Size: 117 MB
- Stars: 5
- Watchers: 4
- Forks: 5
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# tree-app
This offline-first web application provides tree recommendations for different climate change scenarios.
This is a [Next.js](https://nextjs.org/) project bootstrapped with [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app).
## Installation
1. Install all dependencies: `pnpm install`
2. Optionally customize vector tiles endpoint: copy `.env` to `.env.local` and modify the endpoint variable.
3. Build the app for production: `pnpm build`
4. [Serve](https://create-react-app.dev/docs/deployment/) the `./build` directory using your favorite HTTP server.
5. Optionally run the app in development mode: `pnpm dev`
6. Open [http://localhost:3000](http://localhost:3000) with your browser to see the result.## Bugs
Please use the [GitHub issue tracker](https://github.com/geops/tree-app/issues) 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
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` or `Squash and Merge` (github might not let you rebase due to conflicts)## Run service-worker locally
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`