flask-tutorial
flask-tutorial copied to clipboard
A tutorial to build your first flask application
ToDo Application
This is a code that comes along with great tutorial
Using the Frontend
- Open
index.htmlfile in a browser. - Run
python app/app.pyin the terminal. - That's it! You can add create edit delete items via UI
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
- Checkout
Dockerfile. It is created by following this tutorial. - 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
To Run App in Kubernetes
Follow the tutorial - https://bhavaniravi.com/blog/kubernetes-101-deploy-apps-in-kubernetes/