xiaoyifan / FlightSurety-3

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

FlightSurety

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

Install

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

Develop Client

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

Develop Server

npm run server truffle test ./test/oracles.js

Deploy

To build dapp for prod: npm run dapp:prod

Deploy the contents of the ./dapp folder

Resources

About

License:MIT License


Languages

Language:JavaScript 90.5%Language:HTML 8.1%Language:CSS 1.4%