Web app for Disciplr: programmable time-locked capital vaults on Stellar.
- Home: Overview and quick links to create or view vaults.
- Vaults: List your productivity vaults (placeholder until backend is wired).
- Create Vault: Form to define amount (USDC), deadline, success/failure Stellar addresses (UI only; backend/contract integration pending).
- React 18 + TypeScript
- Vite for build and dev server
- React Router for routes
- CSS variables for theming (dark theme by default)
- Node.js 18+
- npm or yarn
# From repo root
cd disciplr-frontend
npm install
npm run devApp runs at http://localhost:5173. API requests to /api are proxied to http://localhost:3000 (configure in vite.config.ts).
| Command | Description |
|---|---|
npm run dev |
Start dev server |
npm run build |
TypeScript + Vite build |
npm run preview |
Preview production build |
npm run lint |
Run ESLint |
disciplr-frontend/
├── public/
├── src/
│ ├── components/ # Layout, shared UI
│ ├── pages/ # Home, Vaults, CreateVault
│ ├── App.tsx
│ ├── main.tsx
│ └── index.css
├── index.html
├── package.json
├── tsconfig.json
├── vite.config.ts
└── README.md
This directory is a separate git repo. To push to your own remote:
cd disciplr-frontend
git remote add origin <your-disciplr-frontend-repo-url>
git push -u origin mainReplace <your-disciplr-frontend-repo-url> with your actual repository URL.