Simple Solana Dapp to publish one-line snippets for your favorite languages.
Every Snippet is saved on-chain as a Solana Account.
The User connects a Wallet to pay the necessary fee to store the Account on the blockchain.
git clone https://github.com/jferrer/one-liners
cd one-liners
anchor build
Config localhost:
solana config set --url localhost OR solana config set -rl
Deploy:
anchor deploy
Run Solana Test Validator in a different Terminal:
solana-test-validator OR solana-test-validator --reset (to reset data)
Run Vue app:
cd app
yarn serve
- Connect your wallet
- Copy Public Key and get some SOL
solana airdrop 1000 <your-public-key>
Followed and adapted Create a Solana dApp from scratch tutorial.