• Stars
    star
    133
  • Rank 264,635 (Top 6 %)
  • Language
    TypeScript
  • Created almost 2 years ago
  • Updated almost 2 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

tRPC with Next.js, TypeScript & Prisma

Why you should be learning & using tRPC

  • Making E2E type-safe APIs is fun and easy
  • Gives you a deeper understanding of Next.js
  • Going to be very popular (prediction)

Technologies used

  • tRPC
  • TypeScript
  • Prisma (Postgres)
  • Zod - Schema validation & type generation
  • nodemailer - Sending OTP emails

Features

  • Register user
  • Login with OTP
  • Create a post
  • View a post
  • List posts

What will you learn?

  • Enough tRPC to be productive
  • Using Next.js as a monorepo
  • Some TypeScript
  • OPT login flow

What you will need

  • A running instance of a DB (Postgres, Mongo, SQLlite, MYSQL) - Postgres

Video structure

  1. Demo

  2. Code walk-through

  3. Bootstrap application

    • Create app router
    • Create router base
    • Configure _app.tsx
    • Make a request
    • Configure prisma
  4. Register user

    • Create a user model
    • Create register user schema
    • Configure user router
    • Register user resolver
    • Register UI
  5. User login

    • Add login token to prisma
    • Login schema
    • Configure mailer
    • Verify login schema
    • Login resolver
    • Verify login resolver
    • Login UI
  6. Create post

    • Add post to prisma
    • Create post router
    • Create post resolver
    • Create post UI
  7. List posts

    • List posts resolver
    • List posts UI
  8. View single post

    • Query post schema
    • Query post resolver
    • Post UI

More Repositories

1

REST-API-Tutorial-Updated

TypeScript
424
star
2

REST-API-Tutorial

TypeScript
170
star
3

fastify-prisma-rest-api

TypeScript
137
star
4

Testing-Express-REST-API

TypeScript
110
star
5

auth-api-tutorial

TypeScript
88
star
6

youtube-clone

TypeScript
61
star
7

JWT-Access-Refresh-Tokens

TypeScript
58
star
8

t3-chat

TypeScript
57
star
9

Google-OAuth-NodeJS

TypeScript
53
star
10

Realtime-Chat-Application

TypeScript
51
star
11

t3-twitter-clone

TypeScript
40
star
12

TypeGraphQL-Typegoose-GraphQL-Tutorial

TypeScript
33
star
13

beginners-guide-to-next.js

TypeScript
31
star
14

NestJS-GraphQL

TypeScript
27
star
15

caddy-nodejs-docker-tutorial

Dockerfile
25
star
16

go-react-todo

TypeScript
25
star
17

user-api

TypeScript
24
star
18

The-Ultimate-Guide-to-TypeScript-With-Mongoose

TypeScript
21
star
19

REST-API-With-UI

TypeScript
20
star
20

React-Sortable-Table

TypeScript
18
star
21

with-streaming-with-next.js

TypeScript
15
star
22

NextJS-With-Apollo-Client-Tutorial

TypeScript
15
star
23

golang-for-node-devs

Go
14
star
24

FS-URL-shortener-tutorial

JavaScript
14
star
25

password-manager

TypeScript
13
star
26

remix-with-apollo

TypeScript
12
star
27

react-debounce-search

TypeScript
12
star
28

perfect-background-image-tutorial

TypeScript
12
star
29

graphql-twitter-api-clone

TypeScript
11
star
30

event-driven-microservices

TypeScript
11
star
31

nested-comments

TypeScript
10
star
32

pre-signed-put-url

CSS
10
star
33

multi-domain

Go
9
star
34

js-design-patterns

JavaScript
9
star
35

todo-app

TypeScript
9
star
36

React-form-validation

TypeScript
9
star
37

debounce-throttle

TypeScript
8
star
38

t3-generate

Handlebars
8
star
39

chat-tutorial

TypeScript
7
star
40

mongodb-react-pagination

JavaScript
7
star
41

Countdown-Timer

TypeScript
6
star
42

form-generation-library

TypeScript
6
star
43

12-js-tips-and-tricks

JavaScript
5
star
44

TicTacToe

TypeScript
5
star
45

prisma-relationships

TypeScript
5
star
46

just-enough-zod-to-be-productive

TypeScript
5
star
47

buy-me-a-beer

TypeScript
5
star
48

map-reduce-filter

JavaScript
5
star
49

just-enough-fastify-to-be-productive

TypeScript
5
star
50

url-shortener-tutorial

TypeScript
4
star
51

JWT-Library

TypeScript
4
star
52

learn-sql

4
star
53

Remix-IP-Grabber

TypeScript
4
star
54

Sentiment-Analysis-NodeJS

TypeScript
3
star
55

website-scraping-example

HTML
3
star
56

React-with-TypeScript

TypeScript
3
star
57

GoTH

Go
2
star
58

discord-youtube-bot

TypeScript
2
star
59

trpc-chat-pre

TypeScript
2
star
60

typescript-lessons

TypeScript
1
star
61

Punishing-Scammera-with-Puppeteer

TypeScript
1
star
62

Callbacks-Promises-Async-Await

JavaScript
1
star
63

testing

1
star
64

wu-tang-clan-name-generator

TypeScript
1
star
65

just-enough-git

HTML
1
star
66

md

Go
1
star
67

mongoose-change-streams-typescript

TypeScript
1
star
68

build-and-deploy-to-theedge

TypeScript
1
star
69

go-for-ts-developers

Go
1
star