Skip to content

A simple Flask app that demonstrates how to containerize an application using Docker.

Notifications You must be signed in to change notification settings

younesmod/docker-python-todo-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Docker Image Build and Push Docker Images Scan Docker Image

🐳 Dockerized To-Do API / Hello World App

A simple Flask app that demonstrates how to containerize an application using Docker.

🚀 Features

  • Simple REST API (GET and POST)
  • Uses dependencies from requirements.txt
  • Dockerized for easy deployment

🧰 Tech Stack

  • Python + Flask
  • Docker

🧩 Setup

# Clone repo
git clone https://github.com/younesmod/docker-python-todo-api.git
cd docker-python-todo-api

# Build Docker image
docker build -t docker-python-todo-api .

# Run container
docker run -p 5000:5000 docker-python-todo-api    # Flask version

🧪 Example API Calls

curl http://localhost:5000/
curl -X POST -H "Content-Type: application/json" \
     -d '{"task": "Learn Docker"}' http://localhost:5000/todos

About

A simple Flask app that demonstrates how to containerize an application using Docker.

Topics

Resources

Stars

Watchers

Forks

Packages