Ari-web source code https://ari.lt/ https://ari.lt/
Find a file
Arija A. 50ad77d42f
Add website protocol comment in guestbook form
Signed-off-by: Arija A. <ari@ari.lt>
2025-09-17 22:12:41 +03:00
src Add website protocol comment in guestbook form 2025-09-17 22:12:41 +03:00
.editorconfig reinit 2025-03-16 18:12:47 +02:00
.eslintrc.js Improve UI and UX 2025-08-22 23:42:23 +03:00
.gitignore Add "current status", improve datetime handling. 2025-09-05 22:07:56 +03:00
.prettierrc Implement RSS validator 2025-08-25 00:26:16 +03:00
example.env Add POWEREDBY :) 2025-08-30 21:10:09 +03:00
LICENSE Update LICENSE project name 2025-08-25 06:57:11 +03:00
pyproject.toml Initialise theme: room101 2025-08-17 20:55:40 +03:00
README.md Add WASM PoW 2025-08-28 23:33:24 +03:00
requirements.txt Implement guestbook 2025-08-23 22:05:55 +03:00
tox.ini reinit 2025-03-16 18:12:47 +02:00

Ari.lt

Arija A.'s personal website and services

Running

First compile WASM PoW:

cd src/static/js/wasm
./compile.sh
cd ../../../../

Then:

python3 -m venv venv
source venv/bin/activate
source .env  # see example.env
pip install --upgrade -r requirements.txt
cd src
memcached -d
# If you remove migrations/:
# flask db init
# vim migrations/script.py.mako (add import flask_app)
# flask db migrate -m 'Initial migration'
flask db upgrade
# FOR FIRST TIME RUN: flask create-counter
flask run

For production use a WSGI server such as Gunicorn:

python3 -m venv venv
source venv/bin/activate
source .env  # see example.env
pip install --upgrade -r requirements.txt
pip install --upgrade gunicorn
cd src
memcached -d
flask db upgrade
# FOR FIRST TIME RUN: flask create-counter
python3 -m gunicorn -b 127.0.0.1:12345 -w 4 app:app  # ... Or whatever your configuration is