Skip to content

myclubapp/backend

Repository files navigation

Build + Deploy

Backend für myclub-app

used for the following apps:

  • volleyballclub.app
  • unihockeyclub.app
  • handballclub.app
  • turnverein.app
  • basketballclub.app
  • fussballclub.app

JOBS

Update Club Data

Runs every monday 08:00 for:

  • SwissUnihockey
  • Swissvolley
  • Swisshandball
  • Swiss Turnverband

Update Team Data

Runs every monday 08:10 for active clubs:

  • SwissUnihockey
  • Swissvolley (not in use)
  • Swisshandball
  • Swiss Turnverband (not provided)

Update Game Data

Runs every Morning at 06:00 am for active clubs:

  • Swissunihockey

GraphQL API for Sports Data

Available APIs are:

Swiss unihockey API

based on this documentation

available here

Verfügbare Dienste:

  • Clubs
  • Teams
  • Meisterschaft
  • Ranglisten
  • Statistiken

Swiss Volleyball API

based on this documentation

available here

Supported organizations:

  • National
  • RVNO
  • GSGL
  • RVI
  • RVZ
  • RVA
  • SVRW
  • SVRF
  • SVRBE

Verfügbare Dienste:

  • Clubs
  • Teams
  • Meisterschaft
  • Ranglisten

Swiss Handball

based on this documentation & VAT DataService available here:

Verfügbare Dienste:

  • Vereine
  • Teams
  • Meisterschaft
  • Ranglisten

STV Schweizer Turnverband

available here:

Verfügbare Dienste:

  • Vereine
  • Angebote

Nicht verfügbar:

  • News
  • Ranglisten
  • Wettkämpfe

Swiss Basketball (Not supported yet)

available under: n/a

Swiss Football (Not supported yet)

available under: n/a

Installed packages

  • express
  • expres-graphql
  • graphql
  • graphql-tools
  • html-to-text (needed to convert neews feed)
  • node-fetch (needed to fetch data from apis)
  • soap (needed to fetch data from apis)

Tutorials and help:

helpful articles

Firebase related tutorials

https://medium.com/mehak-vohra/using-graphql-to-query-your-firebase-realtime-database-a6e6cbd6aa3a

Resolver Documentation

https://www.apollographql.com/docs/apollo-server/data/resolvers/

Typescript

https://medium.com/free-code-camp/build-an-apollo-graphql-server-with-typescript-and-webpack-hot-module-replacement-hmr-3c339d05184f

Open Issues

Feel free to contribute by providing a PR.

Husky

Other issues

  • tbd