Private payroll system using ShadowWire for hidden payment amounts.
# 1. Install dependencies
npm install
# 2. Copy and configure environment
cp .env.example .env
# Edit .env with your values
# 3. Start services (PostgreSQL + Redis)
docker compose up -d
# 4. Run migrations
npm run migrate
# 5. Start server
npm run devDATABASE_URL=postgresql://user:pass@localhost:5432/payroll
REDIS_URL=redis://localhost:6379
SHADOW_WIRE_TOKEN=USDC
SHADOW_WIRE_WALLET_PRIVATE_KEY=<your_base58_private_key>| Endpoint | Method | Description |
|---|---|---|
/api/employees |
GET, POST | List/create employees |
/api/employees/:id |
GET, PUT, DELETE | Single employee |
/api/payrolls |
GET, POST | List/create payrolls |
/api/payrolls/:id |
GET | Payroll details |
/api/payrolls/:id/process |
POST | Send payments |
/api/payrolls/:id/reconcile |
POST | Retry failed |
/api/payrolls/wallet/balance |
GET | Wallet balance |
Before processing payments, you must:
- Generate a Solana keypair
- Deposit funds into ShadowWire from that wallet
- Set the private key in
SHADOW_WIRE_WALLET_PRIVATE_KEY