Skip to content

Latest commit

 

History

History

app

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

app README

Monorepo

Please read the README first.

About

The frontend visualizes our processed data it also provides options to annotate and export the data.

Development

Initial setup

  1. Create a /.env file in the root folder based on /.env.example.
  2. To test the login, you need to setup your own OSM OAuth 2-Application, see osm-auth and update the credentials.

Start

Run nvm use to user the recommended NodeJS version.

Run npm run dev wich will start docker and ../processing automatically if needed.

Our Tooling

(Tip) Testing the production bundle

In the app/ directory do the following:

  1. Make sure npm run dev works as expected. This will make sure all packages are patched.
  2. Create a .env.production.local with settings like
    NEXT_PUBLIC_APP_ORIGIN=http://127.0.0.1:3000
    NEXT_PUBLIC_APP_ENV='staging' # 'staging', 'production'
    
  3. Run npm run build and npm run start to test the production bundle. There is also a dockerized version of our frontend which one can run with docker compose --profile frontend up.

(Tip) NextJS

Helper scripts

All helper scripts run with bun.