β οΈ Work in Progress - This project is currently under active development and not yet ready for production use.
A modern, production-ready starter template built with Nuxt 4, featuring GraphQL API, authentication, database management, file uploads, and state management.
git clone https://github.com/productdevbook/better-nuxt-graphql-starter-kit.git
cd better-nuxt-graphql-starter-kit
pnpm install
Create a .env file in the root directory:
# Database
DATABASE_URL="postgresql://user:password@localhost:5432/dbname"
# Better Auth
AUTH_SECRET="your-auth-secret-here"
AUTH_URL="http://localhost:3000"
# OAuth Providers (optional)
GITHUB_CLIENT_ID=""
GITHUB_CLIENT_SECRET=""
# File Upload
UPLOAD_DIR="./uploads"
MAX_FILE_SIZE="10485760" # 10MB in bytes
Initialize the database with Drizzle:
pnpm db:generate # Generate migrations
pnpm db:migrate # Run migrations
pnpm db:studio # Open Drizzle Studio (optional)
Start the development server:
pnpm dev
The application will be available at http://localhost:3000
pnpm dev # Start development server
pnpm build # Build for production
pnpm preview # Preview production build
pnpm generate # Generate static site
pnpm typecheck # Run TypeScript type checking
pnpm lint # Run ESLint
pnpm lint:fix # Fix ESLint issues
This project is licensed under the MIT License - see the LICENSE file for details.
Built with β€οΈ by productdevbook
We use cookies
We use cookies to analyze traffic and improve your experience. You can accept or reject analytics cookies.