Skip to content
 
 

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

Versions used in project

Truffle version truffle: ^5.1.65

Web3 version web3: ^1.8.2

Develop Client

To run truffle tests:

truffle develop truffle test

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

Screenshots

ganache-cli ganache-cli continued ganache-cli continued

Run the Dapp Run the Dapp continued Run the Dapp continued

Run the server

Truffle tests Truffle tests 2 Truffle tests 3 Truffle tests 4 Truffle tests 5

Truffle Migrations Truffle Migrations 2

Resources

About

Udacity Blockchain Nanodegree Course 6 "Flight Surety" Project

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages