GithubHelp home page GithubHelp logo

nestjs-nextjs-trpc's Introduction

⚡️ Full-stack type-safe pnpm monorepo with NestJS, NextJS & tRPC

This an accompanying repo to this tutorial which covers how to build a full-stack, end to end type-safe pnpm monorepo with NestJS, NextJS 13 (using the new /app directory) & tRPC.

I have fallen in love with this tech stack as the developer experience is SO good! I'm pretty sure you will too 😉.

In particular, I love that:

  • It's fully end-to-end type safe
  • The tRPC server is fully integrated into NestJS, so you have access to all of NestJS's wonderful functionality like dependency injection
  • Fits really well with the NextJS 13 transition to server side rendering
  • It keeps the frontend(s) and backend project seperate, but seamlessly working together in the monorepo

I also wrote this tutorial as many people in the NestJS community are curious on how to use tRPC with NestJS!

The only pre-requisites for this tutorial is that you'll need pnpm and the NestJS CLI installed on your machine.

Give it a spin:

pnpm install
pnpm dev       # starts local server for both frontend (NextJS) and backend (NestJS)

nestjs-nextjs-trpc's People

Contributors

tomwray13 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.