De TOP app verzorgt de informatievoorziening voor toezichthouders op pad. Door middel van een variabele configuratie kunnen zij een looplijst van adressen samenstellen.
Clone this repository and install its dependencies:
git clone https://github.com/Amsterdam/top-frontend-v2.git
cd top-frontend-v2
npm installThen open http://localhost:3000
npm start accThe app now exposes a web app manifest and service worker so it can be installed as a PWA.
- Installed launches open directly on
/lijst-instellingen, the first step. - Offline support depends on having opened the app online at least once so the shell and cached API responses are available.
- App shell / static assets: precached at build time by Workbox.
- Runtime config (
/config/env.js):NetworkFirst, so the app prefers the latest environment config but can still boot from a cached copy offline. - All API
GETrequests:NetworkFirst.- This applies to requests under
/api/v1/on any host, including the main backend and the separate puntenteller backend. - PDOK search requests are also
NetworkFirst. - If the network is unavailable, the last successful cached
GETresponse is used when available.
- This applies to requests under
- Mutating API requests (
POST,PUT,PATCH,DELETE): network only.- Creating, saving, completing, and reordering visits requires an active network connection.
- Retention: runtime API caches are kept for up to 24 hours.
- When the browser is offline, the page header menu shows
WiFiIconwith the labelOffline.
The main branch is automatically deployed to acceptance.
Tag any branch, but preferably main, with a tag like v1.0.0 to deploy that specific commit
to production.
Generate typings in __generated__ directory.
npm run generate:api-schema:acctree -I "node_modules|.next|.git" -L 10 > directory-tree.txt- Go to the ee-ads-rhf repo.
- Run
npm run build - Run
npm link - Go back to this repo
- Run
npm link @amsterdam/ee-ads-rhf