Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/amitojsingh366/python-simple-website

Demo for a Python website using Flask as a framework
https://github.com/amitojsingh366/python-simple-website

css flask html python python-flask

Last synced: 3 months ago
JSON representation

Demo for a Python website using Flask as a framework

Awesome Lists containing this project

README

        

# Python Simple Website

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.

## To-Do
- ### Preparing for the Project
- [x] First ensure Python is installed
- Run the command in Command Prompt (or any other shell) ```python --version```
- If not installed get it from [here](https://www.python.org/downloads/)
- [x] Ensure An IDE is installed (I have given popular ones below)
- [Visual Studio Code](https://code.visualstudio.com) <----- the one I use
- [Atom](https://atom.io)
- [Pycharm](https://www.jetbrains.com/pycharm/)
- [Jupyter Notebook](https://jupyter.org/install.html)

## Setting Up The Test Project
- ### Ensure steps in [To-Do](https://github.com/amitojsingh366/python-simple-website#to-do) are completed
- ### Downloading the test project code
- [x] Download the code from this repo
- Code can be downloaded from [here](https://github.com/amitojsingh366/python-simple-website/archive/main.zip) or by using the green button above
- Extract the zip file downloaded and place the extracted folder somewhere you can remember
- ### Running The Server
- [x] Open your project folder in a command line. If you are not sure how to follow the steps in [Useful Stuff](https://github.com/amitojsingh366/python-simple-website#useful-stuff)
- [x] 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```
- [x] Run the following command to start the server
- Open your project folder in a command line and run the following command:
- ```python app.py```
- [x] Go to the website to see the app running
- http://127.0.0.1:4949/
- http://localhost:4949/

## Useful Stuff
- ### How to open the project in a command line
- #### macOS instructions:
- 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](https://cdn.amitoj.net/github/python-simple-website/terminalhow2macOS.mp4) is an video example if you werent able to understand

- #### Windows instructions:
- First locate the folder(project folder) you want to open in command line
- Now while holding `shift` right click and select the option `Copy 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](https://cdn.amitoj.net/github/python-simple-website/terminalhow2win.mp4) is an video example if you werent able to understand

- ### Useful Links
- CSS: [W3Schools](https://www.w3schools.com/css/)
- HTML: [W3Schools](https://www.w3schools.com/html/)
- Python: [W3Schools](https://www.w3schools.com/python/)
- Flask: [Official Docs](https://flask.palletsprojects.com/en/1.1.x/)