Skip to content

bku-blockchain/server

Repository files navigation

Server

Quickstart

  • Clone repository, installing packages with npm or yarn
  • Copy file .env.example to file .env with the same path.
  • Change variables in new file .env with your values.

APIs

View docs/APIs.md

On postman: https://documenter.getpostman.com/view/2583401/RzZ9FK8g

Notes

Compile smart contract with Truffle

With truffle is installed as devDependencies, you can run truffle by:

# Run directly
./node_modules/.bin/truffle compile

# Run via package.json
yarn run sol
yarn sol

Solidity files in contracts/*.sol will be compiled to build/contracts/*.json

Start EVM with Ganache CLI

With ganache-cli is installed as devDependencies, you can run local EVM with ganache by:

# Run directly
./node_modules/.bin/ganache-cli

# Run via package.json
npm run evm
yarn evm

It will run on 127.0.0.1:8545

Document for Web3js version 1.0

About

Backend, NodeJS, Web3, Smart contract, Ethereum, Blockchain

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •