mwickett / blitzer

Scorekeeping and performance viz / tracking application for Dutch Blitz 🎴
https://www.blitzer.fun
1 stars 0 forks source link

Blitz

This is a project to build a web app for scoring the card game Dutch Blitz. It's built using:

This is a Next.js project bootstrapped with create-next-app.

Background

This project is really about creating a wonderful personal data set of Dutch Blitz scores, so that you can see cool trends and just generally nerd out about it. It's not practically very useful at all, but it's an itch that myself, and some friends really wanted to scratch. And those kind of itches make for the best side projects, right?

Getting Started

Ask a team member for a copy of the .env file (still need to get envs sorted out in Vercel)

You'll also need access to Neon to get a DB branch setup for your local development.

Once you've cloned the repo, run npm install to install dependencies.

Then, run the development server:

npm run dev

Open http://localhost:3000 with your browser to see the result.

Test user

You can login to Clerk development by using the following credentials:

You can also create new users by signing up, but you'll need to be exposing a local API route to the internet so that Clerk's webhook can fire with the user update. Details on this are available here

Making schema changes / Using Prisma

If you make changes to the schema, you'll need to run npx prisma migrate dev to create and apply a migration to your local DB. You should ensure you commit those migration files so that they can be applied to production as well (this will happen automatically as part of the build).

You can also run npx prisma studio to spin up a nice little data viewer to inspect data in the DB.

Learn More

To learn more about Next.js, take a look at the following resources:

You can check out the Next.js GitHub repository - your feedback and contributions are welcome!

Deploy on Vercel

The easiest way to deploy your Next.js app is to use the Vercel Platform from the creators of Next.js.

Check out our Next.js deployment documentation for more details.