This is a Next.js project bootstrapped with create-next-app.
First, create a .env.local file with GH_TOKEN=XXX token. You can get the token at https://github.com/settings/tokens/new.
Run the development server:
npm run dev
# or
yarn dev
# or
pnpm devTo edit the dev database, run npm run prisma:studio-dev or equivalent.
Due to constrains from Prisma, in case of changes to the DB schema, the changes need to be currently made in two places (./prisma/schema.prisma and ./prisma/schema.dev.prisma) for them to be valid.
However, since the access to production DB is limited, apply changes on the schema.dev.prisma file only, and the reviewer will take care of necessary migrations if needed.
The production website is using a kv store to cache the results from GH for 24 hours. This is disabled in the development version completely, and all results are pulled from GH directly (may seem slow to load).
To learn more about Next.js, take a look at the following resources:
- Next.js Documentation - learn about Next.js features and API.
- Learn Next.js - an interactive Next.js tutorial.
You can check out the Next.js GitHub repository - your feedback and contributions are welcome!