| id | quickstart |
|---|---|
| title | Quickstart |
| sidebar_label | 🚀 Quickstart |
Get the full Rayos stack running on your machine in under 10 minutes.
Before you start, make sure you have these installed:
| Tool | Version | Install |
|---|---|---|
| Node.js | v20+ | nodejs.org |
| pnpm | v9.x | npm install -g pnpm@9 |
| Rust | Latest stable | rustup.rs |
| Docker | Latest | docker.com |
| Git | Latest | git-scm.com |
mkdir rayos && cd rayos
git clone https://github.com/Rayos-Org/wallet-contracts.git
git clone https://github.com/Rayos-Org/wallet-sdk.git
git clone https://github.com/Rayos-Org/relay-backend.git
git clone https://github.com/Rayos-Org/web-dashboard.gitYou don't need all repos at once. If you're only contributing to one part, just clone that repo.
The relay backend is the first service to start — everything else depends on it.
cd relay-backend
pnpm install
cp .env.example .env
# Start PostgreSQL + Redis
docker-compose up -d
# Push database schema
pnpm db:push
# Start dev server
pnpm start:dev✅ Relay is running at http://localhost:3000
📖 Swagger API docs at http://localhost:3000/api/docs
cd web-dashboard
pnpm install
cp .env.local.example .env.localOpen .env.local and set:
NEXT_PUBLIC_RELAY_URL=http://localhost:3000
NEXT_PUBLIC_STELLAR_RPC_URL=https://soroban-testnet.stellar.org
JWT_SECRET=any-random-secret-for-local-devThen:
pnpm dev✅ Web dashboard is running at http://localhost:3001
- Open
http://localhost:3001in your browser - Click "Create Wallet"
- Follow the 3-step flow:
- Enter a display name
- Your browser will prompt you to create a passkey (Face ID / Touch ID / PIN)
- The wallet contract is deployed on Stellar Testnet
- You're in! You'll see your balance dashboard.
Note: On first run, your wallet will have 0 XLM. The relay backend uses Friendbot to fund testnet accounts. Look for the Friendbot button in the UI.
- From the dashboard, click "Send"
- Enter a recipient address (you can use any valid Stellar testnet address)
- Enter an amount in XLM
- Click "Send" — your device will prompt for biometric confirmation
- Watch the transaction appear in your activity feed!
Want to see the checkout demo?
cd demo-app
npm install
cp .env.example .env.local
npm run devOpen http://localhost:3002 and try buying something from the mock catalog.
Each repo has its own test commands:
# Web Dashboard
cd web-dashboard && pnpm test && pnpm e2e
# Relay Backend
cd relay-backend && pnpm run test:e2e
# Wallet SDK
cd wallet-sdk && pnpm test
# Wallet Contracts (Rust)
cd wallet-contracts && cargo testCannot connect to Redis — Make sure Docker is running: docker ps
Database connection refused — Check that the Postgres container is up: docker-compose ps
Passkey prompt doesn't appear — Your browser must support WebAuthn. Use Chrome, Edge, Firefox, or Safari (latest versions). Localhost is always allowed.
pnpm: command not found — Run npm install -g pnpm@9 first.
Wallet stuck at "deploying" — The Stellar testnet can be slow. Wait 10–15 seconds and refresh.
- Integrating the SDK — Add Rayos to your own app
- Recovery Flow — Set up and test guardian recovery
- Architecture Overview — Go deeper on how it all works