Just a log
-
Install dependencies:
npm install
-
Create
.env.localfrom.env.exampleand fill in the Firebase web app values:NEXT_PUBLIC_FIREBASE_API_KEY= NEXT_PUBLIC_FIREBASE_AUTH_DOMAIN= NEXT_PUBLIC_FIREBASE_PROJECT_ID= NEXT_PUBLIC_FIREBASE_STORAGE_BUCKET= NEXT_PUBLIC_FIREBASE_MESSAGING_SENDER_ID= NEXT_PUBLIC_FIREBASE_APP_ID= -
In Firebase Console, enable Email/Password Authentication and Cloud Firestore.
-
Deploy Firestore rules:
firebase deploy --only firestore -
Run the app:
npm run dev
The owner email is hamdanshaikh11133@gmail.com. That account is the only account that can edit calendar statuses. Other signed-in users can view the calendar only.
Run local TypeScript and component/unit checks:
npm run typecheck
npm run test -- --run tests/component tests/unitRun Playwright checks with the app and Firebase test accounts configured:
npm run test:e2eRun Firestore rules tests with Java installed and on PATH:
firebase emulators:exec --only firestore "npm.cmd run test -- --run firebase/tests/firestore.rules.test.ts"