The Bike Smart Contract application aims to provide registered users with a platform to record their bike data. Through the web application, the user can perform the following functions: Register as a new user on the web, login with your registered user, register the information about new bicycles, show the information of registered bicycles, update notes of the registered bicycle, transfer to a new user the registration of their bicycle (in case of a sale, gift for example) & give up ownership of the registered bicycle (in case of disablement or theft, for example)
"@truffle/contract": "^4.3.29",
"@truffle/hdwallet-provider": "^1.4.3",
"bcrypt": "^5.0.1",
"bootstrap": "^5.0.2",
"compression": "^1.7.4",
"dotenv": "^10.0.0",
"ejs": "~2.6.1",
"express": "~4.16.1",
"express-validator": "^6.12.1",
"jsonwebtoken": "^8.5.1",
"moment": "^2.29.1",
"mongoose": "^5.13.3",
"nodemailer": "^6.6.3",
"serve-favicon": "^2.5.0",
"web3": "^1.4.0"
"chai": "^4.3.4",
"eth-gas-reporter": "^0.2.22",
"ganache-cli": "^6.12.2",
"mocha": "^8.1.2",
"prettier": "^2.3.2",
"prettier-plugin-solidity": "^1.0.0-beta.16",
"solidity-coverage": "^0.7.16",
"truffle": "^5.4.0",
"truffle-assertions": "^0.9.2"
Install & run Ganache and Metamask. Follow the instructions (section "Setting up MetaMask") for link Ganache accounts to Metamask (port 7545)
Unzip file x20132484_HDBC_SEPOL_PROJECT. Go into the folder unzipped and open a new terminal. Then, run commands below:
npm install
npx truffle compile
npx truffle migrate --network development
see testdata.txt (root)
npm run slint
npm run test
npm run coverage
Follow steps 1 & 2 before run through one of the two commands below. Make sure you're running the Ganache client & you linked the account(s) to Metamask (see installation notes).
npm run dev
npm start