This Repo should help you to get a simple Python website setup using the Flask framework. This is a great first project for new programmers.
-
- First ensure Python is installed
- Run the command in Command Prompt (or any other shell)
python --version
- If not installed get it from here
- Run the command in Command Prompt (or any other shell)
- Ensure An IDE is installed (I have given popular ones below)
- Visual Studio Code <----- the one I use
- Atom
- Pycharm
- Jupyter Notebook
- First ensure Python is installed
-
Ensure steps in To-Do are completed
-
- Download the code from this repo
- Code can be downloaded from here or by using the green button above
- Extract the zip file downloaded and place the extracted folder somewhere you can remember
- Download the code from this repo
-
- Open your project folder in a command line. If you are not sure how to follow the steps in Useful Stuff
- Run the following command to get the dependencies (mainly
Flask
) installed- Open your project folder in a command line and run the following command:
python -m pip install flask
- Open your project folder in a command line and run the following command:
- Run the following command to start the server
- Open your project folder in a command line and run the following command:
python app.py
- Open your project folder in a command line and run the following command:
- Go to the website to see the app running
-
-
- First locate the folder(project folder) you want to open in command line
- Now right click on the folder and select the option
New Terminal at Folder
(It should be the last option on the list) - Thats It! You now have the project folder open in command line!
- Here is an video example if you werent able to understand
-
- First locate the folder(project folder) you want to open in command line
- Now while holding
shift
right click and select the optionCopy as path
- Now open any command line (Command Prompt, Poweshell, etc.) and run the following command:
cd "YOUR COPIED PATH HERE"
replacing"YOUR COPIED PATH HERE"
with the path that you copied before.
- Thats It! You now have the project folder open in command line!
- Here is an video example if you werent able to understand
-
-
- CSS: W3Schools
- HTML: W3Schools
- Python: W3Schools
- Flask: Official Docs