GithubHelp home page GithubHelp logo

simple-vote's Introduction

Simple Solana Dapp Tutorial

This is the code for a tutorial, which explains step-by-step how to write, deploy, and interact with a smart contract on the Solana Blockchain. It intentionally translates an existing (and quite famous) tutorial for Ethereum, aiming at exact functional compatibility. The tutorial works from the simple to the complex, and therefore includes multiple versions of the program and front-end, the final version is a web page interacting with the contract back-end on the Solana Mainnet.

This code is designed to be used with the Simple Solana Dapp Tutorial, a working version of the Solana Dapp Tutorial can be seen here

Quick Start

The following dependencies are required to build and run this example, depending on your OS, they may already be installed:

$ node --version
$ npm --version
$ docker -v
$ wget --version
$ rustup --version
$ rustc --version
$ cargo --version

If this is your first time using Docker or Rust, these Installation Notes might be helpful.

If not already, install (current version of) Solana CLI

sh -c "$(curl -sSfL https://release.solana.com/v1.6.1/install)"

This code is designed to be used with the tutorial, but if you just want to 'make it do something':

cd simple-vote-tutorial
npm install
npm run cluster_devnet
npm run keypair
npm run airdrop
npm run build_simplest
npm run deploy_simplest
npm run vote_simplest -- 2

You just voted via a smart contract on Solana (devnet).

simple-vote's People

Contributors

0xalpha0123 avatar dependabot[bot] avatar

Stargazers

 avatar

Forkers

dashbaord202401

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.