FlightSurety is a sample application project for Udacity's Blockchain course.
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.
-
- For OS environment, you can find my Docker file at Docker File ; Please take a look to see the basic package dependency.
-
- To install, download or clone the repo, then:
root@aac05338eec7:/mnt/devroot/src/udacity-p7-flightsurety# truffle version
Truffle v5.0.2 (core: 5.0.2)
Solidity - ^0.4.24 (solc-js)
Node v10.24.1
root@aac05338eec7:/mnt/devroot/src/udacity-p7-flightsurety# npm install
...
root@aac05338eec7:/mnt/devroot/src/udacity-p7-flightsurety# truffle compile --all
...
root@aac05338eec7:/mnt/devroot/src/udacity-p7-flightsurety# truffle migrate
...
** You can see the runlog: truffle compile & truffle migrate
-
- Pleae make sure you have at least 50+ accounts in your local ganache-cli blockchain. Also, I recommend that you have 1000 ethers for each local account, coz every airline registration takes 10 ethers.
- To use the dapp:
npm run dapp
- To view dapp:
http://localhost:8000
- To run oracles:
npm run server