A React application for Brazilian Jiu-Jitsu study and training.
npm install
npm run dev- Node.js 20 or later
- npm
npm installnpm run devnpm run test # Run tests in watch mode
npm run test:run # Run tests oncenpm run lintThe database scripts require a Firebase service account file. Place service-account.json in the project root.
Export all user data to a JSON file:
npm run db:dump # Exports to db-dump.json
npm run db:dump <filename> # Exports to custom fileImport data from a JSON file:
npm run db:restore <filename>npm run db list-usersjust deployThis project includes a pre-commit hook that runs the same checks as CI:
- ESLint (
npm run lint) - TypeScript type checking (
npx tsc -b) - Tests (
npm run test:run)
To install the pre-commit hook, configure Git to use the .githooks directory:
git config core.hooksPath .githooksThis only needs to be done once per clone of the repository.
If you need to commit without running the checks (not recommended), you can use:
git commit --no-verify