Skip to content

Ethereum-based flight delay insurance for passengers

License

Notifications You must be signed in to change notification settings

abuaesh/FlightSurety

Repository files navigation

FlightSurety

FlightSurety is a sample application for ensuring airline flights using the Ethereum blockchain.

Project Requirements

There are five main requirements for the project:

  1. Separation of Concerns
  2. Airlines
  3. Passengers
  4. Oracles
  5. General

Install

This repository contains Smart Contract code in Solidity (using Truffle), tests (also using Truffle), dApp scaffolding (using HTML, CSS and JS) and server app scaffolding.

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

Ethereum-based flight delay insurance for passengers

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published