Follow these instructions to clone the repo from GitHub.
This project uses PNPM as its package manager. To install the project's dependencies, you should:
- Verify you have PNPM installed by running
pnpm -vin your terminal - If PNPM is not installed on your machine, install it
- Run
pnpm installin the root directory of your cloned project to install all dependencies
Now you need to connect the project to Supabase by following these steps:
- Inside the
web-appdirectory, make a copy of.env.exampleand rename it.env.local - Put the Supabase credentials given to you by your team lead in
.env.local
To test that everything is set up properly, cd into web-app and run pnpm run dev to start the development server.
Follow the pattern firstname/branch-name for your branches.
Use only lower case letters. Use hyphens instead of spaces (kebab-case).
You can use whatever version of your first name you like, as long as you're consistent.
Example: joey/new-feature
Use kebab-case (all lower case letters, hyphens instead of spaces) for file and folder names.
Because this is a TypeScript project, files with React components are TSX and should use the .tsx file extension.
Examples: icon-button.tsx, schools-form.tsx, page.tsx
Use PascalCase (capitalize each word, no spaces) for component names in your code. This is the React naming convention for components.
Examples: IconButton, SchoolsForm, Page
function IconButton() {
// function body
}
Note: The files where components are defined follow the file name conventions like other files.
Use camelCase (capitalize all words except the first, no spaces) for function names unless the function creates a React component.
Examples: handleSubmit(), getDate(), formatTitle()
Use PascalCase (capitalize each word, no spaces) for type and interface definitions.
Examples:
type Birthday = string | Date;
interface SeaOtter {
name: string;
birthday: Birthday;
favoriteFood: string;
friendCount: number;
}
This project uses KDNK forms, and open-source library designed to make it fast and easy to add high quality forms to Next.js projects.
The best place to start is with the KDNK built-in components.
Consult the KDNK Scrapbook to see demos of the components that are available.
Check out the Next.js docs for more information about using React with Next.js.
The Tailwind docs are easy to search, so start there if you have any styling issues.
Find answers to your questions about database and auth issues in the Supabase docs.