FlightSurety is a sample application project for Udacity's Blockchain course.
- Node v14
- Ganache v7.0.1
- Truffle 5.4.13
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
Be sure to run ganache (i used v7) at first step:
ganache -m "candy maple cake sugar pudding cream honey rich smooth crumble sweet treat" -a 100
To run truffle tests:
truffle test ./test/all.js
To use the dapp:
truffle migrate
npm run dapp
To view dapp:
http://localhost:8000
Be sure to run ganache (i used v7) at first step:
ganache -m "candy maple cake sugar pudding cream honey rich smooth crumble sweet treat" -a 100
npm run server
To build dapp for prod:
npm run dapp:prod
Deploy the contents of the ./dapp folder