a responsive flask front-end for the mohacdex.
$ pip install virtualenv
$ virtualenv venv
$ venv/bin/activate
$ pip install -r requirements.txt
in a separate directory:
$ gh clone skylar32/mohacdex
$ pip install mohacdex
$ cd /path/to/serfetchdex
$ mohacdex sqlite:///mohacdex.db load
check here for more details.
$ python -m flask run
tada! this will create a local web server to run the website on. for deployment, check out Flask's deployment options.
serfetchdex uses Flask's built-in Jinja 2 templating system. modify the templates to customize the HTML. there is only a single CSS file. the logic for getting information out of the database to actually send to the template is contained in app.py (a little messy, sorry). i've tried to make the database usage as intuitive if possible, but if not, try poking around the mohacdex. in principal, the templates should not be too hard to adapt to another data source, such as veekun or pokéapi, if that's your wish.