This is the Bootcamp's Project Monorepo.
server: an express server appclient: a react vite ts app@repo/eslint-config: sharedeslintconfigurations@repo/typescript-config:tsconfig.jsons used throughout the monorepo
- Install Docker Desktop and pull PostgreSQL Image.
- Install Volta and enable PNPM support.
In the root directory open a terminal and install Node.js and PNPM using volta:
volta install node
volta install pnpm
Install the project dependencies:
pnpm install
This monorepo is configured with Turborepo. You will find the available tasks in turbo.json file. You can run a task like the following. Note that all commands are used with pnpm exec, the purpose is to use the local project's Turborepo dependency and not a global one.
pnpm exec turbo <task-name>
# Examples
pnpm exec turbo dev
pnpm exec turbo build
pnpm exec turbo start
pnpm exec turbo test
# Examples db
pnpm exec turbo db:start
pnpm exec turbo db:stop
pnpm exec turbo db:generate
pnpm exec turbo db:migrate
pnpm exec turbo db:seed
pnpm exec turbo run build
pnpm exec turbo --filter @repo/db build
pnpm exec turbo --filter @repo/db tsc
pnpm exec turbo --filter @repo/db tsc-alias
pnpm exec turbo prune --force
pnpm exec turbo run dev --force
pnpm exec turbo run clean
pnpm db:cleanup
pnpm install
pnpm exec turbo prune --force
pnpm exec turbo run build --force
# Volta
volta pin node@18.20.4 # change node version to use
volta install node@18.20.4 # to install node version
volta --help # to see all commands
volta list node # node version current
# Testing
pnpm exec turbo testPlease refer to the official Turborepo documentation to learn more on running tasks.
docker-compose up -d docker-compose downCreate a new folder called database inside packages with a package.json inside:
{
"name": "@repo/db",
"version": "0.0.0",
"dependencies": {
"@prisma/client": "latest" // Replace with latest version
},
"devDependencies": {
"prisma": "latest" // Replace with latest version
}
}the latest version of Prisma you can check right here:
https://www.npmjs.com/package/@prisma/client?activeTab=versionsthen:
pnpm exec prisma init