Getting Started

Set up your development environment and start building.

Prerequisites

ToolVersionPurpose
Python3.11+Runtime environment
Docker24.0+Containerization
PostgreSQL15+Database (via Docker)
Redis7+Caching (via Docker)

Installation

1. Clone the Repository

Terminal
git clone https://github.com/yourorg/forgeapi.git
cd forgeapi

2. Set Up Environment

Terminal
# Copy environment template
cp .env.example .env

# Edit with your values
nano .env

3. Start Services

Terminal
# Start all services with Docker
docker-compose up -d

# Check status
docker-compose ps

Success!

Your API is now running at http://localhost:8000

Environment Variables

These environment variables are required for the application to function properly. Missing values will cause startup failures.
VariableDescriptionExample
SECRET_KEYJWT signing key and general encryptionyour-super-secret-key
DATABASE_URLPostgreSQL connection stringpostgresql://user:pass@localhost/db
REDIS_URLRedis connection stringredis://localhost:6379