Project folder structure and packages installation

Muhammad Saim - Aug 19 '21 - - Dev Community

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.

image

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
Enter fullscreen mode Exit fullscreen mode

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
Enter fullscreen mode Exit fullscreen mode

Now your directory structure will look like this.

image

You can get the updated code on GitHub Repo

On the next post we will configure our application.

Thanks, will meet on the next one.

. . . . . . . . . . . . . . . . . . . . . . . . . .