Newsletter
Join the Community
Subscribe to our newsletter for the latest news and updates
A full-stack Next.js boilerplate for building complete websites with App Router, Pages Router, Express/NestJS backends, and Docker/PM2 deployment.

A full-stack Next.js TypeScript template focused on functionality over UI, featuring Zustand, TanStack Query, and ESLint 9 support.
fullstack-nextjs-app-template is a full-stack Next.js boilerplate that scaffolds a complete website architecture, pairing an App Router demo (default) with a Pages Router demo, an Express backend, a NestJS backend, and deployment tooling for Docker, PM2, and Nginx.
This is a full-stack sample web application built on Next.js that provides the foundational services, components, and plumbing needed to get a basic web application up and running. The repository ships with both an App Router template (default) and a Pages Router template (enable it by renaming @pages to pages and deleting app). It also includes static HTML export, server-side rendering, incremental static regeneration, and a custom server setup.
@pages directory to pages and removing app.backend/ and a NestJS server in backend@nest/, each with an optional local PHP service on port 4000.socket.io, video streaming demos (normal, encrypted, decrypted), and Markdown rendering with markdown-it.npm run export and npm run export:fix, output to out/.src/, pages, and API routes, so new developers start from the same baseline.After cloning, you run npm install, then npm run dev (optionally with npm run action:phpserver to launch a PHP test service). The project compiles and serves at http://localhost:3000. For production, npm run build compiles the application and npm run start runs the production server; npm run export generates a static HTML version into the out/ folder.
Yes. The App Router is the default with an app/ directory; to switch to Pages Router, rename the @pages folder to pages and delete the app folder.
No. As the README warns, Incremental Static Regeneration (ISR) cannot be used with output: export. Choose one approach: static export or on-demand ISR.
The repository includes a Dockerfile and docker-compose.yml. Build with docker build -t fullstack-nextjs-app-template:v1 ., then run docker run -p 3000:3000 fullstack-nextjs-app-template:v1. The Docker image uses output: standalone.
Yes, a local PHP service is used to test background management features. Run npm run action:phpserver to start PHP on port 4000 for the Express backend, or run the NestJS backend in backend@nest/.
