This repo currently has 3 parts:
client
- Frontend React App bootstrapped with Vite.backend
- Backend logic: Database stuff and tRPC router creation goes here.- Database: This project's database currently lives in Neon DB.
- Or locally, it can also be hosted in Docker.
- Node v16
- PNPM v7
- Docker
- Netlify CLI
- Copy an
backend/.env
file out frombackend/.env.sample
.
- After creating a Neon Account, create a new project in the Neon console.
- Copy the connection string. This will be the
DATABASE_URL
in the.env
file. - Create a second DB in the same project. The new connection string will be the
SHADOW_DATABASE_URL
.
DATABASE_URL
ispostgress://example:example@localhost:5432/quiz-db?pgbouncer=true
.SHADOW_DATABASE_URL
is blank.
pnpm install
pnpm run init:client
docker compose up -d db
pnpm run dev