Giter Site home page Giter Site logo

yuong1979 / example-helloworld Goto Github PK

View Code? Open in Web Editor NEW

This project forked from solana-labs/example-helloworld

0.0 0.0 0.0 1.05 MB

Hello world on Solana

License: MIT License

Shell 0.42% C 12.82% Rust 34.06% TypeScript 51.93% Makefile 0.77%

example-helloworld's Introduction

Forked from https://github.com/solana-labs/example-helloworld.git

#steps to run example helloworld project

#Commands to run in bash on ubuntu to install all relevant packages

echo "start installation"

sudo apt -y update -q

sudo apt -y upgrade -q

curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh

source $HOME/.cargo/env

rustup update

echo "rust installed"

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

export PATH="/home/yuong/.local/share/solana/install/active_release/bin:$PATH"

echo "solana installed"

sudo apt install pkg-config libssl-dev -y

echo "libssl-dev installed"

sudo apt-get update && sudo apt-get upgrade && sudo apt-get install -y pkg-config build-essential libudev-dev

cargo install --git https://github.com/project-serum/anchor avm --locked --force

avm install latest

avm use latest

echo "anchor installed"

curl -fsSL https://deb.nodesource.com/setup_lts.x | sudo -E bash -

sudo apt-get install -y nodejs

sudo apt-get install -y build-essential

#After packages are installed run the below

Create a new directory

cd into the new directory

git clone git clone https://github.com/yuong1979/example-helloworld

Open up another terminal and cd into the new directory created

Run the solana validator - solana-test-validator

Go back to the terminal where you just cloned the example-helloworld-project

cd into the directory - xxx/example-helloworld

Generate a new wallet named demo.json - solana-keygen new -o demo.json

Get the wallet address - solana address

Get airdrop - solana airdrop 1 "walletaddress"

run the command - npm run build:program-rust

The above command should suggest something like this - solana program deploy /xxx/example-helloworld/dist/program/helloworld.so

Ensure that everything is updated - npm update --all

Run the below to see the increments - npm run start

example-helloworld's People

Contributors

dependabot[bot] avatar jackcmay avatar jstarry avatar dependabot-preview[bot] avatar joeaba avatar yuong1979 avatar mvines avatar pierreneter avatar brson avatar gondar00 avatar joncinque avatar panda850819 avatar 0xekez avatar kemargrant avatar brianlong avatar calebeverett avatar avanatiker avatar thirdreplicator avatar davoclavo avatar intelliot avatar joaofreires avatar junwei0117 avatar mhchia avatar fanatid avatar remjx avatar rmshea avatar thearas avatar criesofcarrots avatar artsiukhou avatar kigawas 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.