HyperSaaS
BackendGetting Started

Overview

Get the HyperSaaS backend up and running.

Introduction

The HyperSaaS backend is a Django 5 application built on cookiecutter-django. It provides a production-ready REST API with authentication, multi-tenancy, AI chat, document management, and Stripe billing.

Tech Stack

TechnologyVersionPurpose
Python3.12+Runtime
Django5.1Web framework
Django REST Framework3.16API layer
PostgreSQL17Database
pgvector0.3Vector similarity search
Redis6+Cache & message broker
Celery5.5Background task queue
DockerLatestContainerization

Prerequisites

  • Python 3.12+
  • Docker & Docker Compose
  • PostgreSQL 15+ with pgvector extension
  • Redis 6+
  • An OpenAI API key (for embeddings and AI models)
  • A Stripe account (for billing)

Quick Start

# Clone and enter the backend directory
git clone <your-repo-url>
cd backend

# Copy environment files
cp .envs/.local/.django.example .envs/.local/.django
cp .envs/.local/.postgres.example .envs/.local/.postgres

# Build and start all services
docker compose -f docker-compose.local.yml build
docker compose -f docker-compose.local.yml up -d

# Run migrations
docker exec backend_local_django python manage.py migrate

# Create a superuser
docker exec -it backend_local_django python manage.py createsuperuser

The API is now available at http://localhost:8000/api/ and the admin panel at http://localhost:8000/admin/.

On this page