Skip to content
master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
app
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Badestellen a.k.a. badegewaesser-berlin.de

Overview

The repository consists of 5 folders:

1. processing

Scripts in this folder were used to generate the initial data set, mostly scrapers and image conversion tools.

2. material

Graphic source files

3. data

Initial data generated from the processing scripts

4. data-server

A node-js server which is handling data-uploads by the partners, and generates the necessary data-files for the actual application

5. app

The HTML web application (frontend)

The data server

Setup

Install dependencies

npm install

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

node index.js

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

Feedback

The service also handles user-feedback, through the feedback form. This is stored in an sqlite database.

Data handling

All data is stored in a file-based sqlite database (badestellen.db).

Support

We are part of BrowserStack's non-profit program, helping us deliver an even better user experience.

About

demo application

Resources

License

Releases

No releases published

Packages

No packages published