Source code for my personal blog. Developed using Python Flask framework.
- Python 3.7
- virtualenv (
pip install virtualenv
)
-
Clone the repository to local
$
git clone https://github.com/raja-charuvil/myblog.git
-
cd into
myblog
$
cd myblog
-
Create a virtual environment and install the required packages with the following commands:
$
virtualenv venv
$venv\Scripts\activate
-
Install dependencies
(venv) $
pip install -r requirements.txt
With the virtual environment activated you can cd
into myblog
then following commands.
$ set FLASK_APP=myblog.py
$ flask db upgrade (to create database tables)
$ flask create_admin (to create an admin user for the blog)
$ flask run