Skip to content

Siyer2/autotriage

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AutoTriage Server

A FastAPI application used to triage incoming emails.

Getting Started

Prerequisites

  • Python 3.8 or higher
  • pip (Python package installer)

Installation

  1. Create a virtual environment:

    python -m venv .venv
  2. Activate the virtual environment:

    On macOS/Linux:

    source .venv/bin/activate

    On Windows:

    .venv\Scripts\activate
  3. Install dependencies:

    pip install -r requirements.txt

Running the Server

Development Mode

Run the server with auto-reload enabled for development:

uvicorn app.main:app --reload --host 0.0.0.0 --port 8000

Production Mode

For production, run without the --reload flag:

uvicorn app.main:app --host 0.0.0.0 --port 8000

The server will be available at:

API Documentation

Once the server is running, you can access:

Available Endpoints

  • GET / - Root endpoint with welcome message
  • GET /health - Health check endpoint

Running Tests

Run the test suite using pytest:

pytest

For verbose output:

pytest -v

For coverage report:

pytest --cov=app

Configuration

The application uses Pydantic Settings for configuration management. You can configure the application using:

  1. Default values in app/core/config.py

Key configuration options:

  • PROJECT_NAME: Application name
  • VERSION: Application version
  • DEBUG: Enable debug mode
  • HOST: Server host
  • PORT: Server port
  • ALLOWED_HOSTS: CORS allowed hosts

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages