Skip to content

nemanjam/full-stack-fastapi-template-nextjs

Repository files navigation

Full stack FastAPI template Next.js

Next.js v16 fork of the official fastapi/full-stack-fastapi-template template. Server components, server actions, HttpOnly cookie auth, ShadcnUI with TailwindCSS v4, simplified local development environment and Docker production.

Unstable, work in progress.

Demo

https://full-stack-fastapi-template-nextjs.arm1.nemanjamitic.com

Credits

Features

  • Next.js v16, server components
  • React Hook Form and server actions for forms
  • HttpOnly cookie auth, enables SSR
  • Hey Api with client-next
  • Suspense, error boundaries
  • Turborepo monorepo, TailwindCSS v4, ShadcnUI
  • Validated env vars with Zod
  • Simple local dev environment, simplified Docker production

Todo

  • Register page, Github login
  • Migrate Playwright tests
  • Unit tests with Vitest, Testing Library
  • Tag Docker images
  • API sort params
  • Support emails, Sentry from the original repo
  • no-monorepo branch
  • Env vars with t3-oss/t3-env
  • Runtime only env vars, reusable build
  • Versioning with changesets/changesets or semantic-release/semantic-release
  • API internationalization
  • Update Python
  • Open graph, SEO, analytics
  • Tailscale Github Actions
  • Integration tests frontend and backend

Installation and running

Docs: docs/running.md

Routes

# Frontend
http://localhost:3000
https://full-stack-fastapi-template-nextjs.arm1.nemanjamitic.com

# Backend
http://localhost:8000/docs
https://api.full-stack-fastapi-template-nextjs.arm1.nemanjamitic.com/docs

# openapi.json
http://localhost:8000/api/v1/openapi.json
https://api.full-stack-fastapi-template-nextjs.arm1.nemanjamitic.com/api/v1/openapi.json

License

MIT license: License