This repository is a public template for a simple Flask Website Application. It includes a simple Home page skeleton structure as well as basic HTML and CSS to kickstart a simple static website. You can make your website dynamic and interactive using JavaScript. While this is a relatively trivial setup for a web application, there are endless ways this can be customized for your own purpose.
Before doing anything listed below, you must first clone the repository locally onto your device.
Then:
- Using the command prompt,
pip
install therequirements.txt
file (to download necessary dependencies)- Make sure Python is installed and added to PATH beforehand. See The Python Standard Library to download the latest version of Python.
- You can test your Python install by typing
py --version
(orpython --version
) in your command line and checking which version of Python is installed
- With the same command prompt session open (making sure you are in the working directory, the same directory as
run.bat
), typerun.bat
into the command line, and the commands in the batch file will automatically be executed in the command line - Start making your custom Flask application by editing the HTML and CSS files or by adding more pages
- Flask's Official Documentation
- Quickstart w/ Flask
- How To Make a Web Application Using Flask in Python 3 by DigitalOcean
- So, You Want to Learn Python?
- Python notes
This repository can act as a template for anyone wanting to make a simple website using Flask. This is the most basic type of template, so feel free to add any other type of functionalities (like JavaScript or Bootstrap) to this website. This website will only run locally, If you wish to deploy your website, you will need to use services like Amazon Web Services (AWS), Microsoft Azure, or with a platform more beginner-friendly, like DigitalOcean (also see DigitalOcean deployment tutorial).
I am not a web developer by trade, so please let me know if there are any issues. You can contact me, the repository owner, at [email protected] or [email protected].