No description
Find a file
2024-08-28 12:20:25 +03:00
static version 0.1.0 2024-08-27 22:43:46 +03:00
templates 0.1.1 - small fixes + installation instructions 2024-08-28 12:20:25 +03:00
.env.example 0.1.1 - small fixes + installation instructions 2024-08-28 12:20:25 +03:00
.gitignore version 0.1.0 2024-08-27 22:43:46 +03:00
app.py 0.1.1 - small fixes + installation instructions 2024-08-28 12:20:25 +03:00
config.py version 0.1.0 2024-08-27 22:43:46 +03:00
constants.py 0.1.1 - small fixes + installation instructions 2024-08-28 12:20:25 +03:00
functions.py version 0.1.0 2024-08-27 22:43:46 +03:00
LICENSE Initial commit 2024-08-25 13:38:22 -04:00
README.md 0.1.1 - small fixes + installation instructions 2024-08-28 12:20:25 +03:00
requirements.txt 0.1.1 - small fixes + installation instructions 2024-08-28 12:20:25 +03:00
roadmap.md version 0.1.0 2024-08-27 22:43:46 +03:00
schema.sql version 0.1.0 2024-08-27 22:43:46 +03:00
word_blacklist.txt version 0.1.0 2024-08-27 22:43:46 +03:00
wordlist.txt version 0.1.0 2024-08-27 22:43:46 +03:00

CatAsk

Installation

Clone this repository: git clone https://git.gay/mst/catask.git

VPS-specific

Go into the cloned repository, create a virtual environment and activate it:
python -m venv venv && . venv/bin/activate
Install required packages:
pip install -r requirements.txt

Shared hosting-specific

If your shared hosting provider supports WSGI, FastCGI, or something similar, use it (technically any CGI protocol could work)

Post-installation

Create a MySQL/MariaDB database and connect MDFlare to it (in .env file)
Then init the database: flask init-db
If that doesn't work, try importing schema.sql into the created database manually

Rename .env.example to .env, configure all values there, and edit variable fullBaseUrl in config.py file
Then run it:
flask run or gunicorn -w 4 app:app (if you have gunicorn installed) or python3 app.py
If you want it to be accessible on a specific host address, specify a --host option (e.g. --host 0.0.0.0) to flask run

Usage

Works on 127.0.0.1:5000 (flask run or python app.py) or 127.0.0.1:8000 (gunicorn -w 4 app:app), may work in a production environment