Skip to content

SuperGalaxy0901/FastAPI-JWTAuth-PostgreSQL-Alembic

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Project Structure

The repository is structured as a DevContainer and contains the following features:

  • A Python 3.12 environment installed from the default Microsoft Devcontainer registry.
  • A Docker configuration for local and web codespaces development, including a PostgreSQL database.
  • PostgreSQL runs on its default port 5432.

Preinstalled Python Packages

  • FastAPI
  • Uvicorn
  • SQLAlchemy
  • Alembic
  • Pyscopg2
  • Python Dotenv
  • Python Multipart

Preinstalled Python Packages for Development

  • Black
  • Pytest
  • Pytest-cov
  • Coverage

Preinstalled VS Code Extensions

  • Python
  • Pylance
  • Black formatter
  • SQL Tools for PostgreSQL

Getting Started

Local Development

  1. Install the VSCode Devcontainer extension.
  2. Open the repository in VSCode.

Running the Application

Using DevContainers

This project is set up to be used with Visual Studio Code DevContainers. To start the application:

  1. Open the project in Visual Studio Code.
  2. Reopen the project in a DevContainer.
  3. The application will automatically build and start.

Using Docker Compose

Alternatively, you can run the application using Docker Compose:

docker-compose up --build

Create and Apply Migrations

This project uses Alembic to manage migrations and changes to the database.

  1. Create a new migration after updating the models:
alembic revision --autogenerate -m "Update models with correct table names and relationships"
  1. Apply the migrations:
alembic upgrade head

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published