This is a simple "Hello World" web application built with FastAPI, designed to run within a Docker container.
This project serves as a basic demonstration of a FastAPI application, containerized using Docker. It exposes a single endpoint that returns a JSON response.
- FastAPI Framework: Utilizes the modern, fast (high-performance) web framework for building APIs with Python 3.8+.
- Dockerized: The application is packaged into a Docker container for easy deployment and portability.
- "Hello World" Endpoint: A basic GET endpoint at the root (
/) that returns{"Hello": "World"}.
- Python
- FastAPI
- Uvicorn (ASGI server)
- Docker
Make sure you have the following installed:
-
Clone the repository:
git clone <your-repo-url> cd fastapi-project
-
Build the Docker image:
docker build -t fastapi-project . -
Run the Docker container:
docker run -d -p 80:80 fastapi-project
-
Access the application: Open your web browser and navigate to
http://localhost.
This entire project, including its structure, code, Dockerfile, and documentation, was developed by Gemini CLI.