Skip to content

Alamink/Project_7

Repository files navigation

FlightSurety

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

requirement to run project wihtout error

In Ganache make sure you have min of 100 accounts. In Ganache set GAS PRICE to 20000000000 and GAS LIMIT to 9999999 Also, make sure to run server first and wait until 50 oracle has been registered then run dapp.

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 --reset --compile-all npm run dapp

To view dapp:

http://localhost:8000

Develop Server

npm run server

Deploy

To build dapp for prod: npm run dapp:prod

Deploy the contents of the ./dapp folder

Resources

Steps to run the smart contract, dapp and server

alt alt alt alt alt alt

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published