Skip to content

reqica7/poviocoin

Repository files navigation

PovioCoin example

This is a simple example on how to connect node js with etherum smart contract

Tooling

First we install globally ganache-cli and truffle

npm install truffle ganache-cli -g

Environment

Install npm packages

npm i

Replace .env.example with .env.

First start up the emulator for our blockchain contract to connect and work. You can start up by running the command

$ ganache-cli

Since the contracts folder and migration will be on the repo we don't need to run command truffle init otherwise you have to

To compile contract run command :

$ truffle compile

To build the contract run command :

$ truffle migrate

To start the server run command :

# local development in watch mode
$ npm run start

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published