Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

Swiss Municipality Index - Demo App using Mithril.js as frontend, Yii2 as backend, and SQLite as database engine.
https://github.com/tbreuss/ch-gemeinden

demo-app docker docker-compose mithril rest-api sqlite yii2

Last synced: about 1 month ago
JSON representation

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

Awesome Lists containing this project

README

        

# 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](https://ch-gemeinden.tebe.ch)

## Prerequisites

- Docker & Docker Compose

## Production

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

Open [http://localhost](http://localhost) in your browser.

## Development

Clone repo from GitHub:

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

Start project in development mode:

~~~bash
cd ch-gemeinden
docker-compose up -d
~~~

Open [http://localhost:8881](http://localhost:8881) in your browser.

Build app.js for production:

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

## To be done:

**Work in progress**

- [x] show number of search results
- [x] add sort for each column
- [x] use [html boilerplate](https://github.com/tbreuss/html-boilerplate)
- [x] dockerize app
- [x] use sqlite
- [ ] add pagination
- [ ] add sort icons
- [ ] enable x-debug in development