This is a web application which allows users to buy Flight Insurance. If flight is delayed due to airline fault, passenger gets credit of 1.5X the amount they paid. It has simulation generated to send the flight status.
Skills: Solidity, Node.js, Webpack, Web3.js, RestAPI, Ganache, Infura
This repository contains Smart Contract code in Solidity (using Truffle), tests (also using Truffle), dApp (using HTML, CSS and JS) and server app .
To install, download or clone the repo, then:
npm install
truffle compile
To run truffle tests:
truffle test ./test/flightSurety.js
truffle test ./test/oracles.js
To use the dapp:
truffle migrate
npm run dapp
To view dapp:
http://localhost:8000
npm run server
truffle test ./test/oracles.js
To build dapp for prod:
npm run dapp:prod
Deploy the contents of the ./dapp folder