Back to all projects
Backend API & Database Architecture2026

Acta REST API & Auth Service

Django REST Framework & PostgreSQL Engine

A scalable, production-ready Django REST backend with relational models, OAuth2 integration, and JWT rotation.

01 / 08
Django REST API Architecture Overview
API Engine Overview

Relational backend service built with Django REST Framework and PostgreSQL.

Overview

The problem and who it was built for

The Acta Backend Engine is built with Django REST Framework and PostgreSQL. It exposes granular endpoints for task CRUD operations, due date grouping, and workspace management, paired with secure Google OAuth2 token verification and a custom refresh token rotation pipeline.

The Problem

Building modern frontend apps with optimistic UI mutations requires low-latency backend APIs with strict data validation, resilient token rotation to avoid user dropouts, and normalized relational structures that prevent orphan records.

Who It Was For

Built to power web and mobile clients requiring low-latency JSON responses, secure Google OAuth2 authentication, and multi-tenant workspace isolation.

My Role

What I built and architectural boundaries

I architected and built the entire backend API, relational models, and auth pipeline.

What I Built

  • Designed normalized PostgreSQL database schemas with foreign key constraints and index optimizations.
  • Implemented Django REST Framework viewsets and model serializers with deep validation.
  • Engineered Google OAuth2 backend authentication and JWT rotation with SimpleJWT.
  • Configured CORS policies, environment security parameters, and containerized Docker setup.
  • Built automated API tests and documentation for seamless frontend integration.

What I Didn't Build (Scope & Limits)

  • Did not manage bare metal server clusters; deployed as containerized service on modern cloud infrastructure.

Key Features

Core functionalities and workflows

01

JWT Token Rotation & Refresh

Rotates refresh tokens on each exchange and verifies blacklisted tokens to prevent replay attacks.

02

Google OAuth2 Verification

Exchanges Google OAuth2 tokens securely with backend user profiles and auto-creates accounts.

03

Optimized Relational Queries

Uses select_related and prefetch_related to eliminate N+1 query bottlenecks on workspace listings.

04

Granular Permission Classes

Role-based object level permissions ensuring users can only read and mutate their own workspace records.

Technical Decisions

Why specific tools and architectural patterns were chosen

Django REST Framework

API Architecture & Serializers

Provides powerful serialization, built-in validation, and structured viewsets for rapid, reliable endpoint delivery.

PostgreSQL

Relational Database Engine

Guarantees ACID transactions, strict referential integrity, and efficient index queries for task dates and priorities.

SimpleJWT

Stateless Authentication & Token Rotation

Enables stateless scalable authentication while providing token blacklisting for secure user logout.