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.
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
orpython 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
If Flask & Python are working as expected, you should see this output:
Navigate to http://127.0.0.1:5555/home (default port is 5555 and the example route in app.py is /home)
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.
Made by Blade Nelson in 2020. Check the license for more details.