Skip to content

guelland/fastapi_mysql_docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FastAPI MySQL Docker

Dieses Projekt bietet eine Beispielanwendung, die FastAPI mit MySQL in einem Docker-Container integriert.

Inhaltsverzeichnis

  • Installation
  • Verwendung
  • Projektstruktur
  • Konfiguration
  • Beitragen
  • Lizenz

Installation

  1. Repository klonen:
    git clone https://github.com/integration-developer-de/fastapi_mysql_docker.git
    cd fastapi_mysql_docker
  2. Docker-Container starten:
    docker-compose up --build

Verwendung

Nach dem Starten des Docker-Containers ist die Anwendung unter http://localhost:8000 erreichbar.

API-Tests

Du kannst die API mit Postman oder einem anderen API-Client testen.

Verwendung von Postman:

  1. API-Sammlung importieren: Du kannst Anfragen manuell in Postman erstellen oder eine vorhandene Sammlung importieren, falls verfügbar.
  2. Neue Anfrage erstellen: Methode (GET, POST, etc.) und URL (z.B. http://localhost:8000/items) festlegen.
  3. Anfrage senden: Die Antwort anzeigen und verschiedene Endpunkte testen.

Projektstruktur

fastapi_mysql_docker/
├── app/
│   ├── main.py
│   ├── models.py
│   ├── schemas.py
│   ├── crud.py
│   └── database.py
├── docker-compose.yml
├── Dockerfile
└── README.md

Author

Created by integration-developer.de

License

This project is licensed under the [Feel free to experiment] license.

About

The development of a high-performance REST API with FastAPI for CRUD operations (Create, Read, Update, Delete) of a product product model. The API stores and manages product data (name, price, stock) in a MySQL database. The entire system runs in Docker containers for easy deployment and management

Topics

Resources

Stars

Watchers

Forks

Contributors