Skip to content

Run

Updated: 8/23/26, 5:04:45 PM

This page is the single entry point for running DaxPay — helping you pick the right approach for your scenario, listing prerequisites, and showing how to verify a successful start.

Ways to Run

ApproachBest forNotes
Docker ComposeFastest tryout, local integrationOne command brings up PostgreSQL / Redis / Artemis / main app / channel sub-app. Recommended for first-time users.
Source BuildCustomization, tailored deploymentClone and compile with mvnd when you need to modify the source.
ConfigurationTuning Profile, ports, DB, secretsRequired reading for production deployment and credential injection.

Recommended path

New to DaxPay? Start with Docker Compose — the full stack is up and running in minutes.

Prerequisites

RequirementVersionNotes
JDK25+Java runtime (not needed for containerized deploy — bundled in image)
mvndLatestMaven Daemon, speeds up source compilation
Node.js^22.13.0 || ^24.0.0Frontend build
pnpm>=10.0.0Package manager (required; npm/yarn disabled)
PostgreSQL14+Primary database
Redis7+Distributed cache
Apache ArtemisLatestJMS broker for delayed payment notifications

Create the database in advance (UTF8, public schema) and import the seed SQL — see Build - Database Preparation (table.sql then data.sql, in order).

Quick Middleware Setup

Three docker commands bring up all middleware. Credentials match the defaults in application-dev.yml:

bash
# PostgreSQL (container name matches the dev config host `postgresql`)
docker run -d --name postgresql -p 5432:5432 \
  -e POSTGRES_DB=daxpay-dev -e POSTGRES_USER=bootx -e POSTGRES_PASSWORD=bootx123 \
  postgres:14

# Redis
docker run -d --name redis -p 6379:6379 redis:7 --requirepass bootx123

# Apache Artemis (required at dev startup; the app fails to start without a broker)
docker run -d --name mq -p 8161:8161 -p 61616:61616 \
  -e ARTEMIS_USER=admin -e ARTEMIS_PASSWORD=admin \
  apache/activemq-artemis:latest

If you already run these services, just edit the connection settings in application-dev.yml instead.

First-Start Note

The in-repo application-dev.yml connects via the hostnames postgresql / redis / mq (not localhost). Before the first start, either append 127.0.0.1 postgresql redis mq to your hosts file (C:\Windows\System32\drivers\etc\hosts on Windows, /etc/hosts elsewhere), or change the hostnames in the yml to 127.0.0.1 / localhost with your actual credentials.

App Ports

AppPortHealth check
Main app dax-pay-open9999http://127.0.0.1:9999/actuator/health
Channel sub-app dax-pay-channel-one20100http://127.0.0.1:20100/actuator/health
Channel sub-app dax-pay-channel-two20200http://127.0.0.1:20200/actuator/health
Channel sub-app dax-pay-channel-three20300http://127.0.0.1:20300/actuator/health
Admin Web (dev)6999
Merchant Web (dev)7999
H5 (dev)9500
Mini-App Admin (H5 dev)9000
Docs (dev)5173

Fastest Path: Docker Compose

Once your .env is ready (DB / Redis / Artemis / RSA / AES credentials — see Configuration):

bash
# Bring up all services
docker compose --env-file .env up -d

# Tail main app logs
docker compose logs -f daxpay-open

For the full docker-compose.yml template see Docker.

Verify

bash
# Main app health, expect {"status":"UP"}
curl http://localhost:9999/actuator/health

# Channel sub-app
curl http://localhost:20100/actuator/health

Once started, visit:

  • The main app console prints 应用 'dax-pay-open' 运行成功!
  • API docs (dev): http://127.0.0.1:9999/swagger-ui/index.html
  • Admin (dev): http://127.0.0.1:6999
  • Merchant (dev): http://127.0.0.1:7999
  • H5 (dev): http://127.0.0.1:9500

Default Login

After importing the seed SQL, a built-in super administrator account exists:

ItemValue
Accountbootx
Password121212
Works onAdmin Web only

Dev only

The super admin is controlled by daxpay.platform.starter.auth.enable-admin — on in dev, forcibly disabled in prod. Create your own admin account for production. See Configuration.

For callback debugging and testing the H5 on a phone, see Local Debugging.

Cross-Platform Apps

The admin, merchant, and cashier uni-app clients use pnpm and uni CLI. H5, mini-program, and App targets use different output directories and tools. See Cross-Platform Apps for the complete development and build workflow.

  • Build: source compilation and bare-metal startup details
  • Cross-Platform Apps: uni-app client development, builds, and publishing
  • Configuration: Profile switching, database, Redis, secrets, and production env vars
  • Docker: image building and the full docker-compose template

Official Website · Released under the GNU LGPL v3.0