Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/solana-labs/example-helloworld

Hello world on Solana
https://github.com/solana-labs/example-helloworld

Last synced: 6 days ago
JSON representation

Hello world on Solana

Awesome Lists containing this project

README

        

[![Build status][travis-image]][travis-url] [![Gitpod
Ready-to-Code](https://img.shields.io/badge/Gitpod-Ready--to--Code-blue?logo=gitpod)](https://gitpod.io/#https://github.com/solana-labs/example-helloworld)

[travis-image]:
https://travis-ci.org/solana-labs/example-helloworld.svg?branch=master
[travis-url]: https://travis-ci.org/solana-labs/example-helloworld

# Hello world on Solana (Gitpod version)

This project demonstrates how to use the [Solana Javascript
API](https://github.com/solana-labs/solana-web3.js) to build, deploy, and
interact with programs on the Solana blockchain.

The project comprises of:

* An on-chain hello world program
* A client that can send a "hello" to an account and get back the number of
times "hello" has been sent

## Table of Contents
- [Hello world on Solana (Gitpod
version)](#hello-world-on-solana-gitpod-version)
- [Table of Contents](#table-of-contents)
- [Quick Start](#quick-start)
- [Expected output](#expected-output)
- [Customizing the Program](#customizing-the-program)
- [Learn about Solana](#learn-about-solana)
- [Learn about the client](#learn-about-the-client)
- [Learn about the on-chain program](#learn-about-the-on-chain-program)
- [Expand your skills with advanced
examples](#expand-your-skills-with-advanced-examples)

## Quick Start

Using this example in Gitpod connects to the public Solana `devnet` cluster. Use
the environment variable `CLUSTER` to choose a different Solana cluster.

Start a local Solana cluster:
```bash
solana-test-validator
```

Deploy the on-chain program:
```bash
solana program deploy ./dist/program/helloworld.so
```

Run the client to load and interact with the on-chain program:
```bash
npm run start
```

The remaining sections of this document point back to the non-Gitpod version of
the README for more information.

### [Expected output](README.md#expected-output)

### [Customizing the Program](README.md#Customizing-the-Program)

## [Learn about Solana](README.md#learn-about-solana)

## [Learn about the client](README.md#learn-about-the-client)

## [Learn about the on-chain program](README.md#learn-about-the-on-chain-program)

## [Expand your skills with advanced examples](README.md#expand-your-skills-with-advanced-examples)