๐Ÿ“ฆ anlutro / qdb

IRC quote database

โ˜… 1 stars โ‘‚ 4 forks ๐Ÿ‘ 1 watching โš–๏ธ MIT License
flask-applicationircquotes-application
๐Ÿ“ฅ Clone https://github.com/anlutro/qdb.git
HTTPS git clone https://github.com/anlutro/qdb.git
SSH git clone git@github.com:anlutro/qdb.git
CLI gh repo clone anlutro/qdb
dependabot[bot] dependabot[bot] Bump certifi from 2019.9.11 to 2022.12.7 in /requirements (#21) 883a167 3 years ago ๐Ÿ“ History
๐Ÿ“‚ master View all commits โ†’
๐Ÿ“ .github
๐Ÿ“ alembic
๐Ÿ“ public
๐Ÿ“ qdb
๐Ÿ“ requirements
๐Ÿ“ tests
๐Ÿ“ tmp
๐Ÿ“„ .gitignore
๐Ÿ“„ .pylintrc
๐Ÿ“„ alembic.ini
๐Ÿ“„ config.example.py
๐Ÿ“„ LICENSE
๐Ÿ“„ README.md
๐Ÿ“„ run
๐Ÿ“„ README.md

QDB

Build Status

Installation

Clone the repository:

$ git clone https://github.com/anlutro/qdb $ cd qdb

Create a virtualenv for python 3:

$ virtualenv -p python3 .virtualenv

Activate the virtualenv:

$ source ./.virtualenv/bin/activate

Install dependencies with pip - choose one, depending on where you're installing:

$ pip install -r requirements/dev.txt $ pip install -r requirements/prod.txt

Copy the config example file to config.py:

$ cp config.example.py config.py

Replace the data in config.py as needed.

Run the application (for local development only):

$ ./run

Go to localhost:5000 in your browser of choice to make sure it works.

UWSGI

In production I recommend running the app with uWSGI. Here's an example uwsgi.ini:

[uwsgi] plugin = python3,logfile module = qdb:app chdir = /var/www/qdb venv = /var/www/qdb/.virtualenv logger = file:/var/log/www/qdb/uwsgi.log lazy-apps = True master = True

License

The contents of this repository is released under the MIT license. See the LICENSE file included for more information.