Final project of Udacity Blockchain Developer Nanodegree program, flight delay insurance application based on smart contracts run on blockchain.
- Ganache
- node.js
- Clone this repository with
git clone https://github.com/muratgozel/flight-surety.git
- Run
npm install
- Run
npm run compile
- Create a local blockchain with Ganache. Have at least 100 accounts, 1000 ether for each and use the mnemonic inside
truffle-config.js
file. - Run
npm run migrate
. This will deploy your contracts on the local blockchain. - Run
npm run dapp
to launch the web app. It will be available at http://127.0.0.1:8000 - Run
npm run server
to launch the server.
The project has an automated test suite inside test folder and the dapp can be used to test its functionality. To use the test suite, run npm run test
and to use the dapp just go to http://127.0.0.1:8000.