Skip to content

divgunjan/fastapi

Repository files navigation

FastAPI Backend Project

Overview

This is a backend application built with FastAPI, a modern, fast Python web framework for building APIs.

Features

  • Fast, async-first API development
  • Automatic interactive API documentation (Swagger UI)
  • Built-in data validation with Pydantic
  • Type hints support

Getting Started

Prerequisites

  • Python 3.7+
pip install -r requirements.txt

Cloning the Repository

git clone https://github.com/divgunjan/fastapi.git
cd fastapi

Installation

pip install -r requirements.txt

Dependencies

  • FastAPI
  • Uvicorn
  • SQLAlchemy
  • Pydantic
  • Alembic (for database migrations)

Installation

pip install fastapi uvicorn

Running the Server

uvicorn main:app --reload

The API will be available at http://localhost:8000

API Documentation

  • Swagger UI: http://localhost:8000/docs
  • ReDoc: http://localhost:8000/redoc

Project Structure

backend_fastapi/
├───.venv
├───.vscode
├───.idea
├───migrations
│   └───versions
├───src
│   ├───auth
│   ├───books
│   └───db
├───main.py
├───requirements.txt
└───README.md

Contributing

Feel free to open issues and submit pull requests.

About

using a mini DBMS project for learning fastapi + postgres and some other frameworks

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors