Thanks for your interest in contributing.
This guide explains how to set up the project and submit changes.
stellarlend/
├── api/ # backend (Node.js + TypeScript)
├── oracle/ # oracle service
├── landing/ # frontend (static)
├── stellar-lend/ # core protocol (Rust / Soroban)
├── docs/ # documentation
├── scripts/ # helper scripts
├── *.md # project notes and summaries
├── vercel.json # deployment config
└── ...
Make sure you have the following installed:
- Node.js (v18+)
- npm
- Rust (latest stable)
- Soroban CLI
- Git
curl https://sh.rustup.rs -sSf | shcargo install soroban-cligit clone https://github.com/Smartdevs17/stellarlend.git
cd stellarlendcd api
npm installCreate a .env file:
cp .env.example .env If not:
touch .envMinimum required variables:
CONTRACT_ID=dummy_contract_id
JWT_SECRET=dev_secret_key_min_32_chars_longStart the server:
npm run devcd oracle
npm install
npm run devcd stellar-lend
cargo buildUse clear and descriptive branch names:
fix/...feat/...docs/...
Example:
git checkout -b fix/issue-nameUse the format:
type(scope): short description
Examples:
fix(api): handle invalid inputdocs: update contributing guide
- Fork the repository
- Create a new branch
- Make your changes
- Ensure the project runs locally and tests pass
- Commit and push
- Open a Pull Request
- Link the issue:
Closes #123
- Keep changes small and focused
- Avoid unrelated changes
Run tests before submitting:
cd api
npm testcd oracle
npm testcd stellar-lend
cargo test- Do not commit
.envfiles - Do not expose secrets in logs or responses
- Keep code simple and readable
- Prefer small, focused changes
- Stellar Docs: https://developers.stellar.org/
- Soroban Docs: https://soroban.stellar.org/