- Clone the repository using the following command:
git clone git@github.com:demetrius-mp/pyblog.git
- Change to the repository directory:
cd pyblog
- 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
- Create your .secrets.toml using the provided template
- Defining a database connection string.
- Creating your secret key:
openssl rand -base64 32
- Run database migration:
flask db init
flask db migrate
flask db upgrade
- Run the server:
flask run
- To run in development mode:
export FLASK_ENV=development
flask run