Skip to content

The oecher.info website with corona data based on python3 and vue.js

Notifications You must be signed in to change notification settings

mrtopf/oecherinfo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

oecher.info website

This is the repository which powers https://oecher.info which is providing corona information for the city of Aachen/Germany and the surrounding area.

Requirements

  • MongoDB
  • Python3
  • node.js

Setup

Create a python venv with

python3 -m venv .
source bin/activate

Install packages:

pip install -r requirements.txt
cd api
python setup.py develop

Serve via start.sh

Adjust api/etc/dev.ini accordingly for ports etc.

frontend setup

Install the submodule

git submodule init
git submodule update

Install yalc:

sudo npm install -g yalc # or `yarn global add yalc`

Install the plugin via yalc:

cd frontend/vendor/chartjs-plugin-annotation
yarn
npm run build
yalc publish
cd ../../..

This will publish the annotation plugin in the local npm store

cd frontend
yarn
yarn serve

Adjust .env.development accordingly.

use yalc to add annotations for chart.js

The annotation plugin is unreleased as we use chart.js 3.0.0b7 or so. Thus we need to add it ourselves and this can be done via yalc.

See https://www.viget.com/articles/how-to-use-local-unpublished-node-packages-as-project-dependencies/

About

The oecher.info website with corona data based on python3 and vue.js

Resources

Stars

Watchers

Forks

Packages

No packages published