This is the Formula 1 betting site. The application is developed using
- Angular
- Angular Material
- tailwindcss
Use environment to decide which firestore database to populate.
If you need to populate the firebase emulator use export FIRESTORE_EMULATOR_HOST="localhost:8080". Remember to start the emulator before executing the builder.
npx nx serve builder --environment=dev
- Firebase
- Firestore
- Functions
- Cloud Messaging
The project is supported by the Nx mono repo.
To populate Firestore use the npx nx serve builder app.
To run UI run npx nx serve ui
Start by adding a .runtimeconfig.json to the apps/cloud folder
You can create it using firebase functions:config:get > .runtimeconfig.json
- Start by running
npx nx run firebase:watch - Run emulators
use
firebase emulators:start --only=functions,firestore,auth,pubsub --config=firebase.json --export-on-exit=./saved-data --import=./saved-data --inspect-functions --project f1-playground-e1f23Deleteexport,importand/or--inspect-functionsif not wanted - If ports are already taken, run
npm run kill-ports
Under credentials, Web client, add any new URL that you wish to use for authentication and serving