This simple distributed blog with a one-click paywall. It runs on Wavelet network and is build using Gatsby.
Anyone can publish a Post which involves paying a fee to the Blog owner (account responsible for deploying the Smart Contract). To recover and get a profit, Publishers can add a fee for anyone to be able to see their content.
- contract - contains rust smart contract
- client - it's a Gatsby default starter project
From the contract folder:
- run
cargo build --release --target wasm32-unknown-unknown
to compile the smart contract - you can upload your smart-contract on the Wavelet testnet via https://lens.perlin.net/#/contracts
From the client folder:
- run
gatsby develop
ornpm run develop
to run Gatsby development server - run
gatsby build
ornpm run build
to build the project for production - run
gatsby serve
ornpm run serve
to start static server view the built app