This is a local API for creating and updating a Todo-List. The API can be deployed directly on the root OS or through a docker container.
- Clone the repository to your local PC and change directory to the root of the repository:
cd todo-list
- Build the docker image:
docker build -t todo-list-app .
- Run the docker image:
- Run the docker image without mounting the directory as volume:
docker run -it --rm -p 8000:8000 todo-list-app
- Run the docker image with mounting the directory as volume. You can make changes directly into the folder and uvicorn will reload upon detecting changes in the files:
docker run -it --rm -p 8000:8000 -v $(pwd):/todo-list todo-list-app
- Clone the repository to your local PC and change directory to the root of the repository:
cd todo-list
- Build the docker image:
pip3 install -r requirements.txt
- Run the docker image:
uvicorn app.main:app --host 0.0.0.0 --port 8000 --reload