https://github.com/linux08/flightsurety
https://github.com/linux08/flightsurety
Last synced: 11 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/linux08/flightsurety
- Owner: linux08
- License: mit
- Created: 2022-12-21T04:21:15.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2023-01-18T05:25:50.000Z (about 3 years ago)
- Last Synced: 2025-01-15T11:15:18.322Z (about 1 year ago)
- Language: JavaScript
- Size: 568 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Codeowners: CODEOWNERS
Awesome Lists containing this project
README
# 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`
## Develop Client
To run truffle tests:
`truffle test ./test/flightSurety.js`
`truffle test ./test/oracles.js`
Start you ganache, a sample code can be found in `1_start_ganache-cli.sh`
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