A modern, full-stack boilerplate to kickstart your TypeScript web application development with a powerful tech stack.
git clone https://github.com/yourusername/next-tailwind-prisma-typegraphql.git
cd next-tailwind-prisma-typegraphql
yarn install
# Create a .env file based on .env.example
cp .env.example .env
# Edit the .env file with your database connection string and other settings
yarn prisma db push
# Run the Next.js frontend with integrated GraphQL API
yarn dev
# Run GraphQL code generation in watch mode
yarn cw
├── app/ # Next.js app router pages
│ ├── api/ # API routes
│ │ └── graphql/ # GraphQL API endpoint
├── lib/ # Shared utilities
│ ├── graphql/ # GraphQL schema and resolvers
│ │ ├── resolvers/ # Custom GraphQL resolvers
│ │ └── schema.ts # GraphQL schema setup
├── prisma/ # Prisma schema and generated clients
│ ├── schema.prisma # Database schema
│ └── generated/ # TypeGraphQL generated resolvers
├── public/ # Static assets
└── codegen.ts # GraphQL code generation config
yarn dev
- Start Next.js development server with integrated GraphQL APIyarn build
- Build for productionyarn start
- Start production serveryarn lint
- Run ESLintyarn cw
- Run GraphQL code generation in watch modeyarn prisma generate
- Generate Prisma clientThe boilerplate includes a complete authentication system with:
This boilerplate provides end-to-end type safety:
This boilerplate is optimized for Vercel deployment. The GraphQL API is served through Next.js API routes, eliminating the need for a separate server process.
To deploy to Vercel:
Contributions are welcome! Please feel free to submit a Pull Request.
This project is licensed under the MIT License - see the LICENSE file for details.