Git Product home page Git Product logo

wall-of-gif-solana's Introduction

Wall of gif with Solana

A web application that allows you to create and share wall of gifs! Built on top of solana blockchain.

Installation and Usage

Getting the frontend up and running

Install the dependencies first for the project.

yarn
# OR
npm install

Now, go to the solana app, and install its dependencies in the same way.

cd solana_app

yarn
# OR
npm install

Once you're done, Ensure that you have the solana toolchain ready. If you don't, there are instructions on how-to do that in the section below.

Now, you need to deploy your solana program. You can find the instructions in the section in the end of installation and usage, on how you can do it.

Once you have deployed, copy the IDL file from target/idl/solana_app.json in solana_app to src/assets in react project into a file called idl.json.

Done? Awesome! Now, generate the keypair for handling accounts.

cd src
node createKeyPair.js
cd ..

Now, Open up your phantom wallet (Install it, if you don't have it!), and switch the network to devnet. Then, fund the account by copying the public key, and using this command,

solana airdrop 5 <wallet-public-key>  --url https://api.devnet.solana.com

Great job! You're good to go. Now, you can run npm run start to start up the app, or host it anywhere you want ✨

Solana and toolchain installation

To get started with solana, you need to have rust installed on your local system.

To quickly install solana, Follow this guide.

Ensure that it's installed by running,

solana --version

If it works without errors, That means it's good to go.

Now it's time to install Anchor. You can install it easily by following the official documentation, here.

To test if it works fine too, use this command.

anchor --version

Now, Generate a Keypair using the solana CLI suite and check the address.

solana-keygen new
solana address

Deploying your Solana program to devnet

To start deploying, first switch your net to devnet.

solana config set --url devnet

Finally, airdrop yourself some SOL on the devnet.

solana airdrop 2
solana balance

Now, It's time to configure the variables.

In Anchor.toml, change [programs.localnet] to [programs.devnet].

Then, change cluster = "localnet" to cluster = "devnet".

Run the build through anchor using,

anchor build

This creates a program ID for us. Access it using,

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

Copy the ID and change it in the declare_id!() section in the lib.rs located inside programs/solana_app/src. Now, go to Anchor.toml, and replace the ID with the same one you copied above under [programs.devnet].

By default the location for the keypair for Anchor to load is set to ~/.config/solana/id.json. If you are using a custom path, make sure to update the Anchor.toml to use your custom path.

Good to go? Now run anchor build!

Awesome. Now, just deploy it using the final command - anchor deploy. Boom, You're all set.

You can track your program using the Solana explorer, and by searching for your program using the ID you obtained from the JSON file.

🀝 Contributing

Contributions, issues and feature requests are welcome. After cloning & setting up project locally, you can just submit a PR to this repo and it will be deployed once it's accepted.

⚠️ It’s good to have descriptive commit messages, or PR titles so that other contributors can understand about your commit or the PR Created. Read conventional commits before making the commit message.

Show your support

We love people's support to grow, improve and give the best. Be sure to drop a 🌟 if you like the project, and also contribute, if you're interested!

Thanks to Buildspace for such an amazing project and the awesome platform! πŸ”₯

Made by Sunrit Jana with ❀️

wall-of-gif-solana's People

Contributors

janasunrise avatar dependabot[bot] avatar

Stargazers

Roman avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.