A fullstack setup script for bootstrapping a modern fullstack Next.js application using Bun. This script automates the entire initialization process with production-ready configurations and best practices.
- Next.js with App Router and TypeScript
- Bun package manager and script runner for improved performance
- Tailwind CSS with automatic migrator from v3 to v4
- Dual linting/formatting with ESLint and Biome
- Drizzle ORM configured for PostgreSQL databases (optional)
- shadcn/ui component library with custom path aliases
- Environment templates with authentication setup as starting point
- Code quality npm scripts for development, linting, and type checking
- VS Code project integration
Save the script as setup-nextjs.ps1
and run it from PowerShell with:
.\setup-nextjs.ps1
Save the script as setup-nextjs.sh
, make it executable, and run:
chmod +x setup-nextjs.sh
./setup-nextjs.sh
Or simply copy and paste commands as needed into your terminal.
- Bun installed (https://bun.sh)
- Node.js installed
- PostgreSQL database (for Drizzle ORM) (optional)
- VS Code (optional, for the final
code .
command)
This zero-to-production bootstrapper creates a fully configured development environment that follows modern best practices, saving minutes of manual setup and configuration.
My very first gist is live! Follow my profile to catch the next cool ones! 🦾