This project is a web application built using FastAPI, a modern, fast (high-performance), web framework for building APIs with Python 3.6+ based on standard Python type hints.
- High Performance: FastAPI is built on Starlette for the web parts and Pydantic for the data parts.
- Easy to Use: Designed to be easy to use and learn, with great editor support.
- Automatic Docs: Generate OpenAPI and JSON Schema documentation automatically.
- Dependency Injection: Easy to use dependency injection system.
To install the project, follow these steps:
-
Clone the repository:
git clone https://github.com/ginio15/fast-api.git cd fast-api
-
Create a virtual environment:
python3 -m venv venv source venv/bin/activate
-
Install the dependencies:
pip install -r requirements.txt
To run the application, use the following command:
uvicorn main:app --reload
This will start the FastAPI server on http://127.0.0.1:8000.
Project Structure
main.py: The main entry point of the application.
models.py: Contains the data models used in the application.
schemas.py: Defines the data schemas for request and response models.
routers/: Contains the different route modules.
tests/: Contains the test cases for the application.