-
Clone the repository:
git clone https://github.com/AjayPudasaini/fast_api_crud
-
Setup environment:
cd fast_api_crud
-
Activate environment:
# On Windows venv\Scripts\activate # On macOS and Linux source venv/bin/activate
-
Install requirements:
pip install -r requirements.txt
-
Change PostgreSQL URL:
Update the DATABASE URL in
fast_api_crud/database/database.py
to match your database configuration. -
Run the local server:
uvicorn main:app --reload
After starting the server, you can access the API documentation in your browser at localhost:8000/docs/
. The Swagger UI will allow you to interact with the API endpoints.