- Visit https://hockey-bracket-challenge.vercel.app/
- Click "Sign in" and sign in with your Discord account
- For each available series, select your prediction
Your "score" is based on how correct you were; maximum points are earned for guessing both the correct series winner and the correct series length in games.
The breakdown is as follows:
- Correct with bonus Both the series winner and series length is correct.
- Correct Only the series winner is correct.
- Incorrect The series winner is incorrect.
- This project is hosted on Vercel
- Any changes to the
master
branch automatically trigger a deployment from Vercel
- If cloning this as a fresh project, pull in the environment variables (requires Vercel link/authorization) to your local
.env
file
npm run env-pull
# Delete any VERCEL_* variables that get pulled in, they aren't needed and WILL break local dev
-
Install the PlanetScale CLI
-
Initialize the DB proxy to Prisma via PlanetScale
npm run db-proxy
- In a new terminal, seed the database
npm run db-seed
- Start the application
npm run dev
-
Go to the localhost link that was output to the console
-
(Optional) In a new terminal, view the database using Prisma studio
npm run db-studio
- Ensure the database proxy is running
npm run db-proxy
- Push local schema changes to the PlanetScale
dev
branch
npm run db-push
- Regenerate Prisma client types (must do after every schema change)
npm run db-generate
- Restart TypeScript server
- Use your IDE or language server commands to do this. In VS Code, open a TypeScript or TSX file, then:
CTRL+SHIFT+P > TypeScript: Restart TS Server
- Once confident, make a database deploy request using the command below, then merge
dev
into the PlanetScalemain
branch
npm run db-deploy-request