Skip to content

In this article, we’ll build a type-safe tRPC CRUD API with Next.js, PostgreSQL, and Prisma. This tRPC example in Next.js will showcase how to use tRPC on the backend and later we will consume the API on the frontend app.

Notifications You must be signed in to change notification settings

wpcodevo/trpc-nextjs-prisma

 
 

Repository files navigation

Full-Stack Next.js tRPC App: User Registration & Login Example

In this article, we'll build a full-stack Next.js tRPC app to register and sign in a user using React Query, TypeScript, React-Hook-Form, and Zod.

Full-Stack Next.js tRPC App: User Registration & Login Example

Topics Covered

  • Next.js tRPC API Server and Client Overview
  • Setup the Next.js tRPC Server and Client
  • Add the Zustand State Management Library
  • Create Reusable Next.js Components
    • Create a Loading Spinner Component
    • Create a Loading Button Component
    • Create a FullScreen Loader Component
    • Create the tRPC Client Header Component
    • Create an InputField Component with React-Hook-Form
    • Create an Image Uploader Component
  • Create the tRPC Client to Register a User
  • Create the tRPC Client to Sign in the User
  • Create the tRPC Authentication Guard
  • Create the Remaining Next.js Pages
    • Home Page
    • Profile Page
  • Update the App File

Read the entire article here: https://codevoweb.com/fullstack-nextjs-trpc-app-user-registration-login-example

Articles in this series:

1. How to Setup tRPC API Server & Client with Next.js and Prisma

How to Setup tRPC API Server & Client with Next.js and Prisma

2. Build tRPC API with Next.js & PostgreSQL: Access & Refresh Tokens

Build tRPC API with Next.js & PostgreSQL: Access & Refresh Tokens

3. Full-Stack Next.js tRPC App: User Registration & Login Example

Full-Stack Next.js tRPC App: User Registration & Login Example

4. Build a tRPC CRUD API Example with Next.js

Build a tRPC CRUD API Example with Next.js

About

In this article, we’ll build a type-safe tRPC CRUD API with Next.js, PostgreSQL, and Prisma. This tRPC example in Next.js will showcase how to use tRPC on the backend and later we will consume the API on the frontend app.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published