Skip to content

Flight Surety | Quick way to insure your flight.

License

Notifications You must be signed in to change notification settings

Tarunshrma/FlightSurety

 
 

Repository files navigation

Fight Surety | Ethereum

Table of Contents

  1. General Info
  2. Design Diagrams
  3. How to Run
  4. Unit Tests

general-info

This is simplified version of Flight insurence solution using Blockchain technologies. This project is part of Udacity Nanodegree program.

Using this solution, Passengers can directly buy insurance for flight and can be paid into their account in case flight is delayed, without involvement of any third party insurance companies, banks etc. This solution will result in removal of middleman like insurance companies and results in faster insurance processing, less transaction fee and more trust between Airline companies and passengers.

design-diagrams

High Level Diagram

Design Diagram

Sequence Diagram

Sequence Diagram

installation

A step by step series of examples that tell you have to get a development env running

Clone this repository:

git clone https://github.com/Tarunshrma/FlightSurety.git

Change directory to FlightSurety folder and install all requisite npm packages (as listed in package.json):

cd FlightSurety
npm install

Compile the smart contracts

truffle compile

Open the terminal and launch the local instance of blockchain to test your smart contracts.

ganache-cli -a 20

This command will launch the local blockchain at http://127.0.0.1:8545/ with 20 test accounts and private keys. You can use those accounts to test and execute the smart contracts locally without deploying it to TestNet or MainNet. Truffle Develop Info

Run Unit Test Cases

truffle test

Unit Test Case

Deploy Smart Contracts To Local Blockchain Instance

truffle migrate --network development

Contract Deployment Contract Deployment

FrontEnd

Deploy front end using below command

npm run dapp

Running Front End

Front End

Oracles

Deploy nodejs server to register oracles.

npm run server

Running Server

About

Flight Surety | Quick way to insure your flight.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Solidity 51.9%
  • JavaScript 42.5%
  • HTML 4.4%
  • Other 1.2%