Skip to content

A small visualization of the weekly markets in different cities.

License

Notifications You must be signed in to change notification settings

hbcbh1999/wo-ist-markt.github.io

 
 

Repository files navigation

Build Status

A map of farmer markets

A small visualization of the weekly markets in different cities. Available at: http://wo-ist-markt.de

Data format

  • The market data is stored in GeoJSON format.
  • The opening hours use the OpenStreetMap opening hours format.
  • Opening hours that cannot be expressed in that format can use the opening_hours_unclassified property (in that case, set the opening_hours property to null).

Mandatory information

  • Besides the actual market information map coordinates and zoom level must be provided. These information are being used to set the initial position of the map. They must be part of the city-specific GeoJSON file. Please adapt the format as being used in cities/karlsruhe.json.
  • Further, the data source must be specified so it can be shown in the legend overlay.
  • A validation script will automatically be executed to ensure required attributes are present in the GeoJSON file.
  • Finally add your city to the cities/cities.json file.

Navigation

  • The individual market data for supported cities is displayed when the city name is given in the address bar of the browser.

    Example: http://wo-ist-markt.de/#karlsruhe.

    By default or on error Karlsruhe is rendered.

Supported cities

City name Data source
Berlin City of Berlin
Bochum City of Bochum
Bonn City of Bonn
Bruchköbel Stadtmarketing Bruchköbel GmbH
Chemnitz City of Chemnitz
Dortmund City of Dortmund
Dresden City of Dresden
Duisburg Duisburg Kontor GmbH
Düsseldorf City of Düsseldorf
Erlangen City of Erlangen
Essen EVB
Hanau City of Hanau
Hilden City of Hilden
Karlsruhe City of Karlsruhe
Kiel City of Kiel
Köln City of Köln
Langenfeld (Rhld.) City of Langenfeld (Rhld.)
Leipzig City of Leipzig
Moers City of Moers
Mülheim an der Ruhr City of Mülheim an der Ruhr
München City of München
Münster City of Münster
Nersingen City of Nersingen
Neu-Ulm City of Neu-Ulm
Paderborn City of Paderborn
Rostock City of Rostock
Schwerin City of Schwerin
Ulm City of Ulm
Wiesbaden City of Wiesbaden
Witten Stadtmarketing Witten
Wuppertal City of Wuppertal

Contributing

Development

Tests can be run using npm:

$ npm install  # Just once after you've cloned the repo

$ npm test     # Whenever you want to run the tests

Deployment

When new code is pushed to master Travis CI runs a test suite against it. If those test pass fabric is used to deploy the new version to the server running under https://wo-ist-markt.de.

The command that Travis CI executes is fab deploy -i markt_deploy_id_rsa -H deploy@kiesinger.okfn.de:2207 where markt_deploy_id_rsa is an ssh key to log into the server. It is commited to this repository in a encrypted format that Travis CI decrypts in the before_install section.

You can run the deployment locally if your ssh key is added to the deploy user on the server. Since Travis CI does it automatically there should be no need to do this though. The command to deploy manually is: fab deploy -H deploy@kiesinger.okfn.de:2207.

About

A small visualization of the weekly markets in different cities.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 96.0%
  • CSS 3.1%
  • Other 0.9%