Giter Site home page Giter Site logo

f2020's Introduction

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 Delete export, import and/or --inspect-functions if not wanted
  3. If ports are already taken, run npm run kill-ports

f2020's People

Contributors

bregnvig avatar mbart71 avatar

Watchers

James Cloos avatar

f2020's Issues

Bid rules

Dokument placering

season/{seasonId}/races/{raceId}/bids/{uid}

Skrivning

Det skal være muligt at skrive et bud hvis race state er open og bid dokumentet enten ikke eksisterer eller bid state er draft. .Bid state ska også være draft ved oprettelse. Penge er ikke vigtige på det her tidspunkt

På den måde kan vi gemme halve bud og brugeren kan vende tilbage senere.

Roller: player

Læsning

Det skal være muligt at læse et bud hvis race state ikke er open eller hvis spilleren har et bid dokument med state confirmed.På den måde burde man kunne se folk lave deres bud real time. Så længe man selv har budt.

Google functions er det eneste der kan sætte bid state i completed

Roller: player

Add timestamp to bid

There is currently no timestamp in the submitted bid.

Add timestamp and show the timestamp at the bid list

Submit result

  1. Download result from ergast
  2. Display result
  3. Upload the result

1 Download the result

Use ergast to download the result for a given race.

Display result

Display the result. Verify that all information is available. The submit button needs to verify the downloaded result is valid

Upload the result

Upload the result to a function.

admin is required for submitting results.

Updated the bids with the values of the bids

Ændre transactions

Da logical OR understøttes via arrays har vi brug for at en transaction ændres til at indeholde en involved property

{
"amount": 20,
"date": "August 19, 2014 at 12:52:13 PM UTC+2",
"from": "laier",
"message": "Deltagelse Spa-Francorchamps",
"to": "CIQTphNeEfMXGUftQfoKvQt3lp73"
}

Til

{
"amount": 20,
"date": "August 19, 2014 at 12:52:13 PM UTC+2",
"from": "laier",
"message": "Deltagelse Spa-Francorchamps",
"to": "CIQTphNeEfMXGUftQfoKvQt3lp73",
"involved": ["CIQTphNeEfMXGUftQfoKvQt3lp73", "laier"]
}

Skiv bud

Skrivning af bud skal foregår som en operation i forbindelser med ændringer i bud formen.

Buddet skal skrives med indhold af formen, plus den state buddet er i. Enten draft eller completed

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.