# fastapi2 **Repository Path**: love_till_hurt/fastapi2 ## Basic Information - **Project Name**: fastapi2 - **Description**: No description available - **Primary Language**: Python - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2024-07-17 - **Last Updated**: 2024-07-17 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # fastapi-example [![CircleCI](https://circleci.com/gh/marciovrl/fastapi-example.svg?style=svg)](https://circleci.com/gh/marciovrl/fastapi-example) A simple example of using Fast API in Python. ## Preconditions: - Python 3 ## Clone the project ``` git clone https://github.com/marciovrl/fastapi-example.git ``` ## Run local ### Install dependencies ``` pip install -r requirements.txt ``` ### Run server ``` uvicorn app.main:app --reload ``` ### Run test ``` pytest app/test.py ``` ## Run with docker ### Run server ``` docker-compose up -d --build ``` ### Run test ``` docker-compose exec app pytest test/test.py ``` ## API documentation (provided by Swagger UI) ``` http://127.0.0.1:8000/docs ``` ### Run server ``` docker-compose exec db psql --username=fastapi --dbname=fastapi_dev ```