Bangumi List
February 22, 2024 · View on GitHub
data sources:
frameworks:
required:
- nodejs v18+
Configuration
config.ts:
themes(optional): daisyui themes for ColorScheme, default is['fantasy', 'light', 'cupcake', 'dark', 'dracula', 'sunset', 'dim'].
nuxt.config.ts:
appTitle(optional): App title, default isBangumiport(optional): devServer port, default is3000
i18n
Support ['zh-ch', 'en'], defaults to 'zh-ch'. Check out @nuxtjs/i18n for more details.
Setup
Make sure to install the dependencies:
# bun
bun install
Development Server
Start the development server on http://localhost:3000:
# bun
bun run dev
Production
Build the application for production:
# bun
bun run build
Locally preview production build:
# bun
bun run preview
Deployment
Check out the deployment documentation for more information.
Use bgm.tv app Authorization
- Set
BGMTV_AUTHORIZEto'true'in.envfile, default is false. - Create an app on bgm.tv.
- Copy
App ID,APP Secret,回调地址from your newly created application,回调地址should behttps://${your app baseURL}/auth/callback - Set copied
APP IDtoBGMTV_APP_IDin.envfile. - Set copied
APP SecrettoBGMTV_APP_SECRETin.envfile. - Set copied
回调地址toBGMTV_REDIRECT_URIin.envfile. - Set
BGMTV_USERAGENTin.envfile, more details here. - Set a 32-bit
NUXT_SESSION_SECRETfor session secret in.envfile.
checkout the documentation for more information.