惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Jina AI
Jina AI
The Hacker News
The Hacker News
F
Fortinet All Blogs
The GitHub Blog
The GitHub Blog
IT之家
IT之家
Vercel News
Vercel News
aimingoo的专栏
aimingoo的专栏
月光博客
月光博客
AI
AI
罗磊的独立博客
B
Blog
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
博客园 - 聂微东
Google DeepMind News
Google DeepMind News
爱范儿
爱范儿
Blog — PlanetScale
Blog — PlanetScale
Security Latest
Security Latest
C
Cyber Attacks, Cyber Crime and Cyber Security
C
Check Point Blog
D
DataBreaches.Net
T
Threat Research - Cisco Blogs
I
InfoQ
阮一峰的网络日志
阮一峰的网络日志
人人都是产品经理
人人都是产品经理
G
Google Developers Blog
Microsoft Azure Blog
Microsoft Azure Blog
P
Proofpoint News Feed
L
Lohrmann on Cybersecurity
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
博客园 - Franky
C
Cybersecurity and Infrastructure Security Agency CISA
C
Cisco Blogs
MongoDB | Blog
MongoDB | Blog
P
Privacy & Cybersecurity Law Blog
Cisco Talos Blog
Cisco Talos Blog
P
Privacy International News Feed
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
博客园_首页
I
Intezer
云风的 BLOG
云风的 BLOG
K
KPMG report finds enterprise disconnect between AI and its ROI | CIO
美团技术团队
Simon Willison's Weblog
Simon Willison's Weblog
Application and Cybersecurity Blog
Application and Cybersecurity Blog
Forbes - Security
Forbes - Security
T
Tailwind CSS Blog
腾讯CDC
T
Troy Hunt's Blog
Know Your Adversary
Know Your Adversary
U
Unit 42

DEV Community

Authentication Security Deep Dive: From Brute Force to Salted Hashing (With Java Examples) Why AI Systems Don’t Fail — They Drift Spilling beans for how i learn for exam😁"Reinforcement Learning Cheat Sheet" I Replaced Chrome with Safari for AI Browser Automation. Here's What Broke (and What Finally Worked) How Python Borrows Other People's Work The $40 Architecture: Processing 1 Billion API Requests with 99.99% Uptime Vibe Coding: A Workflow Guide (From Zero to SaaS) Most webhook security guides protect the wrong side. The scary part is delivery. Headless CMS for TanStack Start: Build a Blog with Cosmic EU Age Verification App "Hacked in 2 Minutes" — What Actually Happened Comfy Cloud’s delete function does not actually remove files Running AI Models on GPU Cloud Servers: A Beginner Guide Event-driven media intelligence with AWS Step Functions and Bedrock I scored 500 AI prompts across 8 quality dimensions — here's what broke How to Call Google Gemini API from Next.js (Free Tier, No Backend Needed) The Portal Protocol: Reclaiming Human Connection in the Age of AI How to Fix Your Team's Scattered Knowledge Problem With a Self-Hosted Forum Intro to tc Cloud Functors: A Graph-First Mental Model for the Modern Cloud Designing Multi-Tenant Backends With Both Ownership and Team Access I Built a Neumorphic CSS Library with 77+ Components — Here's What I Learned PostgreSQL Performance Optimization: Why Connection Pooling Is Critical at Scale Cómo construí un SaaS multi-rubro para gestionar expensas en Argentina con FastAPI + Vue 3 🚀 I Built an Ethical Hacking Scanner Tool – Open Source Project I Replaced /usage and /context in Claude Code With a Single Statusline A Pythonic Way to Handle Emails (IMAP/SMTP) with Auto-Discovery and AI-Ready Design I Collected 8.9 Million Polymarket Price Points — Here's What I Found About How Markets Really Move EcoTrack AI — Carbon Footprint Tracker & Dashboard Everyone's Using AI. No One Agrees How. 5 self-hosted ebook managers worth trying in 2026 Building Your First AI Agent with LangChain: From Chatbot to Autonomous Assistant Common SOC 2 Failures (Real World) Stop Vibe-Checking Your AI App: A Practical Guide to Evals How to Use SonarQube and SonarScanner Locally to Level Up Your Code Quality Your Next To-Do App Is Dead — I Replaced Mine with an OpenClaw AI Sign a Nostr event in 60 lines of Python using coincurve — no nostr-sdk, no nbxplorer, no rust toolchain ITGC Audit Explained Like You’re in Big 4 Patch Tuesday abril 2026: Microsoft parcha 163 vulnerabilidades y un zero-day en SharePoint Stop scraping everything: a better way to track competitor price changes Listing on MCPize + the Official MCP Registry while routing payments OUTSIDE the marketplace — how I kept 100% of my x402 revenue Building an AI-Powered Risk Intelligence System Using Serverless Architecture Why We Ripped Function Overloading Out of Our AI Toolchain Testing AI-Generated Code: How to Actually Know If It Works SaaS Churn Is Killing Your Business. Here Is What to Do About It (Without a Support Team) The Speed of AI Is No Longer Linear - And Self-Improving Models Are Why How to Implement RBAC for MCP Tools: A Practical Guide for Engineering Teams From Standard Quote to Persuasive Proposal: AI Automation for Arborists I built a CLI that scaffolds complete multi-tenant SaaS apps Axios CVE-2025–62718: The Silent SSRF Bug That Could Be Hiding in Your Node.js App Right Now The dashboard that ended our friendship Data Pipelines Explained Simply (and How to Build Them with Python) The Hidden Cost of AI Systems Nobody Talks About. undefined vs undeclared, and how typeof behaves Switching from file-based jobs to NATS/Kafka in Rust without changing code io_uring Adventures: Rust Servers That Love Syscalls Why Agentic AI is Killing the Traditional Database The POUR principles of web accessibility for developers and designers Quantum Neural Network 3D — A Deep Dive into Interactive WebGL Visualization How To Install Caveman In Codex On macOS And Windows Automation Pipeline Reliability: Why Your Workflow Breaks When Nobody Is Watching I Built an 'Open World' AI Coding Agent — It Works From ANY Folder From Freelancing to Product: A Tech Service Company's SaaS Transformation China's AI Giants: Adding Tencent Hunyuan & ByteDance Doubao to AI University (74 Providers) On the Vibe Coders and Their Lies clerk: Auto-Summarize Your Claude Code Sessions AI Weekly — 2026/04/10–04/17 | The Model Lockdown Is Here, but the Toolchain Is the Real Battleground AI 週報 — 2026/04/10–2026/04/17 模型封鎖潮來了,但工具鏈才是真戰場 Maybe this is how Open-Source apps are born... 🚀 Fine-Tune LLMs with LoRA and QLoRA: 2026 Guide tRPC v11 + Next.js App Router: End-to-End Type Safety Without the Boilerplate ShadCN UI in 2026: Why I Stopped Installing Component Libraries and Started Owning My Components SaaS Billing in React Server Components: Stripe + Supabase Without a Single `useEffect` Join our DEV Weekend Challenge — $1,000 in Prizes Across TEN winners! Submissions Due April 20 at 6:59 AM UTC. Implementing FSRS Spaced Repetition in Flutter + Supabase — Adding Memory Science to an AI Learning App "I Texted My Localhost From the Train — Claude Code Fixed the Bug Before I Got Home" I Built a Sales Prep AI and It Went Deeper Than Expected Design to Code #2: One JSON, Eleven Outputs Solving the 100M-Row Problem: A Summary Table Pattern for High-Volume Push Notification Logs Flutter Web With Wasm: What Actually Changes For Developers I Built 50 Royalty-Free Soundtracks for My Side Project in a Weekend Using AI Music Generation The Vibe Coding Security Checklist: 7 Things to Check Before You Ship Stop Letting Googlebot Guess Fix Your React App's SEO Right Desconstruindo o Streaming do LinkedIn: Como Criar um Engine de Extração de Vídeo de Alta Performance com HLS e FFmpeg (EDA Part-1) EDA (Exploratory Data Analysis) Explained With Real Life — Why Looking at Your Data Is the Most Important Step in Machine Learning Brand Relationship Management at Scale: Our 4-Touch Outreach System for 200+ Brands Why String.fromEnvironment() Might Return an Empty String in Dart JGuardrails 1.0.0 — Hardening Java LLM Apps Against Jailbreaks, Toxicity, and Prompt Injection Plan and Schedule a Full Week of Threads Content From One Claude Conversation Coding Cat Oran Ep3, Five Tables Changed Everything Updated: BFF Pattern I'm done watching freelancers get buried by 200 proposals. So I'm building the alternative. This is my first post BFS Algorithm in Java Step by Step Tutorial with Examples Tracking LLM Pricing Monthly: An Open Dataset for 22 AI Models How We Measure Content ROI on a Comparison Site: Revenue Attribution Without Perfect Data Introducing Nova AI Ops: The AI-Native Operating System for SRE Teams I built a free desktop video downloader for Windows — Grabbit How Talkie OCR Helps Vision-Impaired & Dyslexic Users Read the World Around Them VRCFaceTracking安装和iPhone面捕配置教程,有bug Even CrowdStrike Can't See Your Agents The Automation Gold Rush: What n8n Workflows and Claude Are Opening Up for Developers Right Now
Ship a Full-Stack App in Minutes with FastAPI + React + Expo
Sreeraj Sreenivasan · 2026-05-30 · via DEV Community

description: Three production-ready open-source templates — FastAPI backend, React 19 web frontend, and Expo mobile app — pre-wired to talk to each other. Auth, Docker, type-safe API clients, RBAC, and CI/CD included. Just clone and ship.
tags: webdev, python, react, reactnative


We've all been there. You have a great app idea. You sit down, open a blank terminal, and immediately lose two days configuring auth, wiring up CORS, generating API clients, setting up Docker, choosing a linting strategy, and arguing with yourself about folder structure. The idea hasn't even started yet.

That setup tax is real, and it compounds across every project.

This post introduces a three-repository boilerplate ecosystem built for the way modern teams actually ship: a FastAPI backend, a React 19 web frontend, and an Expo mobile app — all pre-configured, pre-connected, and ready to clone. Whether you're building a SaaS, a hackathon project, or a production internal tool, this stack gets you to your first meaningful feature commit in under an hour.

Let's break it down.


The Architecture at a Glance

┌────────────────────────────────────────────────────────────┐
│                    FastAPI Backend                         │
│  PostgreSQL 18 · Alembic · JWT/RBAC · Prometheus · Traefik│
│  https://github.com/mobitrendz/fastapi-backend-template    │
└───────────────────────┬────────────────────────────────────┘
                        │  REST API  (/api/v1)
          ┌─────────────┴──────────────┐
          ▼                            ▼
┌─────────────────────┐    ┌──────────────────────────┐
│  React 19 Frontend  │    │  Expo Mobile App          │
│  Vite · TanStack    │    │  React Native · SDK 54    │
│  shadcn/ui · Zod    │    │  AsyncStorage · TypeScript│
│  mobitrendz/react-  │    │  mobitrendz/expo-mobile-  │
│  frontend-template  │    │  template                 │
└─────────────────────┘    └──────────────────────────┘

All three open-source repos share one source of truth: the OpenAPI schema exported by FastAPI. Both frontends generate their type-safe API clients from that schema with a single command. Change a backend endpoint? Regenerate. TypeScript errors surface immediately. No hand-rolled fetch calls, no runtime surprises.


Why FastAPI + React + Expo?

This trio isn't random. It's opinionated by design:

  • FastAPI is async-native, generates OpenAPI docs automatically, and ships Pydantic validation out of the box. It's the fastest way to build a self-documenting, type-safe REST API in Python.
  • React 19 with TanStack Query makes server state a first-class citizen — no Redux boilerplate, automatic cache invalidation, and optimistic updates with minimal ceremony.
  • Expo lets you target iOS and Android from one TypeScript codebase, using the same API client generation pattern as the web frontend.

The result: one backend schema drives three platforms, and refactoring is a compiler problem, not a grep-and-pray exercise.


Deep Dive: The Three Templates

1. FastAPI Backend Template

Repo: mobitrendz/fastapi-backend-template

This isn't a toy "hello world" FastAPI app. It implements a full Layered Modular Architecture:

Layer What lives here
app/api Versioned route controllers, OpenAPI docs
app/services Business logic, multi-step orchestration
app/crud Atomic, reusable database operations
app/models SQLModel definitions — DB tables and Pydantic DTOs in one
app/core Security, config, observability

Out of the box you get:

  • RBAC with three rolesSUPER, ADMIN, and USER — enforced via FastAPI dependency injection. Protect any route in one line:
from app.api.deps import AllowAdmin

@router.get("/admin-only")
async def secure_route(current_user: AllowAdmin):
    return {"message": "Hello, Admin!"}

  • Enterprise observability — structured JSON logging via Structlog, real-time metrics via Prometheus, and Sentry integration for error tracking.
  • Rate limiting via SlowAPI and Argon2 password hashing via pwdlib.
  • PostgreSQL 18 with Alembic migrations, psycopg3 binary driver, and full Docker Compose orchestration including pgAdmin and MailCatcher for local development.
  • uv for dependency management — reproducible, lightning-fast installs.
  • Security scanning via Bandit, type-checking via Mypy, formatting via Ruff.
  • Testcontainers + Hypothesis for property-based testing and isolated infra in CI.

The full local stack spins up with one command:

docker compose up --build

Or run the database in Docker while iterating on the API natively:

docker compose up -d db pgadmin mailcatcher
uv run fastapi dev --host 0.0.0.0

Local endpoints after boot:


2. React 19 Frontend Template

Repo: mobitrendz/react-frontend-template

92.66% test coverage. That's not a vanity metric — the CI pipeline enforces it via GitHub Actions, and a failing coverage gate blocks the merge.

Tech stack highlights:

Concern Tool
Framework React 19 + TypeScript
Build Vite 8
Server state TanStack Query
Routing React Router 7
UI components shadcn/ui + Lucide icons
Styling Tailwind CSS 4
Validation Zod
Testing Vitest + React Testing Library

The frontend ships with a Zod-validated environment schema — the app simply won't start if a required env variable is missing or mistyped. This eliminates an entire class of "works on my machine" bugs:

cp .env.example .env
# VITE_API_URL, VITE_ENV, VITE_ENABLE_ANALYTICS — all validated at startup

API integration uses @hey-api/openapi-ts to generate a fully type-safe SDK from the FastAPI OpenAPI spec. Pair it with TanStack Query and you get declarative data fetching with zero boilerplate:

import { useQuery } from "@tanstack/react-query";
import { readTodosApiV1TodosGet } from "./client/sdk.gen";

const { data, isLoading, error } = useQuery({
  queryKey: ["todos"],
  queryFn: () => readTodosApiV1TodosGet(),
});

What's included out of the box:

  • JWT auth with login/signup, token persistence, and role-based route protection
  • Admin dashboard: user management, status toggling, admin account creation, search and role filtering
  • Task management: inline editing, priority filtering, real-time search
  • Account lifecycle: profile editing, password change, account deletion with password verification
  • Premium dark-mode design system with glassmorphism and Tailwind 4
  • Pre-commit hooks for ESLint, Prettier, and TypeScript type checks before every commit
  • GitHub Actions API sync guardrail: if the backend schema changes without a regenerated SDK, CI fails

3. Expo Mobile Template

Repo: mobitrendz/expo-mobile-template

Built on Expo SDK 54 with React Native 0.81, React 19, and full TypeScript. Targets regular user accounts only — admin and super roles are rejected at sign-in, keeping the mobile surface clean and focused.

Features:

  • Sign in / sign up with JWT stored in AsyncStorage and automatic session restore on launch
  • Full todo/task manager: create, edit, delete, pull-to-refresh, tap to cycle status
  • Task fields: title, description, priority (Low/Medium/High), status (Pending/In Progress/Completed), due date & time
  • Profile screen: edit name/email, change password, delete account, sign out
  • Modal-based create/edit forms throughout

Like the web frontend, API calls are generated from the same openapi.json via @hey-api/openapi-ts:

npm run generate-api

API URL configuration is flexible — app.json, env variable, or automatic fallback:

Environment URL
iOS Simulator http://localhost:8000
Android Emulator http://10.0.2.2:8000
Physical device http://<your-lan-ip>:8000
Production https://your-api.example.com/

Native android/ and ios/ folders are gitignored; generate them on demand:

npx expo prebuild


How They Work Together: The Connection Story

The three repos share one integration contract: openapi.json.

Here's the flow:

  1. Backend starts and exposes http://localhost:8000/openapi.json
  2. Both frontends download this schema and run their code generator:
    • Web: npm run generate-client
    • Mobile: npm run generate-api
  3. Fully typed SDK files appear in src/client/ in both repos
  4. Every API call is now type-checked — wrong argument types or missing fields are compile errors, not runtime crashes

When you change a backend model or add an endpoint, the frontends surface the mismatch immediately. Your TypeScript compiler becomes your integration test.


Quick Start: Get the Whole Stack Running Locally

Prerequisites: Docker, Node.js 22+, uv (Python package manager)

Step 1 — Backend

git clone https://github.com/mobitrendz/fastapi-backend-template
cd fastapi-backend-template
cp .env.example .env
# Edit .env: set SECRET_KEY, POSTGRES_PASSWORD, SUPER_USER_PASSWORD
docker compose up --build

The API is live at http://localhost:8000. Swagger docs at http://localhost:8000/docs.

Step 2 — Web Frontend

git clone https://github.com/mobitrendz/react-frontend-template
cd react-frontend-template
npm install
pre-commit install
npm run generate-client   # pulls from localhost:8000/openapi.json
npm run dev               # http://localhost:5173

Step 3 — Mobile App

git clone https://github.com/mobitrendz/expo-mobile-template
cd expo-mobile-template
npm install
# Set your local IP in app.json → expo.extra.apiUrl
# or: export EXPO_PUBLIC_API_URL=http://<your-lan-ip>:8000
npm run generate-api
npm start
# Press 'a' for Android, 'i' for iOS, or scan QR for Expo Go

That's it. Three terminals, one full-stack cross-platform app with auth, RBAC, observability, and type safety.


What This Stack Is Great For

  • SaaS MVPs — ship web + mobile simultaneously from day one
  • Hackathons — spend your weekend on the actual idea, not the plumbing
  • Internal tools — RBAC and admin dashboard included, no plugins required
  • Learning projects — the architecture is documented, layered, and readable; great reference for production patterns

What's Next on the Roadmap

The backend README is clear: this is active development (beta). Features landing soon include expanded observability integrations, additional auth strategies, and further AI-assisted developer tooling. The architecture is already production-grade — it just keeps getting better.


Conclusion

Full-stack boilerplates are only useful if they don't become a liability. These three templates are designed to stay out of your way: generate, extend, ship.

  • No lock-in — standard FastAPI, standard React, standard Expo
  • No magic — every integration is explicit and readable
  • No cutting corners — Argon2 passwords, RBAC deps, type-safe API clients, 92%+ test coverage

If you're starting your next project this week, don't write the auth layer again.

⭐ Star the repos and fork them for your next build:

Found a bug? Have a feature idea? PRs and issues are open. The contributing guide is in each repo.


Built with FastAPI, React 19, Expo SDK 54, and a deep hatred of repetitive project setup.