/dragalia-site-back-2

The renewed backend of Dragalia Lost info website by OM.

Primary LanguageTypeScript

dragalia-site-back-2

back-time-badge

CI

Main Dev
back-ci-main back-ci-dev

CD

back-cd

Site Status

back-site-status back-site-response

back-site-day back-site-week back-site-month

These refresh every 5 minutes.

Code Quality

back-lgtm-alert-badge back-lgtm-quality-badge back-lgtm-loc-badge

Main Dev
back-grade-badge-main back-grade-badge-dev
back-coverage-badge-main back-coverage-badge-dev

The renewed backend of Dragalia Lost info website by OM.

This one is using fastify (was express.js) while the previous one is using Flask.

Environment Variables

Name Required/Optional Description
CORS_ALLOWED_ORIGINS Required Allowed origins separated by comma (,). For example: https://dl.raenonx.cc,http://localhost:3000. This is allow to be empty if CI is true.
MONGO_URL Required Connection string of MongoDB database.
GA_CREDENTIAL_BASE64 Required Google Analytics Data API OAuth client JSON credential in base64 string.
GA_DEV Optional Setting this to any truthy value will make any related queries return mock Google Analytics data instead of actually sending the request, reducing the API usage.
MAIL_SENDER Required Email address for logging into a SMTP server for email service.
MAIL_PASSWORD Required Password for logging into a SMTP server for email service.
MAIL_LINK_ROOT Required Link root to use in between email links. This should NOT end with a slash (/).
NEW_RELIC_LICENSE_KEY Optional New Relic license key for measuring the app performance.
NEXT_PUBLIC_RESOURCE_ROOT Required Root URL of the exported resources. This should not end with a slash (/).
NEXT_PUBLIC_DEPOT_ROOT Required Root URL of the data depot. This should not end with a slash (/).
NEXT_PUBLIC_AUDIO_ROOT Required Root URL of the audio depot. This should not end with a slash (/).
CI Optional Set this to true for CI-specific behavior.
PORT Optional Port to run the app. Defaults to 8787.

Deployments

To make the application works properly, the MongoDB instance MUST be deployed in the following configuration:

  • Storage Engine: WiredTiger
  • Cluster: Replica Set