Module: APP

APP module
Source:

Classes

SpotifyToken
TwitchToken

Members

(inner, constant) app

Source:

(inner, constant) areasFunctions

Source:

(inner, constant) bodyParser

Source:

(inner, constant) CALLBACK_URL

Source:

(inner, constant) client

Source:

(inner, constant) ClientAndToken

Source:

(inner, constant) config

Source:

(inner, constant) configStrava

Constant which store the default redirect_uri and scope for strava
Source:

(inner, constant) cors

Source:

(inner, constant) express

Source:

(inner, constant) firebase_admin

Source:

(inner, constant) firebaseConfig

Source:

(inner, constant) firebaseFunctions

Source:

(inner, constant) fs

Source:

(inner, constant) googleService

Source:

(inner, constant) ISSStationService

Source:

(inner, constant) nodeCron

Source:

(inner, constant) openMeteoService

Source:

(inner, constant) passport

Source:

(inner, constant) port

Source:

(inner, constant) serviceAccount

Source:

(inner, constant) session

Source:

(inner, constant) session

Source:

(inner, constant) SESSION_SECRET

Source:

(inner, constant) spotifyServices

Source:

(inner) SpotifyTokens

Source:

(inner, constant) stravaApi

Source:

(inner, constant) stravaClient

Source:

(inner, constant) stravaToken

Source:

(inner) twhtokens

Source:

(inner, constant) TWITCH_CLIENT_ID

Source:

(inner, constant) TWITCH_SECRET

Source:

(inner, constant) twitchConfig

Source:

(inner, constant) TwitchService

Source:

(inner, constant) twitterService

Source:

Methods

(inner) '/about.json' Server about page(req, res)

Parameters:
Name Type Description
req Object Express request object
res Object Express response object
Source:

(inner) '/auth/twitch/callback'' Server twitch callback page()

Get the callback from twitch API and redirect to /twitch/auth/
Source:

(inner) '/getAreas/:uid' Server getAreas page(req, res)

Send areas for 1 uid to the front.
Parameters:
Name Type Description
req Object Express request object
res Object Express response object
Source:

(inner) '/getPosition/:uid' Server getPosition page(req, res)

Send position for 1 uid to the front.
Parameters:
Name Type Description
req Object Express request object
res Object Express response object
Source:

(inner) '/login' Server login page(req, res)

Parameters:
Name Type Description
req Object Express request object
res Object Express response object
Source:

(inner) '/register' Server register page(req, res)

Parameters:
Name Type Description
req Object Express request object
res Object Express response object
Source:

(inner) '/register/areas' Server register areas page(req, res)

register areas page use areaRegister
Parameters:
Name Type Description
req Object Express request object
res Object Express response object
Source:

(inner) '/register/areas' Server remove areas page(req, res)

remove areas page use removeDataFromFireBase
Parameters:
Name Type Description
req Object Express request object
res Object Express response object
Source:

(inner) '/register/google' Server register google page(req, res)

call the RegistedRequiredGoogle to register google data for the user.
Parameters:
Name Type Description
req Object Express request object
res Object Express response object
Source:

(inner) '/register/position' Server register position page(req, res)

call the RegistedRequiredOpenMeteo & RegistedRequiredIss to register OpenMétéo & Iss data for the user.
Parameters:
Name Type Description
req Object Express request object
res Object Express response object
Source:

(inner) '/resetPassword' Server reset password page(req, res)

Parameters:
Name Type Description
req Object Express request object
res Object Express response object
Source:

(inner) '/spotify' Server spotify page(req, res)

Login Page
Parameters:
Name Type Description
req Object Express request object
res Object Express response object
Source:

(inner) '/spotify/callback' Server spotify callback page(req, res)

Spotify callback page use callBack function.
Parameters:
Name Type Description
req Object Express request object
res Object Express response object
Source:

(inner) '/strava' Server strava page(req, res)

Strava page use strava
Parameters:
Name Type Description
req Object Express request object
res Object Express response object
Source:

(inner) '/strava/auth/:uid' Server strava page(req, res)

Send url for strava authentification
Parameters:
Name Type Description
req Object Express request object
res Object Express response object
Source:

(inner) '/strava/callback' Server strava authentification callback page(req, res)

Strava callback route for strava authentification
Parameters:
Name Type Description
req Object Express request object
res Object Express response object
Source:

(inner) '/testConnexion' Server HomePage(req, res)

Parameters:
Name Type Description
req Object Express request object
res Object Express response object
Source:

(inner) '/twitch/auth/' Server twitch authentification page(req, res)

Set twitch user data to passport and setUserData to DB.
Parameters:
Name Type Description
req Object Express request object
res Object Express response object
Source:

(inner) '/twitch/get' Server twitch get page(req, res)

return twitch information to the front.
Parameters:
Name Type Description
req Object Express request object
res Object Express response object
Source:

(inner) '/twitch/post/' Server Spotify post page(req, res)

Get the user id and set in the class SpotifyTokens.
Parameters:
Name Type Description
req Object Express request object
res Object Express response object
Source:

(inner) '/twitch/post/' Server twitch post page(req, res)

Get the user id and set in the class twhtokens.
Parameters:
Name Type Description
req Object Express request object
res Object Express response object
Source:

(inner) '/twitter/get' Server twitter get page(req, res)

return twitter information to the front.
Parameters:
Name Type Description
req Object Express request object
res Object Express response object
Source:

(inner) '/twitter/login' Server twitter login page(req, res)

Twitter login page use loginTwitter
Parameters:
Name Type Description
req Object Express request object
res Object Express response object
Source:

(inner) '/twitter/sign' Server twitter sign page(req, res)

Twitter sign page use signTwitter
Parameters:
Name Type Description
req Object Express request object
res Object Express response object
Source:

(inner) listen()

listening on port
Source: