Skip to content

bhavaniravi/flask-tutorial

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

43 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ToDo Application

This is a code that comes along with tutorial

Using the Frontend

  1. Open index.html file in a browser.
  2. Run python app/app.py in the terminal.
  3. That's it! You can add create edit delete items via UI

PythonToProject Bootcamp students can stop here. Docker can be tried at your own time.

Using React Frontned

The above frontend is built with plain JS, for modern web apps most people use React.

In this tutorial I have complied the React Frontend with Flask.

To Run App in Docker

  1. Checkout Dockerfile.
  2. I have changed it to accomodate latest version of ununtu and python3
  3. To build docker image docker build -t todo-flask:latest .
  4. To run the docker container docker run -it -p 5000:8888 todo-flask

To Run App in Kubernetes

Follow the tutorial - https://bhavaniravi.com/blog/kubernetes-101-deploy-apps-in-kubernetes/