boiler-plate-get-started-login-nextjs-tailwind-prisma-azure-nextauth-stripe-sendgrid Tailwind Templates

Boiler Plate Get Started Login Nextjs Tailwind Prisma Azure Nextauth Stripe Sendgrid

This directory includes boilerplate for Next.js 14, Azure SQL, Prisma, NextAuth, Tailwind CSS, Stripe, and SendGrid. It enables building a working get-started app with user and company creation, verified devices, multi-factor email authentication, secure password encryption, session handling, and Stripe for subscription payments.

Project Setup

This guide walks you through setting up the project with Next.js 14, Azure SQL, Prisma, NextAuth, Tailwind CSS, Stripe, and SendGrid. Follow these steps to get started.

Prerequisites

Before you begin, ensure you have the following accounts and API keys:

Setup

  1. Clone the Repository:

    git clone "repo"
    cd repo
    
  2. Install Dependencies:

   npm i .
  1. Create a .env File:

Create a .env file in the root directory and add the following environment variables:

DATABASE_URL=""
SHADOW_DATABASE_URL=""

STRIPE_SECRET_KEY=""
STRIPE_PRICE_ID_STARTER=""
STRIPE_PRICE_ID_BUSINESS=""
STRIPE_PRICE_ID_ENTREPRENEURIAL=""

NEXT_PUBLIC_BASE_URL="" # Your development or production URL

SENDGRID_API_KEY=""

NEXTAUTH_SECRET=""
  1. Generate a 32-byte Secret for NEXTAUTH_SECRET:
openssl rand -base64 32

Top categories

Loading Svelte Themes