Skip to content

powderblock/Python-Flask-Boilerplate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Introduction:

This simple Flask example is a beginner template intended to showcase the basics of Flask's routing and rendering system. Take note of the render_template file structure. Use this project as a building block for more complex web apps.

Currently, this just renders a page (templates/index.html) which has the ability to call a function in the app.py from Javascript.

It is a cool basic example and serves a useful purpose. Please email me if you have questions: blade@aelo.io

Python 3+

Flask is the only required library.

🔌 Example Usage:

To run this, clone the repo onto your local machine.

  • Navigate to the repo in terminal or CMD.
  • Run app.py by calling python3 app.py or python app.py depending on your Python installation.

Test the app by going into your browser: http://127.0.0.1:5555/home

Trouble? Email Blade Nelson: blade@aelo.io

Expected Output:

If Flask & Python are working as expected, you should see this output: Image of Output Simple Flask example tutorial template boilerplate github source code

Navigate to http://127.0.0.1:5555/home (default port is 5555 and the example route in app.py is /home)

You should see this page: Flask boilerplate example Python easy for beginners page index.html template route render_template html

Success! ✅

Next Steps:

This project is a good starter example for anyone to become familar with the basics of Flask's routes and render_template system. A database can be added for creating user accounts. Passwords can be hashed in Python functions. More complex and robust routing strategies can be implemented.

Credits

Made by Blade Nelson in 2020. Check the license for more details.

About

Boilerplate app for Python Flask

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published