Skip to content

Komals-Code4All/MASTER-Flask

Repository files navigation

Flask for Beginners

This repo is made up of several folders demonstrating how to build a website application using Flask.

Flask is a micro-framework that runs a local internet webserver on your computer. When the FLASK run command is issued, Flask starts a local webserver, typically, with the IP address of 127.0.0.1 on port :5000.

With the Flask server running entering the URL 127.0.0.1:5000 directs the browser to a default html file you specify.

The Flask server is a 'web app'. It needs an initial program that will be always running while the Flask webserver is running. This program sits in the background and listens out for browsers trying to connect to the Flask server. In these examples we use Python as the initial program. Following Flask conventions this program will be named app.py

Entering the URL 127.0.0.1:5000 opens the default .html webpage you specify.

List of demo folders

FlaskCodeCS50

Code entered following the excellent YouTube video from Harvard's CS50 Lecture 9 on Flask

https://www.youtube.com/live/1r-dFbPQ7Z8?si=UjdpGMEsu8JtUGuz

FlaskDemo01

Build a simple 3-page website using HTML, CSS and a little Python

FlaskDemo02

Improve the 3-page website using a Flask HTML template applied to all 3 webpages

FlaskDemo03

Build a website where another Python program runs to create a webpage.

FlaskDemo04

Build a website that creates HTML content from a local SQL database server

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published