Skip to content

antonazaryev/nextify-auth

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Auth Platform

A secure, developer-friendly authentication layer built with Auth.js v1, Prisma 5, and MongoDB Atlas.

Features

  • 🔐 Multiple authentication methods (Credentials, OAuth 2.1, Magic Links)
  • 🛡️ Robust anti-spam protection
  • 🚀 TypeScript-first development
  • 📦 Monorepo architecture with pnpm workspaces
  • 🐳 Docker-based development and deployment
  • 🔄 CI/CD with GitHub Actions

Prerequisites

  • Node.js 18+
  • pnpm 8+
  • Docker and Docker Compose
  • MongoDB Atlas account
  • Redis instance (Upstash or self-hosted)

Getting Started

  1. Clone the repository:

    git clone https://github.com/your-org/nextify-auth.git
    cd nextify-auth
  2. Install dependencies:

    pnpm install
  3. Set up environment variables:

    cp .env.example .env
    # Edit .env with your configuration
  4. Start the development environment:

    docker compose up -d
    pnpm dev

Project Structure

/
├─ apps/                  # Deployable applications
│  ├─ web/               # Next.js UI
│  ├─ auth-handler/      # Auth.js route handlers
│  └─ api/               # Fastify service
├─ packages/             # Shared packages
│  ├─ db/                # Prisma Client
│  ├─ validation/        # Zod schemas
│  ├─ ui/                # React components
│  ├─ sdk/               # Client SDK
│  └─ config/            # Shared configs
└─ ...                   # See docs/adr/layout-adr.md

Development

  • pnpm dev - Start all services in development mode
  • pnpm build - Build all packages and applications
  • pnpm test - Run tests
  • pnpm lint - Run linting

Documentation

License

MIT

About

Full‑stack TypeScript boilerplate: Next.js UI, Fastify API, Auth.js + Prisma (Mongo), Redis rate‑limits, Docker‑ready.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors