Quote database for the tildeverse network https://quotes.tilde.chat
qdb
Go to file
Ben Harris f88d984b19 add gunicorn as a requirement 2021-08-03 16:25:04 -04:00
static refactor error handling, create voting macro 2020-06-14 19:54:41 -04:00
templates add setup and dev instructions 2021-08-03 16:23:50 -04:00
.gitignore Remove quote database and add .gitignore 2018-06-20 17:59:09 -04:00
README.md add gunicorn as a requirement 2021-08-03 16:25:04 -04:00
app.py refactor error handling, create voting macro 2020-06-14 19:54:41 -04:00
pagination.py ran black code formatter 2018-08-20 14:02:40 -04:00
qdb.nginx.conf add setup and dev instructions 2021-08-03 16:23:50 -04:00
qdb.service add setup and dev instructions 2021-08-03 16:23:50 -04:00
schema.sql add setup and dev instructions 2021-08-03 16:23:50 -04:00

README.md

quotes

Quote database for the tilde.chat

setup

sudo apt install sqlite3 python3-flask gunicorn
sqlite3 quotes.db < schema.sql
sudo cp qdb.service /etc/systemd/system/
sudo cp qdb.nginx.conf /etc/nginx/sites-available/qdb.example.com
sudo ln -s ../sites-available/qdb.example.com /etc/nginx/sites-enabled/
sudo systemctl enable --now qdb

running locally

  • make sure you have python3-flask installed

  • create the schema per the setup instructions

  • run the flask app:

    FLASK_APP=app.py FLASK_DEBUG=1 flask run -h 0.0.0.0 -p 3333

  • visit the local version in your browser: http://localhost:3333