To install all packages that we use, run this command:
npm installTo run frontend locally, run this command:
npm run devAlso this project use some services:
- Firestore
- Firebase Storage
- Firebase Cloud Functions
- Stripe
And you may need run some of them locally
To run Firebase emulators (Firestore, Firebase Storage, Firebase Cloud Functions) locally, run this command:
npm run firebase:emulators:startTo run Stripe locally, run this command:
npm run stripe:listen:localOr if you want to run it locally in docker, run this command:
npm run stripe:listen:dockerYou can deploy each Firestore rules, Firebase Storage rules, Firebase Cloud Functions
To deploy to development project, run this command:
npm run firebase:firestore:rules:deploy:devTo deploy to production project, run this command:
npm run firebase:firestore:rules:deploy:prodTo deploy to development project, run this command:
npm run firebase:storage:rules:deploy:devTo deploy to production project, run this command:
npm run firebase:storage:rules:deploy:prodTo deploy to development project, run this command:
npm run firebase:functions:deploy:devTo deploy to production project, run this command:
npm run firebase:functions:deploy:prodPlease note that we use Github Actions, so if you make a pull request or commit in main, you don't need to run the deployment command every time