https://github.com/ebharathi/nextauth-prisma-graphql
Built In Auth(Google,Git & Custom Password),session management, graphql api , prisma db(Postgres/mySQL/mongoDB)
https://github.com/ebharathi/nextauth-prisma-graphql
graphql monorepo nextauth nextjs nexus prisma sass sass-template template
Last synced: 3 months ago
JSON representation
Built In Auth(Google,Git & Custom Password),session management, graphql api , prisma db(Postgres/mySQL/mongoDB)
- Host: GitHub
- URL: https://github.com/ebharathi/nextauth-prisma-graphql
- Owner: ebharathi
- Created: 2025-03-21T21:46:02.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-03-22T09:55:25.000Z (over 1 year ago)
- Last Synced: 2025-03-22T10:28:20.232Z (over 1 year ago)
- Topics: graphql, monorepo, nextauth, nextjs, nexus, prisma, sass, sass-template, template
- Language: TypeScript
- Homepage:
- Size: 58.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Fullstack GraphQL Monorepo
A modern, powerful fullstack monorepo built with Next.js, GraphQL, Prisma, and Docker.
Fully typed, scalable, and production-ready architecture for building robust SaaS products.
Authentication
Seamless auth using NextAuth supporting:
-
OAuth Providers (Google, GitHub, etc.)
-
Custom Email + Password flow
-
Session-based server protection
Database
Built with Prisma ORM and supports:
-
PostgreSQL / SQLite
-
Safe typed queries
-
Auto migrations and seeding
GraphQL API
API built using Nexus (code-first schema) integrated with Prisma context:
-
Modular schema structure
-
Auth-aware resolvers
-
Runs inside /api/graphql route
Monorepo Architecture
A well-structured monorepo-like layout:
-
src/app – Next.js App Router pages
-
graphql/ – GraphQL schema & resolvers
-
lib/ – Shared server-side logic (auth, mail, context)
-
prisma/ – DB schema and migrations
Docker Ready
Easily deployable with Docker and supports CI/CD integrations. Local or cloud database can be used, with environment-aware secrets via example.env.