howellsy / sports-gif-portal

Store your best-loved sports GIFs on Solana.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Solana Sports GIF Portal

Based on the buildspace Build a Web3 app on Solana with React and Rust project.

A web app that lets anyone with a Solana (Phantom πŸ‘») wallet:

  • submit GIFs to a portal
  • save them on the Solana blockchain
  • retrieve all of the GIFs that have been submitted

image


⚑ Quick Start - Running the Web App

  1. Clone the repo.
  2. Run npm install at the root of your directory
  3. Run npm run start to start the web app

πŸ“‚ Repo Structure

  • gifportal/ a Solana program (written in Rust) to store submitted GIFs on the Solana blockchain
  • src/ a React web app that calls the deployed program

πŸš€ Deploying the gifportal program to devnet

You will need to install Rust, Solana tool suite and Anchor.

Set the Solana environment to devnet:

solana config set --url devnet

Run Anchor build:

cd gifportal

anchor build

Get the program ID:

solana address -k target/deploy/gifportal-keypair.json

Set the program ID in src/lib.rs and Anchor.toml

Run Anchor deploy:

anchor deploy


πŸ§ͺ Running Tests

Compile the gifportal program and run the tests from tests/gifportal.js using:

anchor test

About

Store your best-loved sports GIFs on Solana.

License:MIT License


Languages

Language:JavaScript 57.0%Language:Rust 18.5%Language:CSS 15.6%Language:HTML 8.9%