Skip to content

Latest commit

 

History

History
79 lines (47 loc) · 2.78 KB

README.md

File metadata and controls

79 lines (47 loc) · 2.78 KB

Nest Logo

NPM Version Package License NPM Downloads CircleCI Coverage Discord

Description

image

This is Forestoken the final project for Systems Engineering Degree at UTN.

It is a product which empowers wood suppliers, offering a way to generate tokens (ERC20) based on wood provided by big suppliers. Nowadays selling wood for suppliers is a tedious and long process which we aim to improve with Forestoken.

This repo contains a PoC. It has a backend in Nest framework using TypeScript. And the frontend in React.

image

Installation

$ npm install

Running the app

# development
$ npm run start

# watch mode
$ npm run start:dev

# production mode
$ npm run start:prod

Running the smart contract

node src/server/contracts/compile.js  // compile the smart contract


// if this fails, check env vars needed
node src/server/contracts/deploy.js // deploy the smart contract


node src/server/contracts/call.js // make some test calls to the smart contract

Test

# unit tests
$ npm run test

# e2e tests
$ npm run test:e2e

# test coverage
$ npm run test:cov