Badestellen a.k.a. badegewaesser-berlin.de
The repository consists of 5 folders:
Scripts in this folder were used to generate the initial data set, mostly scrapers and image conversion tools.
Graphic source files
Initial data generated from the processing scripts
A node-js server which is handling data-uploads by the partners, and generates the necessary data-files for the actual application
The HTML web application (frontend)
The data server
Update the info in config-sample.json and rename to config.json
"path" : Folder where uploads are being stored "export_path" : This path should lead to where the app-folder is stored, it allows the script to update the data files of the web app "port" : Port the service runs on "users" : the service requires two users one for kwb and one for bwb
Start the service
We recommend using a service which restarts this service if it stops, there are several tools out there to do this.
What is happening in here?
Uploading and updating the app
External partners use the upload feature to upload data, which is then being processed and the web app is being updated. In this process the service is also checking the Lageso web server, if there is any new information available.
There is also a protected function, which can be initated to update the app, (e.g. if lageso has updated their info): SERVER:PORT/REFRESH_SECRET/update
In addition a cron-job should be set up, which should point to the following site: SERVER:PORT/REFRESH_SECRET/update_cron
The service also handles user-feedback, through the feedback form. This is stored in an sqlite database.
All data is stored in a file-based sqlite database (badestellen.db).
We are part of BrowserStack's non-profit program, helping us deliver an even better user experience.