All of this was developed inside of WSL 2 on Windows
- NVM
- PNPM
- You can use
npm
oryarn
if you want
- You can use
- Docker/Docker Compose
- For the database and cache
- If you host it elsewhere, you don't need this
docker-compose -f docker-compose.services.yaml up
If you want to totally remove all data stored in the backing services and restart them to get a clean, fresh state
docker-compose -f docker-compose.services.yaml down
docker-compose -f docker-compose.services.yaml up
This requires that you have started your docker instances
# Set up environment variables
# URL structure: postgres://<username for db>:<password for db>@<host for db>:<port for db>:<database name>
export POSTGRES_PRISMA_URL="postgres://username:password@0.0.0.0:9999/caveat_emptor"
npx prisma db push
You can use prisma studio
to manually create records
npx prisma studio
# remember, if you want you can use npm or yarn
# instead of pnpm
pnpm run dev