Flask Noodle | Instant Project Folder Generator

Step-by-Step tutorial using flasknoodle package to quickly generate your Flask Application project folders and files.

Flask Logo
Photo from Flask official Page

Why do we need Flasknoodle?

To start up a Flask Application, we need a number of folders and files. We also need good amount of boilerplate code. Building the folder structure and writing the starter code could take the developer a bit of time and effort.

Flask application with single endpoint
Flask application with single endpoint
Flask Application with only one endpoint
Flask application with two endpoints, i.e. includes user generated endpoint
Flask application with two endpoints, i.e. includes user generated endpoint
Flask Application with two endpoints. The ‘/about’ endpoint was added by user

Installing Flasknoodle

  • First, we need to install and start up a virtual environment in current directory. This is an optional step, however it is highly recommended to install packages in virtual environment. This will create an isolated environment for Python projects. This means that each project can have its own dependencies, regardless of what dependencies every other project has.
Installing virtual environment
Installing virtual environment
Create and activate a virtual environment
Installing flasknoodle package
Installing flasknoodle package
Install flasknoodle package from PyPI
Using “flasknoodle” keyword to generate flask application folder
Using “flasknoodle” keyword to generate flask application folder
Generate project folder using keyword flasknoodle
Folder Structure
Folder Structure
Generated Flask Application folder
Installing dependencies
Installing dependencies
Install dependencies
Running Flask application
Running Flask application
Start Flask application

Conclusion

Flasknoodle flask project generator should be able to save developers who are familiar with Flask, 5–10 minutes when starting a new project.

Engineer