Project/practice

pnpm을 이용한 monorepo 방식의 nestjs, next.js app 구축

verbena 2024. 2. 16.

pnpm

pnpm 사용 이유 : nestjs와 next.js를 사용해 웹사이트를 개발, 같은 타입스크립트 생태게에서 pnpm을 통해 함께 작동하도록 모노레포 형식으로 구현

모노레포에 대해 학습하고자 이 방식을 썼다

  • It keeps the frontend(s) and backend project separate, but seamlessly working together in the monorepo

https://www.tomray.dev/nestjs-nextjs-trpc

 

Ultimate Guide: NextJS, NestJS & TRPC Monorepo [Updated 2023]

Discover how to create a fully type-safe pnpm monorepo using NestJS, NextJS and tRPC. This comprehensive tutorial covers the integration of tRPC as the API layer, providing end-to-end type safety for your full-stack TypeScript application, as well as deplo

www.tomray.dev

해당 가이드를 참고하여 프로젝트 환경을 만들었다. 친절한 설명 최고😘 

tRPC(TypeScript Remote Procedure Call)

The tRPC project brings together strong typing with server-side JavaScript capabilities in a single client-server interaction protocol. 

  • It's fully end-to-end type safe

https://dlwocks31.me/blog/trpc/

 

tRPC로 타입 안전한 풀스택 타입스크립트 프로젝트 만들기

tRPC는 풀스택 타입스크립트 환경에서 타입 안전한 백엔드 API를 작성할 수 있도록 돕는 라이브러리입니다. tRPC를 사용하면 백엔드와 프론트엔드 간에 API 스키마를 공유하는 데 필요한 시간과 노

dlwocks31.me

 

사용이유 : tRPC allows you to easily build & consume fully typesafe APIs without schemas or code generation.✨

 

댓글