Skip to content

thomas-min/ts-rest-next-nest-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ts-rest : Next + Nest Example

This is a example of how to use the @ts-rest library in a fullstack monorepo. @ts-rest/core is used to create @ts-rest-example/contract package. @ts-rest/react-query is used to consume the api on the client side. @ts-rest/nest is used to type the api implementation on the server side.

What's inside

This example repo uses Lerna for monorepo workflow.

Apps and Packages

Setup

Prerequisites

  • Install Yarn.
npm install -g yarn

Install Dependencies

  • Install dependencies.
npx lerna bootstrap

Migrate DB

  • Make sure MySQL server is running on your local machine.
npx lerna run migrate:local

Build

npx lerna run build

Develop

To develop all apps and packages, run the following command at the root of project:

npx lerna run dev

About

sample of ts-rest mono repo

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published