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

Getting Started

First, run the development server:

npm run dev
# or
yarn dev
# or
pnpm dev

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

You can start editing the page by modifying app/page.tsx. The page auto-updates as you edit the file.

This project uses next/font to automatically optimize and load Inter, a custom Google Font.

Update Prisma Schema on Mongo Database

Safe Way

Here are the steps you would typically follow:

Define the new field in your Prisma schema file Run the "npx prisma migrate dev" command to generate a migration file that represents the changes you've made to the schema Review the generated migration file to make sure it looks correct Run "npx prisma migrate deploy" to apply the migration to your database Run "npx prisma db push" to update the Prisma client with the latest schema changes

Quick Way

Update schema and run "npx prisma db push" to apply the schema changes to the database.

Typescript

Sometimes the typescript server will break. When you notice any odd typescript problems, try and restart the server on VSCode. To do this, open the Command Palette (Ctrl+Shift+P on Windows, or ⌘ on a Mac) and type TypeScript: Restart TS Server

Environments

Production has a separate set of env variables for Google OAuth and Github OAuth.

Storybook

This app uses Storybook to test it's React components.