Skip to content

Latest commit

 

History

History
74 lines (57 loc) · 1.62 KB

README.md

File metadata and controls

74 lines (57 loc) · 1.62 KB

FastAPI CRUD and Auth Project

This is the source code for the personal fastapi project. The project focuses on FastAPI development concepts that go beyond the basic CRUD operations.

Table of Contents

  1. Getting Started
  2. Prerequisites
  3. Project Setup
  4. Running the Application
  5. Running Tests
  6. Project Screenshots

Getting Started

Follow the instructions below to set up and run your FastAPI project.

Prerequisites

Ensure you have the following installed:

  • Python >= 3.10
  • PostgreSQL
  • Redis

Project Setup

  1. Clone the project repository:

    git clone https://github.com/KemalIlkilic/fastapi-bookAPI.git
  2. Navigate to the project directory:

    cd fastapi-bookAPI/
  3. Create and activate a virtual environment:

    python3 -m venv env
    source env/bin/activate
  4. Install the required dependencies:

    pip install -r requirements.txt
  5. Run database migrations to initialize the database schema:

    alembic upgrade head
  6. Open a new terminal and ensure your virtual environment is active. Start the Celery worker (Linux/Unix shell):

    sh runworker.sh

Running the Application

Start the application:

fastapi dev src/

Running Tests

Run the tests using this command

pytest

Screenshots

API Screenshot API Screenshot Bearer Screenshot Schemas Screenshot