Newsletter
Join the Community
Subscribe to our newsletter for the latest news and updates
Monorepo fullstack boilerplate with GraphQL API, Next.js, Prisma 2, Ant Design, and cookie auth.
GraphQL Fullstack Boilerplate is a monorepo web application starter that bundles a GraphQL API, server-side cookie authentication with bcrypt and JWT, database access via Prisma 2, and an Ant Design frontend into one deployable Next.js app.
This boilerplate gives you a working fullstack application after cloning and installing dependencies. It takes a new project and outputs an app with user sign-up, login, logout, profile viewing, and a dashboard, all wired through GraphQL queries and mutations. The platform is Next.js with the GraphQL endpoint served from an API Route at pages/api/graphql.ts. The project was created by Kunalgorithm and is available on GitHub.
sameSite: lax.schema.prisma, migrating, and exposing them through the GraphQL typedefs in apollo/typedefs.js.After cloning the repository, run yarn to install dependencies and yarn dev to start development. To change the data model, edit prisma/schema.prisma, run yarn migrate:save and yarn migrate:up, then yarn generate to regenerate the Prisma client. The authentication flow sets an httpOnly cookie on login, and subsequent server-side requests read that cookie automatically without client-side token handling.
Yes, it is open source and can be cloned from GitHub. The only recurring costs come from hosting: the README states that Render web service starter plans and Postgres starter instances each cost $7 per month at the time of writing.
The stack is TypeScript throughout, Next.js for rendering and API Routes, Apollo Client (React Hooks) for GraphQL, Prisma 2 for database access and migrations, bcrypt and JWT for authentication, and Ant Design for UI components.
Add a new property to the model in prisma/schema.prisma, like githubUrl String?, run the migration commands, then update the GraphQL type definition in apollo/typedefs.js and the query in your component. If the new field does not appear, run yarn generate to update the Prisma client.
Yes, the development database is SQLite stored in a local file. For production, switch the datasource provider in schema.prisma to PostgreSQL and set a DATABASE_URL environment variable, then migrate again.
The repository claims a full production-ready web application can be deployed in less than 60 seconds using the one-click Render deploy button.
