A small visualization of the weekly markets in different cities. Available at: http://wo-ist-markt.de
- 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 theopening_hours
property tonull
).
- 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.
-
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.
- Please make sure to read the contributing guide.
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
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 [email protected]: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 [email protected]:2207
.