Skip to content

Built In Auth(Google,Git & Custom Password),session management, graphql api , prisma db(Postgres/mySQL/mongoDB)

Notifications You must be signed in to change notification settings

ebharathi/nextauth-prisma-graphql

Repository files navigation

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.

About

Built In Auth(Google,Git & Custom Password),session management, graphql api , prisma db(Postgres/mySQL/mongoDB)

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages