To Be Used as Truffle Box Creating API Endpoints for Ethereum Blockchain.
We use personalised blockchain for Ethereum BlockChain Development. This personalised blockchain is made in the GanacheCLI.
The Smart Contract Written in solidity language is deployed on this Ethereum Blockchain. Smart Contract is Immutable hence, once deployed it can't be changed.
A truffle box to serve as the foundation of any Truffle and Nest.js dApp.
Pre-Requisites
Installation
- Set correct Node.js version.
nvm use
- Install necessary dependencies.
npm clean-install
- Run the ganache-cli.
npx ganache
- Now these contracts need to be compiled and deployed on the Blockchain. For this, run
npx truffle migrate
inside project root directory. - You can see that a new
/build
folder has been created in the root directory which contains the compiled contracts. - Create
.env
file in root directory and pass toMETACOIN_ADDRESS
address of created contract from blockchain network. (You have.env.template
as a sample) - To run the Node server
npm start
. - Server will be available on
http://${APP_HOST}:${APP_PORT}/
.
Collaborators