This project has been initialized with npx create-next-app@latest
.
-
Install nvm if you don't have it.
-
Ensure you're using the node version used in production. From the root directory of the repo, execute the following command:
nvm use
-
The project is configured to run only with the package manager yarn.
-
Install dependencies:
yarn
-
This project uses Tailwind CSS in combination with some plugins ESLint and Prettier for formatting.
👋 VSCode/ESLint does not pick newly installed packages in the node_modules directory. After installing the packages for the first time, restart the VSCode workspace.
-
Run the development server:
yarn dev
- Open http://localhost:3000 with your browser to see the result.
- Commit rules:
• This repo uses Conventional Commits standard
• and commitlint executed in a husky hook to check them
# wrong example
git commit -m "add commitlint"
⏳ input: add commitlint
❌ subject may not be empty [subject-empty]
❌ type may not be empty [type-empty]
❌ found 2 problems, 0 warnings
ℹ️ Get help: https://github.com/conventional-changelog/commitlint/#what-is-commitlint
husky - commit-msg hook exited with code 1 (error)
# good example
git commit -m "ci: add commitlint"
Before running theses command, start by link your local client to the project.
yarn supabase login
yarn supabase link
Generate types for the project to produce the types/supabase.ts file.
yarn typegen