Skip to content

benkwash/simple_python_auth_fastapi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Simple Auth

This is a simple api with an auth implementation built with FastAPI.
This project is built with FastAPI and is organized for scalability and maintainability.

Features

  • Modular structure for routes, middlewares, and utilities
  • Environment-based configuration
  • Virtual environment for dependency isolation

Project Structure

.env                # Environment variables
requirements.txt    # Python dependencies
src/
    main.py         # Application entry point
    routes.py       # API route definitions
    config/         # Configuration files
    constants/      # Constant values
    middlewares/    # Custom middlewares
    modules/        # Application modules
    utils/          # Utility functions

Setup

  1. Clone the repository:

    git clone https://github.com/benkwash/simple_python_auth_fastapi.git
    cd simple_python_auth_fastapi
  2. Create and activate a virtual environment:

    python3 -m venv env
    source env/bin/activate
  3. Install dependencies:

    pip install -r requirements.txt
  4. Set up environment variables:

    • Copy .env.example to .env and update values as needed.
  5. Run the application locally:

    uvicorn src.main:app --reload

Usage

  • Access the API at http://localhost:8000
  • Interactive API docs available at http://localhost:8000/docs

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages