A modern web application for testing the BCDice API V2. Built with React, Vite, and designed with a premium light theme.
- Modern UI: Clean, light-themed interface using Inter font and glassmorphism effects.
- BCDice V2 API Integration: Fully compatible with BCDice API V2 endpoints.
- Smart Response:
- Success/Failure Coloring: Automatically highlights success (Green) and failure (Red) results.
- Secret Dice: Supports secret rolls (e.g.,
S2D6) with privacy indicators.
- System Help: Automatically fetches and displays the help message for the configured game system upon loading.
- Docker Ready: Includes multi-stage Dockerfile for easy containerization.
- Node.js (v18 or later recommended)
- npm or yarn
-
Clone the repository:
git clone https://github.com/neotaso/BCDice-Webtest.git cd BCDice-Webtest -
Install dependencies:
npm install
-
Run the development server:
npm run dev
Open
http://localhost:5174in your browser.
You can configure the target API and Game System in src/config.js:
export const API_BASE_URL = "https://bcdice.onlinesession.app"; // BCDice API Endpoint
export const SYSTEM_ID = "DiceBot"; // Default System ID (e.g. Cthulhu7th, SwordWorld2_5)This project includes a production-ready Dockerfile (Multi-stage: Node Build -> Nginx).
-
Build the image:
docker build -t bcdice-webtest . -
Run the container:
docker run -p 8080:80 bcdice-webtest
-
Access the application at
http://localhost:8080.
MIT