Skip to content

demetrius-mp/pyblog

Repository files navigation

pyblog

Installation and execution

  1. Clone the repository using the following command:
git clone git@github.com:demetrius-mp/pyblog.git
  1. Change to the repository directory:
cd pyblog
  1. Create a virtual environment and install the requirements:
  • Using conda
conda create -n pyblog python=3.9
conda activate pyblog
pip install -r requirements.txt
  • Using python venv
python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txt
  1. Create your .secrets.toml using the provided template
openssl rand -base64 32
  1. Run database migration:
flask db init
flask db migrate
flask db upgrade
  1. Run the server:
flask run
  • To run in development mode:
export FLASK_ENV=development
flask run