Skip to content

1-4200/FlightSurety

Repository files navigation

FlightSurety

version

Truffle v5.1.24 (core: 5.1.24)
Solidity - 0.6.0 (solc-js)
Node v14.0.0
Web3.js v1.0.0-beta.55

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

Edit

Edit SafeMath.sol you installed from openzepplin To compile:

node_modules/@openzeppelin/contracts/math/SafeMath.sol L:3

pragma solidity ^0.6.0;

Edit above code to below

pragma solidity 0.5.16 <= 0.6.0;

Compile

truffle compile

Develop Client

To run truffle tests:

truffle test ./test/flightSurety.js truffle test ./test/oracles.js

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

Resources

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published