Descipline is a decentralized platform that turns self-discipline into real rewards. >> More Info
- anchor-cli 0.30.1
- solana-cli 2.2.17
- rustc 1.87.0
- Node.js 18+
- npm (or yarn/pnpm)
- Expo CLI
For smart contract development, install Anchor, Solana CLI, and Rust as above.
yarn installnpx expo start- Open in Expo Go (scan QR code)
- Or use Android emulator / iOS simulator / Web browser
app/— Main app source (file-based routing)components/— Reusable UI componentsconstants/— App-wide constants (colors, tokens, etc.)hooks/— Custom React hooksutils/— Utility functions and Solana helpersassets/— Images, icons, fontsandroid/— Native Android project (auto-generated)docs/— Additional documentation
npm run start— Start Expo dev servernpm run android— Run on Android device/emulatornpm run ios— Run on iOS simulatornpm run web— Run in web browsernpm run lint— Lint codenpm run fmt— Format codenpm run reset-project— Reset to a blank starter app
- Built-in support for Solana wallets via
@solana/web3.jsand@solana-mobile/mobile-wallet-adapter-protocol - SPL token support via
@solana/spl-token - Crypto icons: see
CRYPTO_ICONS_SETUP.md
- App icon:
assets/images/logo-desktop.png - Splash:
assets/images/splash-icon.png - For icon/splash troubleshooting, see
ICON_SETUP_GUIDE.md
- Smart contracts live in
../descipline-smart-contracts/ - See that folder's README for contract build/deploy/test
- Update program IDs in frontend if you deploy your own
- This project is based on the official Solana
web3js-expo-papertemplate. - Uses React Native Paper for UI, Expo Router for navigation, and TanStack Query for data fetching.