FlightSurety is a sample application project
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
npm run dev
or
truffle develop
if you're using ganache-gui:
npm run test:ggui
or inside truffle development truffle(develop)>
run:
test
migrate contracts to your running localhost node if you use ganache-gui:
npm run migrate:ggui
or inside truffle development truffle(develop)>
run:
migrate
then you can now run dapp frontend by:
npm run dapp
https://localhost:8000
npm run server
and watch for oracles response
To build dapp for prod:
npm run dapp:prod
Deploy the contents of the ./dapp folder