Project folder structure and packages installation

Create a new folder whatever you want to name it I'm going with flask_blog.
image

Now create a virtual environment using virtualenv. and activate the virtual enviroment.

It's time to install the dependencies of the project. Now firstly install the flask and the other dependencies.

pip install flask flask-sqlalchemy flask-migrate python-dotenv mysql-connector-python flask-wtf

Open the folder in your favourite code editor I'll be use VSCode.

So the folder structure will be like this.

flask_blog
 |
 +-- application
 | +-- assets
 | +-- controllers
 | +-- forms
 | +-- models
 | +-- views
 | +-- __init__.py
 | +-- settings.py
 +-- venv
 +-- migrations
 +-- config.py
 +-- run.py

Now your directory structure will look like this.

On the next post we will configure our application.

Thanks, will meet on the next one.

23