/flight_surety_project

Smart contracts to provide flight insurance

Primary LanguageJavaScriptMIT LicenseMIT

Flight Surety Project

Smart contracts to provide flight insurance

Highlights

Dapp to make payment to laters flights

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.

Tools

This project was built on linux operating system using the following tools:

  • NodeJS v11.6.0
  • NPM 6.9.0
  • Truffle Framework v4.1.15
  • Solidity v0.4.25

Installing

To running the project is necessary to install node.js, npm and Truffle Framework.

Node.js

Install on Linux using nvm:

    curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.0/install.sh | bash

Install node:

    nvm install node

Update NPM:

    npm i npm -g

Install on Windows:

Download binary from oficial page here

Truffle Framework

Install truffle:

    npm install -g truffle

Install Dependencies

Once installed Node.js download the project and on root directory (cacao-supply-chain) run the follow command.

npm install

This will install all the packages needed to run the application.

Usage

Run the follows commands:

ganache-cli -m "mnemonic worlds"
truffle compile
truffle migrate
npm run server
npm run dapp

Built With

Authors

  • Alano Acioli

Acknowledgments

  • Blockchain Nanodregree Udacity course