Skip to content

norman27/mastr-city-dashboard

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Marktstammdatenregister Dashboard

Preview

TODOs

  • move data creation to ApiController to prepare separate frontend
  • experiment with rust router (par_iter())
  • cleanup frontend

Requirements

API Key

You have to register a user and apply for an API Key https://www.marktstammdatenregister.de/MaStRHilfe/subpages/webdienst.html

Usage

In order to start the application it is recommended to open it in VSCode DevContainer. Then simply run it using:

apachectl start

Development Database

In case you want to dump the prod data into the local docker db run:

# go into the scripts directory
cd scripts

# use docker to dump the tables. replace <variables> with prod credentials
docker run --rm -i --env DB_USER=<DB_USER> --env DB_PASSWORD=<DB_PASSWORD> --env DB_HOST=<DB_HOST> -v $(pwd)/mysqldumps:/mysqldumps ubuntu bash < dump_into_docker.sh