An app that can create blogs. The main purpose to create this app to practice flask skills and make the source code available online for other developers to start this repo for their own custom need
- install anaconda
- create an environment using
conda create -n "flask-blog-posts" python=3.10
- run
conda activate flask-blog-posts
- run
pip install -r requirements.txt
- flask run
- Please refer to https://flask.lyskills.com for website reference
- Do not work to create .env and instance/db.sqlite3 file and change permission
chown root .env
chown root instance/db.sqlite3
- All deployment is made using
gunicorn & nginx
. You may refer to this
pybabel extract -F flask-babel.cfg -o messages.pot .
pybabel init -i messages.pot -d translations -l zh
pybabel compile -d translations
pybabel update -i messages.pot -d translations
run once
flask db init
flask db migrate -m "Initial migration."
flask db upgrade
flask db revision --rev-id 215a43277d61
css-html-js-minify.py static/