Based on TurboRepo Kitchen Sing Starter
api
: localhost:3000 - an NestJS serverapp
: localhost:3001 - a Next.js appui
: a Chakra-UI based design systemscripts
: Jest and eslint configurationstsconfig
: tsconfig.json;s used throughout the monorepo
Each package and app is 100% Typescript.
If you are running the postgres database using the docker-compose.yml
file, you will need to add to the API .env
file:
DATABASE_URL="postgresql://postgres:postgres@localhost:5432/boilerplate?schema=public"
yarn
- install dependenciesyarn build
- build the monorepoyarn test
- run testsyarn dev
- run projects
This turborepo has some additional tools already setup for you:
- Typescript for static type checking
- ESLint for code linting
- Jest test runner for all things JavaScript
- Prettier for code formatting
- yarn dev running NestJS 3000, NextJS 3001
- yarn test running tests in all projects correctly
- Generate API schema with PrismaJS
- Share Types between API and Front End