NFTune is a decentralized music collaboration platform built on the Internet Computer Protocol (ICP). It allows Artists/musicians to collaborate on projects, store music on IPFS via Pinata, and create NFTs of their work.
- Decentralized Authentication: Uses Internet Identity for secure, passwordless authentication
- Music Collaboration: Real-time collaboration on music projects
- IPFS Storage: Store music files securely on IPFS using Pinata
- NFT Creation: Create and mint NFTs of your music projects
- Revenue Sharing: Automatic revenue distribution based on collaboration percentages
- ICP Integration: Fully integrated with Internet Computer canisters
- Backend: Rust canisters on ICP using stable memory for data persistence
- Frontend: React application deployed as an asset canister
- Storage: IPFS via Pinata for music and metadata storage
- Authentication: Internet Identity for secure user management
-
Install dependencies:
# Install DFX sh -ci "$(curl -fsSL https://internetcomputer.org/install.sh)" # Install frontend dependencies cd frontend npm install cd ..
-
Start local ICP network:
dfx start --background --clean
-
Deploy canisters locally:
chmod +x deploy.sh ./deploy.sh
-
Access the application:
- The script will output the frontend URL
- Use Internet Identity for authentication
-
Get cycles (ICP's compute units):
# You'll need ICP tokens to get cycles dfx ledger --network ic balance dfx ledger --network ic transfer --amount 1.0 --memo 0 <CYCLES_WALLET_CANISTER_ID>
-
Deploy to mainnet:
chmod +x deploy-mainnet.sh ./deploy-mainnet.sh
Create frontend/.env.local for local development:
VITE_NFTUNE_BACKEND_CANISTER_ID=your_backend_canister_id
VITE_INTERNET_IDENTITY_URL=http://localhost:4943/?canister=rdmx6-jaaaa-aaaaa-aaadq-cai
For production, create frontend/.env.production:
VITE_NFTUNE_BACKEND_CANISTER_ID=your_mainnet_backend_canister_id
VITE_INTERNET_IDENTITY_URL=https://identity.ic0.app
To use Pinata for IPFS storage, you'll need to:
- Create a Pinata account
- Get your API keys
- Integrate them into your file upload functionality
├── dfx.json # DFX configuration
├── Cargo.toml # Rust workspace configuration
├── src/
│ └── nftune_backend/ # Backend canister
│ ├── src/
│ │ ├── lib.rs # Main canister code
│ │ ├── types.rs # Data types
│ │ ├── storage.rs # Storage functions
│ │ ├── auth.rs # Authentication
│ │ ├── projects.rs # Project management
│ │ ├── nfts.rs # NFT functionality
│ │ └── collaborations.rs # Collaboration management
│ └── Cargo.toml # Backend dependencies
├── frontend/ # React frontend
│ ├── src/
│ │ ├── services/
│ │ │ └── icp.ts # ICP integration
│ │ ├── contexts/
│ │ │ └── AuthContext.tsx # Authentication context
│ │ └── pages/ # React pages
│ └── package.json
├── deploy.sh # Local deployment script
└── deploy-mainnet.sh # Mainnet deployment script
- Removed PostgreSQL/Diesel: Replaced with ICP stable memory
- Removed Express/Actix backend: Replaced with ICP Rust canisters
- Added Internet Identity: Secure, passwordless authentication
- ICP Integration: Full integration with Internet Computer infrastructure
- Candid Interface: Type-safe communication between frontend and backend
- Asset Canister: Frontend deployed as ICP asset canister
# Start local ICP network
dfx start --background
# Deploy locally
dfx deploy
# Check canister status
dfx canister status --all
# View canister logs
dfx canister logs nftune_backend
# Stop local network
dfx stop- Fork the repository
- Create a feature branch
- Make your changes
- Test locally with
dfx deploy - Submit a pull request
MIT License - see LICENSE file for details