Giter Site home page Giter Site logo

ecabanasv / x20132484_hdbc_sepol_project Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 0.0 119.01 MB

Bike Smart Contract 0.1

License: MIT License

JavaScript 32.76% Solidity 3.48% CSS 7.56% HTML 29.39% EJS 26.82%
ganache ethereum expressjs mongodb mongoose nodejs truffle web3

x20132484_hdbc_sepol_project's Introduction

Bike Smart Contract (x20132484)

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)

Project dependencies

Dependencies

    "@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"

Development / Testing

    "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"

Installation

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:

1) Install dependencies

npm install

2) Truffle commands: compile & migrate to dev network

npx truffle compile
npx truffle migrate --network development

3) Test data commands (optional)

see testdata.txt (root)

4) Testing commands (optional)

npm run slint
npm run test
npm run coverage

How to run the project

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).

nodemon

npm run dev

node

npm start

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.