23
Project folder structure and packages installation
Now create a virtual environment using virtualenv. and activate the virtual enviroment.
![](https://res.cloudinary.com/practicaldev/image/fetch/s--w_jq9WE5--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/x352eyu5zrntzj8nm6k1.png)
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.
![](https://res.cloudinary.com/practicaldev/image/fetch/s--husI802e--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/buo418o7lrpnzonycqmy.png)
On the next post we will configure our application.
Thanks, will meet on the next one.
23