This is a project built with FastAPI that interacts with a SQL database.
- Python 3.7+
- pip
- Clone the repository:
git clone https://github.com/AlexRook777/FastAPI.git
- Navigate to the project directory:
cd FastAPI - Create and activate a virtual environment:
python -m venv venv # On Windows, use: .venv\Scripts\activate # On macOS and Linux, use: source .venv/bin/activate
- Install the required packages:
pip install -r requirements.txt
To run the application, use the following command:
uvicorn main:app --reloadThe application will be available at http://127.0.0.1:8000.
You can access the API documentation at:
- Swagger UI:
http://127.0.0.1:8000/docs - ReDoc:
http://127.0.0.1:8000/redoc