Flight Surety Dapp – 飞行保证人区块链毕设代写

区块链毕设代写本文提供国外最新区块链项目源码下载,包括solidity,eth,fabric等blockchain区块链,Flight Surety Dapp – 飞行保证人区块链毕设代写 是一篇很好的国外资料

Flight Surety Dapp

My Version of Udacity Flight Surety App This repository contains Smart Contract code in Solidity (using Truffle), tests (also using Truffle), dApp scaffolding (React) and server app scaffolding (Express).

App deployed on Netlify

https://flightsurety.netlify.app/

Server deployed to Heroku from separate repo

https://flightsuretyserver.herokuapp.com/

https://github.com/richardmands/flightSuretyServer

See App Contract on Rinkeby

https://rinkeby.etherscan.io/address/0xBa4248664584a4f6C16D82373c4f845Cf03aE554

App Contract deployment transaction

https://rinkeby.etherscan.io/tx/0xa0423f71c372bac34a94aae03be1503db5bee61c8d5eda6a687922ffb7b040cb

See Data Contract on Rinkeby

https://rinkeby.etherscan.io/address/0x1d72013A5998A8FDd3967b101A9F2ad176EA8eb1

Data Contract deployment transaction

https://rinkeby.etherscan.io/tx/0xec8f7cfbb8899624bd06683a4837c000127591f6a2771e53bb8806420b065d5b

App Summary

Registered and Paid airlines can:

  • Nominate addresses as owners of airlines
  • Request the contract be turned on or off

Registered airlines can:

  • Fund their airline

All users can:

  • Request a flight be registered as available for purchasing insurance
  • Purchase insurance
  • Check the status of their flight
  • If the flight status is returned as ‘LATE AIRLINE’, can request a refund

Running the app

  • Run Ganache CLI or truffle develop
  • Pull down the code from GitHub

Contracts

  • Run truffle compile and truffle migrate commands from the root directory

The Front-End

  • cd react-app
  • yarn start

The Back-End

  • cd server
  • yarn start

Run Tests

  • Run Ganache CLI or truffle develop
  • Update truffle-config.js with correct host port
  • Run truffle test from the root directory

Tests

  • Mocha for contract tests
  • Errors visible in console logs are confirming failure when account with wrong permissions attempts an action.
  • See Tests Here

Required Libraries

  • Truffle v5.3.6

  • Solidity v0.8.0

  • Web3 v1.3.0

  • Express v4.6.0

  • Node v14

  • These libraries are required for this project. I used more recent versions than in the course outline as I want my learning to be as current as possible.

Optional Libraries

  • Create React App. Used to provide a great starting point for the UI. As a Senior Front-End Developer who works daily with React, this is a great tool for getting a modern Front-End up and running quickly.

  • Ganache. Used for local development before deploying my contracts to the Rinkeby Test Network. Used with Ganache UI as it provides useful real-time updates on transactions.

Notes for Reviewer

  • I reduced the amount needed to fund an airline from 10 Ether to 1 Ether to save on Testnet funds.
  • I did the same for registering as an Oracle

Flight Surety Dapp

My Version of Udacity Flight Surety App This repository contains Smart Contract code in Solidity (using Truffle), tests (also using Truffle), dApp scaffolding (React) and server app scaffolding (Express).

App deployed on Netlify

https://flightsurety.netlify.app/

Server deployed to Heroku from separate repo

https://flightsuretyserver.herokuapp.com/

https://github.com/richardmands/flightSuretyServer

See App Contract on Rinkeby

https://rinkeby.etherscan.io/address/0xBa4248664584a4f6C16D82373c4f845Cf03aE554

App Contract deployment transaction

https://rinkeby.etherscan.io/tx/0xa0423f71c372bac34a94aae03be1503db5bee61c8d5eda6a687922ffb7b040cb

See Data Contract on Rinkeby

https://rinkeby.etherscan.io/address/0x1d72013A5998A8FDd3967b101A9F2ad176EA8eb1

Data Contract deployment transaction

https://rinkeby.etherscan.io/tx/0xec8f7cfbb8899624bd06683a4837c000127591f6a2771e53bb8806420b065d5b

App Summary

Registered and Paid airlines can:

  • Nominate addresses as owners of airlines
  • Request the contract be turned on or off

Registered airlines can:

  • Fund their airline

All users can:

  • Request a flight be registered as available for purchasing insurance
  • Purchase insurance
  • Check the status of their flight
  • If the flight status is returned as ‘LATE AIRLINE’, can request a refund

Running the app

  • Run Ganache CLI or truffle develop
  • Pull down the code from GitHub

Contracts

  • Run truffle compile and truffle migrate commands from the root directory

The Front-End

  • cd react-app
  • yarn start

The Back-End

  • cd server
  • yarn start

Run Tests

  • Run Ganache CLI or truffle develop
  • Update truffle-config.js with correct host port
  • Run truffle test from the root directory

Tests

  • Mocha for contract tests
  • Errors visible in console logs are confirming failure when account with wrong permissions attempts an action.
  • See Tests Here

Required Libraries

  • Truffle v5.3.6

  • Solidity v0.8.0

  • Web3 v1.3.0

  • Express v4.6.0

  • Node v14

  • These libraries are required for this project. I used more recent versions than in the course outline as I want my learning to be as current as possible.

Optional Libraries

  • Create React App. Used to provide a great starting point for the UI. As a Senior Front-End Developer who works daily with React, this is a great tool for getting a modern Front-End up and running quickly.

  • Ganache. Used for local development before deploying my contracts to the Rinkeby Test Network. Used with Ganache UI as it provides useful real-time updates on transactions.

Notes for Reviewer

  • I reduced the amount needed to fund an airline from 10 Ether to 1 Ether to save on Testnet funds.
  • I did the same for registering as an Oracle

部分转自网络,侵权联系删除区块链源码网

www.interchains.cc

https://www.interchains.cc/24954.html

区块链毕设网(www.interchains.cc)全网最靠谱的原创区块链毕设代做网站 部分资料来自网络,侵权联系删除! 最全最大的区块链源码站 ! QQ3039046426
区块链知识分享网, 以太坊dapp资源网, 区块链教程, fabric教程下载, 区块链书籍下载, 区块链资料下载, 区块链视频教程下载, 区块链基础教程, 区块链入门教程, 区块链资源 » Flight Surety Dapp – 飞行保证人区块链毕设代写

提供最优质的资源集合

立即查看 了解详情