This is a Next.js project template integrated with Quiltt, designed to quickly bootstrap your fintech application development.
- Next.js 15 with App Router and Turbopack
- TypeScript for type safety
- Quiltt React SDK integration
- GraphQL code generation for Quiltt API
- Authentication flow with API routes (Login and Signup)
- UI components from shadcn/ui
- Tailwind CSS v4 for styling
- Biome for code formatting and linting
- React Hook Form with Zod validation
-
Clone this repository:
git clone https://github.com/quiltt/quiltt-nextjs-template.git cd quiltt-nextjs-template -
Install dependencies:
pnpm install
-
Set up your environment variables:
Create a
.env.localfile in the root directory and add your Quiltt API key:QUILTT_API_SECRET_KEY=your_api_secret_key_here
-
Generate GraphQL types:
pnpm run graphql:generate
-
Run the development server:
pnpm dev
Open http://localhost:3000 with your browser to see the result.
src/
├── app/
│ ├── (app)/ # App group with layout
│ │ ├── (private)/ # Protected routes
│ │ │ └── dashboard/ # Dashboard page
│ │ ├── (public)/ # Public routes
│ │ │ ├── login/ # Login page
│ │ │ └── signup/ # Signup page
│ │ ├── globals.css # Global styles
│ │ ├── layout.tsx # Root layout
│ │ └── page.tsx # Home page
│ └── api/ # API routes
│ ├── login/ # Login API endpoint
│ └── signup/ # Signup API endpoint
├── components/
│ └── ui/ # shadcn/ui components
├── generated/
│ └── graphql.ts # Generated GraphQL types
├── hooks/
│ ├── accounts/ # Account-related hooks
│ ├── quiltt/ # Quiltt-specific hooks
│ └── useQuilttAuth.ts # Authentication hook
└── lib/
└── utils.ts # Utility functions
pnpm dev- Start development server with Turbopackpnpm build- Build the application for productionpnpm start- Start the production serverpnpm lint- Run Biome linter and formatterpnpm typecheck- Run TypeScript type checkingpnpm graphql:generate- Generate GraphQL types from schema
The template includes a complete authentication flow:
- Public routes: Login and signup pages accessible without authentication
- Private routes: Dashboard and other protected pages requiring authentication
- API routes: Server-side authentication endpoints
- Custom hooks:
useQuilttAuthfor managing authentication state
You can start customizing the template by:
- Modifying pages in the
src/app/(app)directory - Adding new UI components in
src/components - Creating custom hooks in
src/hooks - Updating styles using Tailwind CSS classes
- Configuring Tailwind in
tailwind.config.ts
- Biome: Fast formatter and linter (configured in
biome.json) - TypeScript: Full type safety throughout the application
- GraphQL Code Generation: Automatic type generation for Quiltt API
- Turbopack: Fast development builds with Next.js 15
To learn more about the technologies used in this template:
- Next.js Documentation - learn about Next.js features and API
- Quiltt Documentation - explore Quiltt's features and API
- shadcn/ui - learn about the UI components used in this template
- Tailwind CSS - style your application efficiently
- Biome - fast formatter and linter for JavaScript and TypeScript
The easiest way to deploy your Next.js app is to use the Vercel Platform from the creators of Next.js.
- Push your code to a Git repository
- Import your project to Vercel
- Add your environment variables in the Vercel dashboard
- Deploy automatically on every push
This template can be deployed on any platform that supports Node.js applications, such as:
- Railway
- Render
- DigitalOcean App Platform
- AWS Amplify
- Netlify
Make sure to set your environment variables and run pnpm build during the build process.
Contributions are welcome! Please feel free to submit a Pull Request.
- Fork the project
- Create your feature branch (
git checkout -b feature/AmazingFeature) - Commit your changes (
git commit -m 'Add some AmazingFeature') - Push to the branch (
git push origin feature/AmazingFeature) - Open a Pull Request
This project is licensed under the MIT License - see the LICENSE.md file for details.