This is the source code for the personal fastapi project. The project focuses on FastAPI development concepts that go beyond the basic CRUD operations.
- Getting Started
- Prerequisites
- Project Setup
- Running the Application
- Running Tests
- Project Screenshots
Follow the instructions below to set up and run your FastAPI project.
Ensure you have the following installed:
- Python >= 3.10
- PostgreSQL
- Redis
-
Clone the project repository:
git clone https://github.com/KemalIlkilic/fastapi-bookAPI.git
-
Navigate to the project directory:
cd fastapi-bookAPI/
-
Create and activate a virtual environment:
python3 -m venv env source env/bin/activate
-
Install the required dependencies:
pip install -r requirements.txt
-
Run database migrations to initialize the database schema:
alembic upgrade head
-
Open a new terminal and ensure your virtual environment is active. Start the Celery worker (Linux/Unix shell):
sh runworker.sh
Start the application:
fastapi dev src/
Run the tests using this command
pytest