Professional Documents
Culture Documents
This tutorial aims to provide a hands-on tutorial for students with little prior web development
experience. In this example, we chose back-end rendering for its simplicity. Many frameworks support
alternative (and fancier) web development methods. We do not cover these here, but we hope that the
following workshop allows you to explore these options.
How to setup Ajax for the front-end to interact with the back-end
This tutorial is developed on WSL 2 (Windows Linux subsystem, aka bash on windows). This means that
it should be compatible with Mac and most Linux systems. There could be a slight difference in the
output on the terminal but nothing else.
Objective:
We will complete a Todo WebApp_Project App in this tutorial. The todo WebApp_Project app can
Create, Read, Update, Delete, tasks on this to-do list app. There is no under feature. Everyone on the
same webpage shares the same view. In other words, it's a pretty useless app at this point. But it should
not be hard to extend this app.
Once this is done, we can install the packages and libraries needed for this application. Feel free
to google the first two packages. They have comprehensive documentation for the development
process.
WebApp_Project
├── MyFlaskApp/
│ └──Myapp.py
└── main.py
main.py: This is the app entry point. This means that the application can be invoked by python
main.py.