Skip to content

My portfolio project. Written in python using Flask for the backend and Bootstrap for the frontend

License

Notifications You must be signed in to change notification settings

waydk/flask_blog

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

68 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

My portfolio project

A simple blog written in python, using flask as the backend, bootstrap as the frontend, and postgres as the database

waydk blog

How to add articles to the website

image

image

Development

System dependencies

  • 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

Setup environment

  • 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

Launch

  • 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