Formulaire & carte pour recenser les aspirant-e-s connecté-e-s à un réseau radio.

Baptiste Jonglez 64534bbe22 Display a 360° field of vision when there is access to the roof il y a 10 ans
assets 42dac595c1 media-queries to fit all screens il y a 10 ans
contrib b460080d5d Update wifiwithme.yml il y a 10 ans
json e6d546b8f7 added placeholder in json folder to avoid nonexistant folder error il y a 10 ans
views f80474368f precisions on data retention duration fixes #9 il y a 10 ans
.gitignore 8f8ea2ebb0 Ignore GeoJSON files. il y a 10 ans
LICENSE 0b4ffe0b21 Create LICENSE il y a 10 ans
README.md a620f59770 allows to configure listeting port and addr fixes #8 il y a 10 ans
TODO.md 6c79c9a09e Todo: captcha or honeypot. il y a 10 ans
backend.py 64534bbe22 Display a 360° field of vision when there is access to the roof il y a 10 ans

README.md

Dependencies

We use bottle micro-framework.

 # apt-get install python-bottle

(current code works with debian-stable version of bottle)

or

$ pip install bottle

Running

$ ./backend.py

Then hit http://localhost:8080

To run in debug mode (auto-reload)

$ DEBUG=1 ./backend.py

Bottle will reload on source change, but not on template change if you're using an old version of bottle.

You can specify listening port and address by setting BIND_PORT and BIND_ADDR env vars, ex:

BIND_ADDR='0.0.0.0' BIND_PORT=8081 ./backend.py

Default is to listen on 127.0.0.0, port 8080.

Create the DataBase

$ python backend.py createdb

Build GeoJSON files

$ python backend.py buildgeojson

Drop the database

$ rm db.sqlite3

What else ?