Skip to content

xfwxqx/web-server-flask

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Build a Web Server with Python Flask

This document provides a scheme of work that demonstrates how to build and run a simple web server on a Raspberry Pi. This allows students to produce and run their own websites straight from a single Raspberry Pi computer and build simple web applications that can be publicly accessible on the web. We'll use Python, the web framework Flask, and some basic HTML to serve some simple web pages.

This scheme works best if you, the teacher, runs through the tasks yourself before presenting it to students. We've left the speed and additional learning objectives up to you, depending on the skill level of your students or the time frame in which you have to teach it.

What you will learn

  • How to set up a Flask web application
  • Understanding how Flask runs
  • How to add new views
  • How to add templates a view
  • Adding dynamic content to a view

Requirements

You'll need a Raspberry Pi and an SD card with the latest Raspbian installed, and you'll need to be connected to the internet.

Worksheet

Go to the worksheet

Licence

Unless otherwise specified, everything in this repository is covered by the following licence:

Creative Commons Attribution 4.0 International Licence

Flask Web Server by Paul Hallett the Raspberry Pi Foundation is licensed under a Creative Commons Attribution 4.0 International Licence.

Based on a work at https://github.com/raspberrypilearning/web-server-flask

About

Build a web server with Python on Rapsberry Pi

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published