In this tutorial series you will learn how to build a full-stack web application from scratch using NextJS 13, Prisma, NestJS, GraphQL, and Nx Monorepo. This video covers setting up backend service with NestJS, Graphql, and Prisma.
GitHub Branch: https://github.com/hoqua/okkino/tree/feature/init-backend
Commands:
Add prisma lib : nx generate @nrwl/js:library --name=data-access-db --directory=api --compiler=swc --buildable --tags "scope:api"
Add GQL : npm i @nestjs/graphql @nestjs/mercurius graphql mercurius @nestjs/platform-fastify class-transformer class-validator
Add users feature lib : nx generate @nrwl/js:library --name=feature-user --directory=api --compiler=swc --buildable --tags "scope:api"
Gen user resources : nx g @nrwl/nest:resource --project=api-feature-user --directory=lib --type="graphql-code-first" --crud --name user
Add db types lib : nx generate @nrwl/js:library --name=generated-db-types --directory=api --compiler=swc --buildable --tags "scope:api"
The team:
Dev - https://www.linkedin.com/in/dmitrii-zolotuhin/
Design - https://www.linkedin.com/in/natagriig/
Montage - https://www.instagram.com/alexmihailiuk/
Okkino - https://instagram.com/okkino.studio
0:00 Intro
0:45 Creating project
4:08 Git Flow
5:23 Init Prisma
13:15 Adding graphql + user resolver
19:47 Prisma Types generation
25:32 Creating users
26:28 Fixing validation
27:58 NestJS security
34:46 Outro
#fullstack #webdevelopment #graphql #nodejs #react #nestjs #nextjs