Playing around with flask, sqlite, and docker as a teaching tool for beginner web development.
-
Install docker for your particular machine: https://docs.docker.com/engine/installation/
-
Build the docker image for the app from inside the repo:
docker build -t <YOUR_DOCKER_HUB_USERNAME>/flask-rest-api-sqlite-example .
- Start running the app using docker:
docker run -p 8888:5000 <YOUR_DOCKER_HUB_USERNAME>/flask-rest-api-sqlite-example
- Visit the local app running in container at localhost:8888.