🎯 Complete, tested code examples for real-world WTTP applications
docs/examples/
├── static-website/ # Deploy a complete static website
├── simple-blog/ # Create and manage a blog with posts
├── file-storage/ # Upload, download, and manage files
├── api-endpoints/ # Create RESTful API endpoints
├── nft-metadata/ # Store NFT metadata permanently
└── document-archive/ # Create permanent document storage
Prerequisites: Before using these examples, complete the blockchain basics setup:
- ✅ MetaMask wallet configured
- ✅ Sepolia testnet added and funded
- ✅ Private key security understood
- ✅ Development environment prepared
| Example | Description | Difficulty | Est. Time |
|---|---|---|---|
| Static Website | Deploy HTML/CSS/JS website | Beginner | 20 minutes |
| Simple Blog | Create blog with post management | Intermediate | 45 minutes |
| API Endpoints | RESTful API with CORS setup | Advanced | 60 minutes |
| Example | Description | Difficulty | Est. Time |
|---|---|---|---|
| File Storage | Upload/download file management | Beginner | 30 minutes |
| Document Archive | Permanent document storage | Intermediate | 40 minutes |
| NFT Metadata | Store NFT metadata permanently | Advanced | 50 minutes |
Each example includes:
- 📖 Complete README with step-by-step instructions
- 💻 Working code that you can run immediately
- 📋 Prerequisites and requirements
- ⚡ Quick start commands
- 🔧 Customization options
- 🚨 Troubleshooting common issues
- Choose your example from the categories above
- Read the README in that directory
- Copy the example to your local development environment
- Update configuration with your settings
- Run the deployment scripts
- Test your WTTP site functionality
Start with Static Website - it's the simplest way to understand WTTP basics.
Try Simple Blog - shows content management and permissions.
Use File Storage - demonstrates upload/download workflows.
Check NFT Metadata - permanent metadata storage patterns.
Explore API Endpoints - RESTful services on blockchain.
Try Document Archive - permanent, verifiable storage.
Current Status: Sam is fixing critical deployment infrastructure bugs. Once his improvements are complete, all examples will be thoroughly tested and validated.
Coming Soon:
- ✅ Validated deployment scripts
- ✅ Infrastructure reliability improvements
- ✅ Enhanced error handling
- ✅ Performance optimizations
Recommended progression:
graph TD
A[Static Website] --> B[File Storage]
B --> C[Simple Blog]
C --> D[API Endpoints]
D --> E[NFT Metadata]
E --> F[Document Archive]
A1[Learn basics] --> A
B1[Understand storage] --> B
C1[Content management] --> C
D1[Advanced features] --> D
E1[Specialized use case] --> E
F1[Enterprise patterns] --> F
If you encounter issues:
- Check troubleshooting section in each example's README
- Review blockchain basics - most issues are wallet/testnet related
- Verify prerequisites - ensure all setup steps completed
- Check example-specific requirements and dependencies
Choose your first example and dive in! Each example is designed to work independently while building on concepts from previous examples.
Most Popular Starting Points:
- 🌐 Static Website - Perfect for beginners
- 💾 File Storage - Great for understanding WTTP storage
- 📝 Simple Blog - Best for content creators
💡 Pro Tip: All examples use testnet ETH, so you can experiment freely without any real costs!