Skip to content

ldfandian/udacity-p7-flightsurety

Repository files navigation

FlightSurety

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

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.

    1. For OS environment, you can find my Docker file at Docker File ; Please take a look to see the basic package dependency.
    1. 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

    1. 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.

Develop Client

  • To use the dapp:

npm run dapp

  • To view dapp:

http://localhost:8000

Develop Server

  • To run oracles:

npm run server

About Test

  • dapp client: the project mainly depends on dapp client to do manual test. please enjoy. ** the screenshot of the dapp run is put at runlog

  • truffle test: you can run it, all test cases can pass, but test coverage is not good enough. ** the run log of the truffle test is also put at runlog

Resources

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published