
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.
Docker: https://full-stack-fastapi-template-nextjs.arm1.nemanjamitic.com
Vercel: https://full-stack-fastapi-template-nextjs.vercel.app
Docs: docs/running.md
If you want to deploy with Docker, use the main branch. If you want to deploy with Vercel, use the vercel-deploy branch.
# Dockergit checkout main
# Vercelgit checkout vercel-deploySimilarly to how you need two separate containers to deploy the app with Docker, you also need two separate deployments in Vercel to deploy the frontend and backend. You will configure them to be aware of each other using SITE_URL and API_URL, which they use to communicate with each other.
You can deploy to Vercel either using "Vercel button" or Vercel CLI method.
Clicking the "Deploy" button above will take you to the Vercel deployment wizard. It will create a single GitHub repository and two separate Vercel projects, pointing to the /backend and /frontend/apps/web directories for the backend and frontend, respectively.
No environment variables will be set automatically, you will need to configure them manually after the wizard completes. During setup, you will be prompted to add the Neon integration for a Postgres database. Make sure to select the backend project as the integration target. Finally, you will need to run the database migrations and seed the newly provisioned database.
You can also deploy to Vercel from you local development environment using Vercel CLI.
You can find more details about deploying using both "Vercel button" and Vercel CLI methods in the documentation linked bellow.
Frontend docs: docs/vercel-deployment-frontend.md
Backend docs: docs/vercel-deployment-backend.md
# Frontendhttp://localhost:3000https://full-stack-fastapi-template-nextjs.arm1.nemanjamitic.com
# Backendhttp://localhost:8000/docshttps://api-full-stack-fastapi-template-nextjs.arm1.nemanjamitic.com/docs
# openapi.jsonhttp://localhost:8000/api/v1/openapi.jsonhttps://api-full-stack-fastapi-template-nextjs.arm1.nemanjamitic.com/api/v1/openapi.jsonMIT license: License