- Install
pnpm
- Install deps with
pnpm i
You can copy /demo/.env-example
to /demo/.env
:
DATABASE_URL=postgresql://postgres:prisma@localhost:5432/stl_demo
NEXTAUTH_JWT_SECRET=(random string)
NEXTAUTH_SECRET=(random string)
In /demo
:
docker compose up -d
brew services start postgresql@14 # run the initdb manually if needed
brew services info postgresql@14 # expect loading to be true
in /demo/.env
, set it like so:
DATABASE_URL=postgresql://$USER:prisma@localhost:5432/stl_demo
such that this works:
psql -U $USER -d postgres
In /demo
:
pnpm prisma migrate dev
(In monorepo root directory)
pnpm watch
TypeScript won't be able to resolve packages' references to each other before their
build output is in packages/*/dist
. The build:watch
command runs tsc -b --watch
on the packages, so that changes in one are quickly available in another.
In /demo
:
pnpm dev
(In monorepo root directory)
pnpm test