Skip to content
This repository has been archived by the owner on Mar 23, 2022. It is now read-only.

The renewed backend of Dragalia Lost info website by OM.

Notifications You must be signed in to change notification settings

RaenonX-DL/dragalia-site-back-2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

8a2f364 · Jan 25, 2022
Jan 6, 2022
Jul 23, 2021
Jan 24, 2022
Jan 18, 2022
Feb 10, 2021
Feb 10, 2021
Jan 6, 2022
Aug 5, 2021
May 26, 2021
Jan 18, 2022
Jan 6, 2022
Aug 5, 2021
Jan 14, 2022
Jan 18, 2022
Jan 23, 2022
Jan 23, 2022
Jan 16, 2022
Jan 16, 2022

Repository files navigation

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

About

The renewed backend of Dragalia Lost info website by OM.

Resources

Stars

Watchers

Forks

Languages