DEV Community

Muhammad Saim
Muhammad Saim

Posted on • Edited on

1 1

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.

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.

Sentry blog image

How I fixed 20 seconds of lag for every user in just 20 minutes.

Our AI agent was running 10-20 seconds slower than it should, impacting both our own developers and our early adopters. See how I used Sentry Profiling to fix it in record time.

Read more

Top comments (0)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay