Next.js + Tailwind + Typescript + Prisma + NextAuth starter project

Overview

This is a Next.js project bootstrapped with create-next-app.

Getting Started

First, run the development server:

npm run dev
# or
yarn dev

Open http://localhost:3000 with your browser to see the result.

You can start editing the page by modifying pages/index.js. The page auto-updates as you edit the file.

API routes can be accessed on http://localhost:3000/api/hello. This endpoint can be edited in pages/api/hello.js.

The pages/api directory is mapped to /api/*. Files in this directory are treated as API routes instead of React pages.

Learn More

To learn more about Next.js, take a look at the following resources:

You can check out the Next.js GitHub repository - your feedback and contributions are welcome!

Deploy on Vercel

The easiest way to deploy your Next.js app is to use the Vercel Platform from the creators of Next.js.

Check out our Next.js deployment documentation for more details.

You might also like...

A prisma-typegraphQL-typescript starter template with minimal setup

TypeGraphql-Prisma-Typescript Starter template. TECH INSIDE TypeGraphQL Apollo-express-server v3 Prisma v4 Typescript v4.7 TypegraphQL-prisma extensio

Sep 5, 2022

NextAuth.js plugin for Fastify.

fastify-next-auth Authentication plugin for Fastify, powered by NextAuth.js. Requirements: fastify-cookie: used to set cookie for tracking sessions. f

Dec 16, 2022

A simple JS example for NextAuth Google login with a popup window instead of redirect.

A simple JS example for NextAuth Google login with a popup window instead of redirect.

Dec 7, 2022

GitHub starter project link: https://github.com/buildspace/waveportal-starter-project

Running React on Repl.it React is a popular JavaScript library for building user interfaces. Vite is a blazing fast frontend build tool that includes

Jun 5, 2022

Starter template for a personal website blog, built with Next.js, MDX, and Tailwind CSS.

nextjs-mdx-blog-theme View: demo site Framework: Next.js Deployment: Vercel Content: MDX Styling: Tailwind CSS Running Locally $ git clone https://git

Dec 26, 2022

A fullstack next.js template with all the fun stuff like next auth, mongodb, prisma, chakra ui

A fullstack next.js template with all the fun stuff like next auth, mongodb, prisma, chakra ui

Welcome to FullStack Next.js template 👋 A fullstack next.js template with all the fun stuff like next auth, mongodb, prisma, chakra ui ✨ Demo Tech Ne

Oct 16, 2022

My-portfolio - Built with Namecheap, Digital Ocean, Nginx, PM2, SSL, NextJs, Tailwind 3, Graphql, NexusJS, Prisma, Postgres, Passion and Love

Current Implementation technologies Nextjs with Typescript. Static pages/ Server side rendering. Easy peasy state management (Might not need it with i

Jan 10, 2022

🚀 A web extension starter built with React, Typescript, and Tailwind CSS. Build once, and run on multiple browsers: Google Chrome, Mozilla Firefox, Microsoft Edge, Brave, and Opera..

🚀 A web extension starter built with React, Typescript, and Tailwind CSS. Build once, and run on multiple browsers: Google Chrome, Mozilla Firefox, Microsoft Edge, Brave, and Opera..

Web Extension Starter A web extension starter, built with React, Typescript, and Tailwind CSS. Build once, and run on multiple browsers: Google Chrome

Dec 28, 2022

🚀 Battle-tested Next.js TypeScript Prisma template with an opinionated architecture. 🔋 Included ™️

🚀 Battle-tested Next.js TypeScript Prisma template with an opinionated architecture. 🔋 Included ™️

🚀 The Ultimate Next.js Starter Pack Next.js ^12 + TypeScript + Prisma + Chakra UI starter packed with useful development features. I've adopted indus

Dec 10, 2022
Comments
  • Fresh install - Hydration Error

    Fresh install - Hydration Error

    Hey Steven,

    Thank you so much for adding this example so quickly after the tweet, this will help many others including myself with auth scaffolding (and learning from it).

    I've done a fresh install, created my .env, added my credentials and ran yarn dev but get the following error.

    Not sure if I've missed anything else. CleanShot 2022-11-27 at 9 17 07@2x

    opened by heychazza 1
  • TypeError on fresh install

    TypeError on fresh install

    I've just cloned the repo and did this:

    npm install
    npx prisma db push
    npm run dev
    

    The main page showed up for a split second before this error got displayed:

    image

    Here's the full error text:

    Unhandled Runtime Error
    TypeError: Cannot read properties of undefined (reading 'call')
    
    Call Stack
    options.factory
    file:///D:/Workspace/tmp/nextjs-mysql-auth-starter/.next/static/chunks/webpack.js (710:31)
    __webpack_require__
    /_next/static/chunks/webpack.js (37:33)
    fn
    file:///D:/Workspace/tmp/nextjs-mysql-auth-starter/.next/static/chunks/webpack.js (365:21)
    require
    node_modules\next\dist\client\image.js (7:15)
    ./node_modules/next/dist/client/image.js
    file:///D:/Workspace/tmp/nextjs-mysql-auth-starter/.next/static/chunks/app/page.js (50:1)
    options.factory
    /_next/static/chunks/webpack.js (710:31)
    __webpack_require__
    file:///D:/Workspace/tmp/nextjs-mysql-auth-starter/.next/static/chunks/webpack.js (37:33)
    fn
    /_next/static/chunks/webpack.js (365:21)
    __webpack_require__
    node_modules\next\dist\client\app-index.js (26:16)
    requireModule
    node_modules\next\dist\compiled\react-server-dom-webpack\client.js (142:0)
    initializeModuleChunk
    node_modules\next\dist\compiled\react-server-dom-webpack\client.js (427:0)
    readChunk
    node_modules\next\dist\compiled\react-server-dom-webpack\client.js (252:0)
    mountLazyComponent
    node_modules\next\dist\compiled\react-dom\cjs\react-dom.development.js (23079:0)
    beginWork
    node_modules\next\dist\compiled\react-dom\cjs\react-dom.development.js (24792:0)
    beginWork$1
    node_modules\next\dist\compiled\react-dom\cjs\react-dom.development.js (32185:0)
    performUnitOfWork
    node_modules\next\dist\compiled\react-dom\cjs\react-dom.development.js (31082:0)
    workLoopSync
    node_modules\next\dist\compiled\react-dom\cjs\react-dom.development.js (30891:0)
    renderRootSync
    node_modules\next\dist\compiled\react-dom\cjs\react-dom.development.js (30856:0)
    recoverFromConcurrentError
    node_modules\next\dist\compiled\react-dom\cjs\react-dom.development.js (30109:0)
    performConcurrentWorkOnRoot
    node_modules\next\dist\compiled\react-dom\cjs\react-dom.development.js (29996:0)
    workLoop
    node_modules\next\dist\compiled\scheduler\index.js (10:3921)
    flushWork
    node_modules\next\dist\compiled\scheduler\index.js (10:3629)
    MessagePort.performWorkUntilDeadline
    node_modules\next\dist\compiled\scheduler\index.js (10:1811)
    

    Here's the server log:

    ...
    event - compiled client and server successfully in 3.2s (658 modules)
    [next-auth][warn][EXPERIMENTAL_API]
    `unstable_getServerSession` is experimental and may be removed or changed in the future, as the name suggested.
    https://next-auth.js.org/configuration/nextjs#unstable_getServerSession}
    https://next-auth.js.org/warnings#EXPERIMENTAL_API
    [next-auth][warn][EXPERIMENTAL_API]
    `unstable_getServerSession` is used in a React Server Component.
    https://next-auth.js.org/configuration/nextjs#unstable_getServerSession}
    https://next-auth.js.org/warnings#EXPERIMENTAL_API
    [next-auth][warn][NEXTAUTH_URL]
    https://next-auth.js.org/warnings#nextauth_url
    

    Environment info:

    • OS: Windows 11
    • Node: v18.12.1

    But if I run the build and do npm run start, it works without an issue 🤔

    opened by zolbayars 1
  • Providing mongodb connection and google& github login entry

    Providing mongodb connection and google& github login entry

    hello, I have included github and google login provider and implemented a connection type with mongodb I am aware that this pr is missing I want to develop and contribute to this repo @steven-tey

    test : https://nextjs-typescript-starter-three.vercel.app/

    opened by mertcanaltin 1
Owner
Steven Tey
DevRel ▲@vercel
Steven Tey
Fullstack Turborepo starter. Typescript, Nestjs, Nextjs, Tailwind, Prisma, Github Actions, Docker, And Reverse proxy configured

Turborepo (NestJS + Prisma + NextJS + Tailwind + Typescript + Jest) Starter This is fullstack turborepo starter. It comes with the following features.

Ejaz Ahmed 132 Jan 9, 2023
⏪ Rewinds – Remix Tailwind Starter Kit with Tailwind CSS, Headless UI, Radix UI, and more

⏪ Rewinds – Remix Tailwind Starter Kit Rewinds is a Remix starter kit with Tailwind CSS v3 family of libraries. This is an example demo to combine the

M Haidar Hanif 81 Dec 24, 2022
Kaol Stack - Prisma, Expo, Next, TRPC, Solito, Tailwind - A monorepo template for a truly universal app

Kaol Stack ?? About A monorepo with Prisma, Next.js, Expo, tRPC, Authentication and Solito setup and configured to work together. With this setup you

Matheus Vicente 187 Dec 21, 2022
Minimal Next.js + TypeScript + Tailwind CSS starter template.

⚡ next-ts-tailwind-starter ⚡ Minimal Next.js + TypeScript + Tailwind CSS starter template. Made by Piyush Pandey Give a ⭐ if you want to appreciate. 1

Piyush Pandey 3 Jun 28, 2022
Next.js starter application using Prisma to connect to PlanetScale

Next.js starter This is a Next.js project that uses Prisma to connect to a PlanetScale database and Tailwind CSS for styling. Prerequisites Node.js Pl

PlanetScale 90 Dec 28, 2022
Prisma +2 generator to emit Yup schemas from your Prisma schema

Prisma Yup Generator Automatically generate Yup schemas from your Prisma Schema, and use them to validate your API endpoints or any other use you have

Omar Dulaimi 31 Dec 24, 2022
Prisma 2+ generator to emit Joi schemas from your Prisma schema

Prisma Joi Generator Automatically generate Joi schemas from your Prisma Schema, and use them to validate your API endpoints or any other use you have

Omar Dulaimi 26 Dec 24, 2022
Prisma +2 generator to emit a tRPC shield from your Prisma schema

Prisma tRPC Shield Generator Automatically generate a tRPC Shield from your Prisma Schema. Updates every time npx prisma generate runs. Table of Conte

Omar Dulaimi 27 Dec 24, 2022
Prisma 2+ generator to emit Zod schemas from your Prisma schema

Prisma Zod Generator Automatically generate Zod schemas from your Prisma Schema, and use them to validate your API endpoints or any other use you have

Omar Dulaimi 212 Dec 27, 2022
This is a library to alternate and self-host the Prisma Data Proxy (cloud.prisma.io)

Alternative Prisma Data Proxy This is a library to alternate and self-host the Prisma Data Proxy (cloud.prisma.io). In order to deploy your project to

AijiUejima 60 Dec 28, 2022