FlightSurety is application project for Udacity's Blockchain course.
Please make sure you've already installed nodejs version 10+ (tested on v10.15.2), MetaMask extension( with wallet imported from ganache )in your browser.
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
Run this command in separate terminal window
npx ganache-cli -m "candy maple cake sugar pudding cream honey rich smooth crumble sweet treat" -a 50
npm run test
To use the dapp:
npx truffle compile
npx truffle migrate --reset
Run this command in separate terminal window
npm run server
Run this command in separate terminal window
npm run dapp
To view dapp:
http://localhost:8000
To build dapp for prod:
npm run dapp:prod
Deploy the contents of the ./dapp folder