Skip to content

A decentralized application related to flights; some of the functionalities are: passengers booking flights, airlines and flights being registered.

License

Notifications You must be signed in to change notification settings

MiraAnisBahou/Udacity-BlockchainDeveloperCourse-FlightSurety

Repository files navigation

Important notes:

In case you want to check my front-end and the functionalities, make sure to change the firstAirline to the address of the first account from ganache-cli before "truffle migrate --reset" in 2_deploy_contracts.

Tests:

To check if my tests work, use ganache-cli, by writing: ganache-cli -a 20 in the CMD, since I used more than 10 accounts.

Transactions:

When you try the front-end, run ganache-cli -a 50 just in case, and if any of the transactions are not displayed on the front-end, look at the cmd where you are running the ganache-cli, all transactions appear there, so everything is running correctly.

Udacity's Notes:

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.

To install, download or clone the repo, then:

npm install truffle compile

Develop Client

To run truffle tests:

truffle test ./test/flightSurety.js truffle test ./test/oracles.js

To use the dapp:

truffle migrate npm run dapp

To view dapp:

http://localhost:8000

Develop Server

npm run server truffle test ./test/oracles.js

Deploy

To build dapp for prod: npm run dapp:prod

Deploy the contents of the ./dapp folder

Resources

About

A decentralized application related to flights; some of the functionalities are: passengers booking flights, airlines and flights being registered.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published