This is a code that comes along with tutorial
- Open
index.html
file in a browser. - Run
python app/app.py
in the terminal. - 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.
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.
- Checkout
Dockerfile
. - I have changed it to accomodate latest version of ununtu and
python3
- To build docker image
docker build -t todo-flask:latest .
- To run the docker container
docker run -it -p 5000:8888 todo-flask
Follow the tutorial - https://bhavaniravi.com/blog/kubernetes-101-deploy-apps-in-kubernetes/