Skip to content

Seb-L/saas-starter

Repository files navigation

saas-starter

Table of Contents

Apps and packages

  • apps
    • api: NestJS + graphql + graphql-query + vitest + Neon Postgres DB
    • docs: NextJs + Nextra
    • web: NextJs + ReactQuery + vitest
  • packages:
    • ui: TailwindCss + DaisyCss

Install

pnpm i

This is a TurboRepo repository, to target an app or package script command you must use

pnpm --filter=my-package-name my-command

API

Useful documentations:

Commands

Commands prefix: pnpm --filter=api

Command Description
start:dev Run in dev mode
start:repl REPL
build Build for production
start:prod Run in production mode
test Run unit tests
test:cov Run unit tests with coverage
test:watch Run unit tests in watch mode
test:e2e Run e2e tests
gen:types Generate TS types for graphql-request used in web

Development

Starting the server

pnpm --filter=api start:dev

Seeding the Database

pnpm --filter=api start:repl

then in the terminal get(SeedService).seed()

The seed service is located in apps/api/src/db/seed.service.ts

About

Next.js + NestJS

Resources

Stars

Watchers

Forks

Releases

No releases published