A simple Book Store API with otp verification login
-
Clone the repository:
git clone https://github.com/rahulkbharti/book-store-fastapi.git cd book-store-fastapi -
Create and activate a virtual environment:
python -m venv venv source venv/bin/activate # On Windows: venv\Scripts\activate # Make Sure You have .env in root folder and replace with your own database config DATABASE_URL=postgresql+asyncpg://<username>:<password>@<host>:<port>/<database_name> SECRET_KEY=<your_secret_key> # for jwt
-
Install dependencies:
pip install -r requirements.txt
-
Start the FastAPI application:
py run.py
-
Open in browser:
http://localhost:8000
- API docs available at:
http://localhost:8000/docs - API collection and environment variable setup can be found in the Postman folder.