A simple blog written in python, using flask as the backend, bootstrap as the frontend, and postgres as the database
-
Enter login and password (in .env
BASIC_AUTH_USERNAME
,BASIC_AUTH_PASSWORD
)
- Go to
http://127.0.0.1:5000/admin/articles/
and click create
- Python 3.8.10
- Flask-SQLAlchemy 2.5.1
- environs 9.3.4
- Flask-Admin 1.5.8
- Flask-BasicAuth 0.2.0
- psycopg-binary 3.0.1
-
Rename .env.dist to .env
-
Fill in your data
-
SECRET_KEY
is needed to secure sessions on the client side -
PG_HOST
is responsible for where your database is located -
PG_USER and PG_PASSWORD
are needed to access the database -
DATABASE
database name -
BASIC_AUTH_USERNAME and BASIC_AUTH_PASSWORD
- to access the admin panel
git clone https://github.com/waydk/flask_blog
cd flask_blog
- If you don't have poetry
pip install poetry
- Install dependencies:
poetry install
- Activate the virtual environment
poetry shell
- Launching an application
python3 wsgi.py