Read-only mirror of https://github.com/StataBS/quartierindex — Kanton Basel-Stadt. Issues & pull requests at the source.
  • TypeScript 85.7%
  • CSS 9.4%
  • JavaScript 3.6%
  • HTML 1.3%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2024-09-26 09:50:20 +02:00
@types/recharts add patched types 2019-02-11 18:14:47 +01:00
data data update 2024 2024-09-26 09:50:20 +02:00
public Add layout and steps 2018-05-10 15:41:21 +02:00
setup data update 2024 2024-09-26 09:50:20 +02:00
src data update 2024 2024-09-26 09:50:20 +02:00
.gitignore Add vscode config to gitignore 2018-10-24 16:58:58 +02:00
.nvmrc Add .nvmrc file for autoselect node > 8 version of node 2018-02-27 23:53:29 +01:00
.prettierrc Refactor to pages and reusable components 2018-10-24 16:53:45 +02:00
package-lock.json data update 2024 2024-09-26 09:50:20 +02:00
package.json data update 2024 2024-09-26 09:50:20 +02:00
README.md Imporve README.md 2019-02-11 20:12:20 +01:00
README_CREATE_REACT.md Create typescript react project with redux as store and jest for testing 2018-01-28 13:45:44 +01:00
tsconfig.json Upgrade version for ie compatiblity and fix additional ts errors 2018-12-03 16:49:18 +01:00
tsconfig.prod.json Add tsconfig for production 2018-05-19 14:59:07 +02:00
tsconfig.test.json Create typescript react project with redux as store and jest for testing 2018-01-28 13:45:44 +01:00
tslint.json Add layout 2018-05-09 22:31:50 +02:00

Quartierindex

Web-application to compare different districts in basel (Switzerland), based on statistical data.

Quickstart

Clone the project

git clone git@github.com:statabs-test/quartierindex.git
cd quartierindex

Install all dependencies and start the server

npm install
npm start

Update source data

The data is precalculated from the given CSV and TSV files. If new data is published the data must be precalculated.

npm run setup

This file uses setup/convert.js to convert the input data located in ./data directory into JSON files which are located in the ./src/state/data direcotry. If the header order change, then the script must be updated.

The header names will be replaced and normalized, compare with output in directory. It is also important that the source file are in UTF-8 and not latin1 or any other encoding.

Publish site

To publish the site run the deploy command

npm run deploy

With this command the current changes are published to the Github pages which can be accessed under https://statabs-test.github.io/quartierindex.

If the changes are not visible, delete your cache or visit the site in the private/incognito mode.

Authors

  • Denis Augsburger
  • Fabrizio Parillo
  • Nicolas Mauchle