Skip to content

CodingAngel1/Stellar-GreenPay

Β 
Β 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

247 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

🌱 Stellar GreenPay

Donate directly to verified climate projects using XLM β€” every transaction tracked on-chain.

License: MIT PRs Welcome Stellar Soroban

Stellar GreenPay is an open-source climate donation platform where donors give XLM directly to verified environmental projects. Every donation is recorded on the Stellar blockchain via Soroban smart contracts β€” providing radical transparency and zero platform fees.


✨ Features (v1)

  • πŸ”— Wallet Connect β€” Freighter browser wallet integration
  • 🌍 Browse Projects β€” Verified climate projects with impact metrics
  • πŸ’š Donate XLM β€” Direct on-chain donations to project wallets
  • πŸ“Š Impact Tracking β€” Soroban contract tracks every donation and COβ‚‚ offset
  • πŸ† Leaderboard β€” Top donors ranked by total XLM given
  • πŸ’¬ Project Updates β€” Organisations post progress updates to donors

πŸ—‚ Project Structure

stellar-greenpay/
β”œβ”€β”€ frontend/          # Next.js + React + Tailwind CSS
β”œβ”€β”€ backend/           # Node.js + Express API
β”œβ”€β”€ contracts/         # Stellar Soroban smart contracts (Rust)
β”œβ”€β”€ docs/              # Architecture & API documentation
β”œβ”€β”€ scripts/           # Deployment & utility scripts
β”œβ”€β”€ .github/           # CI/CD workflows & issue templates
β”œβ”€β”€ CONTRIBUTING.md
β”œβ”€β”€ ROADMAP.md
└── LICENSE

πŸš€ Quick Start

Prerequisites

Tool Version
Node.js β‰₯ 18.x
npm Latest
Rust + Cargo β‰₯ 1.74 (for contracts)
Freighter Wallet Browser extension

1. Clone & Setup

git clone https://github.com/your-org/stellar-greenpay.git
cd stellar-greenpay
chmod +x scripts/setup-dev.sh
./scripts/setup-dev.sh

2. Start Frontend

cd frontend && npm run dev
# β†’ http://localhost:3000

3. Start Backend

cd backend && npm run dev
# β†’ http://localhost:4000

Docker Hot-Reload Development

Use the development override when you want frontend and backend source edits to refresh inside Docker without rebuilding:

docker compose -f docker-compose.yml -f docker-compose.dev.yml up --build

The override mounts backend/src directly into the API container and runs Nodemon in legacy watch mode for Docker Desktop file-event reliability. It mounts the frontend workspace into the Next.js container, keeps container-owned node_modules/.next directories, and enables polling for Next/Webpack watchers.


πŸ”‘ Environment Variables

Frontend (frontend/.env.local)

NEXT_PUBLIC_STELLAR_NETWORK=testnet
NEXT_PUBLIC_HORIZON_URL=https://horizon-testnet.stellar.org
NEXT_PUBLIC_API_URL=http://localhost:4000
NEXT_PUBLIC_CONTRACT_ID=

Backend (backend/.env)

PORT=4000
STELLAR_NETWORK=testnet
HORIZON_URL=https://horizon-testnet.stellar.org
CONTRACT_ID=
ALLOWED_ORIGINS=http://localhost:3000

πŸ§ͺ Get Testnet XLM

  1. Install Freighter Wallet and switch to Testnet
  2. Visit Stellar Friendbot with your public key
  3. Receive 10,000 test XLM instantly

🀝 Contributing

See CONTRIBUTING.md. All skill levels welcome!

Please note that this project is governed by a Code of Conduct. By participating, you agree to uphold its terms.

Secret Scanning

Every push and every pull request to main runs Gitleaks with the repo-local .gitleaks.toml config. Any detected secret fails CI, so keep real credentials out of source control; use .env files locally and GitHub encrypted secrets for CI/deployment values. The allowlist only covers generated archives, env templates, and deterministic test fixtures.

πŸ—Ί Roadmap

See ROADMAP.md for planned features.

πŸ“„ License

MIT β€” see LICENSE fixed

About

Resources

License

Code of conduct

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • TypeScript 65.9%
  • JavaScript 23.4%
  • Rust 6.8%
  • CSS 2.0%
  • Shell 1.2%
  • HTML 0.6%
  • Dockerfile 0.1%