Skip to content

Repository files navigation

English | 简体中文

CAUTION: This program is related to VOCALOID CHINA, so the most of the documentations are written in Chinese. Sorry for inconvenience.

tdd-frontend

Frontend of TianDian Daily (https://tdd.bunnyxt.com) using Vue.js, Ant Design and G2. Feel free to contact us via QQ group: 537793686!

Introduction

TianDian Daily is a personal project of bunnyxt, which hopes to enhance Vocaloid China related data exchange, providing complete and easily accessible data and data visualization for everyone who interests in VC data.

The project is made up with three different part, connect with center database, which are:

  • frontend: data presentation and interaction
  • backend: data access api (tdd-backend)
  • spider: original data collection (tdd-spider)

See the structure below

TianDian Daily structure

Development and API configuration

Use Node 22 (nvm use) and npm ci. Copy .env.development.example to .env.development.local, set both VUE_APP_API_BASE_URL and VUE_APP_LEGACY_API_BASE_URL to your backend, then run NODE_OPTIONS=--openssl-legacy-provider npm run serve. Both variables are required for serving or building. They accept an HTTP(S) URL or a root-relative path and are embedded in the build; do not put secrets in them.

npm run build uses the explicit .env.production configuration. For a separate environment, set both variables in .env.<mode>.local and use NODE_ENV=production NODE_OPTIONS=--openssl-legacy-provider npm run build -- --mode <mode>. Other modes have no production API fallback.