Skip to content

bregnvig/F2020

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1,166 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

F2020

This is the Formula 1 betting site. The application is developed using

Frontend

  • Angular
  • Angular Material
  • tailwindcss

Builder

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

Backend

  • Firebase
  • Firestore
  • Functions
  • Cloud Messaging

The project is supported by the Nx mono repo.

Up and running

To populate Firestore use the npx nx serve builder app. To run UI run npx nx serve ui

Project Firebase

Use v20 for both running and exporting data


Seems like this is not needed any more

Start by adding a .runtimeconfig.json to the apps/cloud folder

You can create it using firebase functions:config:get > .runtimeconfig.json


  1. Start by running npx nx run firebase:watch
  2. 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-e1f23 Delete export, import and/or --inspect-functions if not wanted
  3. If ports are already taken, run npm run kill-ports

Google Cloud Console

API & Services

Under credentials, Web client, add any new URL that you wish to use for authentication and serving

About

Firebase & Angular betting

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages