Skip to content

cledoux95/Blockchain-Project-6

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.

To install, download or clone the repo, then:

npm install truffle compile

Note that the following versions were used with success at the time of this commit: Truffle v5.0.43 Solidity ^0.4.26;

CRITICAL: there is a bug in Webpack, when you npm install you will need to take the following steps after downloading the packages: 1. navigate to node_modules > webpack-dev-server > bin > webpack-dev-server.js

2. change line 84 to: require('webpack-cli/bin/config/config-yargs')(yargs);

3. change line 92 to: const config = require('webpack-cli/bin/utils/convert-argv')(yargs, argv, {

Develop Client

To run truffle tests:

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

To use the dapp:

truffle migrate or truffle migrate --reset and then 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

6th Project for Udacity Blockchain Developer

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors