Skip to content

Swiss Municipality Index - Demo App using Mithril.js as frontend, Yii2 as backend, and SQLite as database engine.

Notifications You must be signed in to change notification settings

tbreuss/ch-gemeinden

Repository files navigation

Swiss Municipality Index

Simple demo app using Mithril.js as frontend, Yii2 as backend, and SQLite as database engine.

Online demo: https://ch-gemeinden.tebe.ch

Prerequisites

  • Docker & Docker Compose

Production

docker run --rm -p 80:80 tbreuss/ch-gemeinden

Open http://localhost in your browser.

Development

Clone repo from GitHub:

git clone https://github.com/tbreuss/ch-gemeinden.git

Start project in development mode:

cd ch-gemeinden
docker-compose up -d

Open http://localhost:8881 in your browser.

Build app.js for production:

docker run -it --rm -v $(pwd):/app -w /app node:alpine npm run build

To be done:

Work in progress

  • show number of search results
  • add sort for each column
  • use html boilerplate
  • dockerize app
  • use sqlite
  • add pagination
  • add sort icons
  • enable x-debug in development