Setting up Project

Clone Repo

https://github.com/0chain/zus-example-webapp

Prerequisites

Yarn Package Manager

Linux

Run the following commands :

sudo apt update
sudo apt install curl
curl -sL https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
sudo apt install yarn -y

Mac

In Mac,yarn can be installed using the Homebrew package manager. To install Yarn on macOS, open a terminal and type:

brew install yarn 

Note: Make sure that Homebrew is installed properly using the command below

Windows

Instructions can be found here

Start the sample app :

Sample Response ;

Open http://localhost:3000 with your browser to see the result.

Sample Result

The response will be similat to screenshot below.

Home Page of the App

.

Last updated