Skip to content

emartinezs/FlightSurety

Repository files navigation

FlightSurety

FlightSurety is a flight insurance Dapp.

FlightSurety is a sample application project for Udacity's Blockchain course.


Install

npm install

truffle compile


Running tests

truffle test


Running the application

Deploy the contracts

truffle develop

migrate

Running the frontend

npm run dapp

Running the oracle server

npm run server

View the dapp:

http://localhost:8000


Using the Application

  1. Authorize the app contract

Authorize address

  1. Fund the first airline

Fund airline

  1. Register a new airline

Register airline

  1. Register a flight

Register flight

  1. Buy insurance for a flight

Buy insurance

  1. Request flight status

Request flight status

  1. Withdraw credit

Withdraw