ikhvost / truffle-nest-box

A truffle box to serve as the foundation of any Truffle and Nest.js dApp.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Logo

Truffle-NestJS-Box

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

  1. nvm
  2. npx

Installation

  1. Set correct Node.js version.
nvm use
  1. Install necessary dependencies.
npm clean-install
  1. Run the ganache-cli.
npx ganache
  1. Now these contracts need to be compiled and deployed on the Blockchain. For this, run npx truffle migrate inside project root directory.
  2. You can see that a new /build folder has been created in the root directory which contains the compiled contracts.
  3. Create .env file in root directory and pass to METACOIN_ADDRESS address of created contract from blockchain network. (You have .env.template as a sample)
  4. To run the Node server npm start.
  5. Server will be available on http://${APP_HOST}:${APP_PORT}/.

Collaborators

  1. Illia Khvost
  2. Bohdan Titov
  3. Philip Schulz-Klingauf

About

A truffle box to serve as the foundation of any Truffle and Nest.js dApp.

License:MIT License


Languages

Language:TypeScript 52.4%Language:JavaScript 26.4%Language:Solidity 21.2%