A decentralized marketplace revolutionizing local food commerce through blockchain-based farm shares, NFT-driven access control, and automated regulatory compliance.
- π Solana Smart Contracts - Rust-based programs for farm share and compliance management
- π« Dynamic NFTs - Metaplex-powered role and attribute management
- ποΈ NFT.storage - Decentralized content storage with IPFS
- π Yew Framework - Rust-based WebAssembly frontend
- β‘ Serverless Rust - AWS Lambda functions with custom runtime
- Decentralized Storage - IPFS-based permanent data availability
- Farm Share Framework - Legal structure enabling interstate commerce
- Compliance Automation - Real-time verification with NFT attributes
- Zero-Trust Security - Blockchain-verified access control
# Required versions
rustc 1.75.0 or higher
cargo 1.75.0 or higher
solana-cli 2.0.16# Install Rust
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
# Install Solana CLI
sh -c "$(curl -sSfL https://release.solana.com/v2.0.16/install)"
# Install WebAssembly tools
cargo install wasm-pack
cargo install trunk
rustup target add wasm32-unknown-unknown# Clone repository
git clone --recurse-submodules https://github.com/yourusername/f2t.git
cd f2t
# Install workspace dependencies
cargo build
# Configure environment
cp .env.example .env
# Edit .env with your configurations
# Start development server
trunk serveFlexnetGX/
βββ GX-mobile/ # Mobile application development
βββ GX-web/ # Web application frontend
βββ GX-lambda/ # Serverless functions for backend
βββ GX-blockchain/ # Blockchain programs
βββ lib/ # Shared Rust libraries
- GX-mobile: Cross-platform mobile app for consumers and producers.
- GX-web: WebAssembly-based frontend using Yew.
- GX-lambda: AWS serverless backend for compliance and APIs.
- GX-blockchain: Solana smart contracts for farm shares and access control.
- lib: Shared Rust libraries for reuse.
cargo build-bpf
cargo test-bpf
solana program deploy target/deploy/farm_share.sotrunk serve
trunk build --releasecargo lambda build
cargo lambda watch
cargo lambda deploygraph TB
subgraph "Frontend"
A[Yew WebAssembly]
B[Solana Wallet]
end
subgraph "Storage"
C[NFT.storage]
D[IPFS]
end
subgraph "Blockchain"
E[Solana Programs]
F[NFT Metadata]
end
subgraph "Serverless"
G[Rust Lambda]
H[DynamoDB Index]
end
A --> C
A --> E
C --> D
E --> F
G --> H
G --> D
See our Contributing Guide for development standards and testing.
This project is licensed under the MIT License. See the LICENSE file for details.
- Email: support@f2t.io
Built with π¦ Rust and β€οΈ for local food communities.