GithubHelp home page GithubHelp logo

pankeshpatel / shmart Goto Github PK

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

This repository contains code for Smart Health Marketplace using Ethereum blockchain

JavaScript 100.00%
blockchain ethereum javascript reactjs solidity solidity-contracts solidity-web web3 web3js

shmart's Introduction

SHMART - Smart Health Monitoring Analysis & Remediation Tracking

This repository contains code for SHMART Marketplace using Ethereum blockchain.

How to run this project

  • Open the root directory of this project in terminal. In our case, the root directory is Shmart. We have tested this code on Windows.
  • Type npm run dev or node server.js in terminal.

Directory structure

  • Ethereum directory contains Ethereum related code. The Ethereum directory contains two directories build, contracts and files. We provide the details as follows:

    • Contract directory contain contract files. It contains .sol files.
    • Build directory contains compiled contracts.
    • Files
      • compile.js file compiles the smart contracts. The compiled contracts are generated into Build directory. We compile each contract separately. Therefore, the file name convention is compile-<contract-name>.js file responsible to compile <contract-name> contract.
      • deploy.js file deploys smart contracts on Rinkby Test Blockchain network.
      • web.js file configure web3 with a metamask provider.
      • factory.js tells the web3 that a deployed copy of the contract exists.
  • test directory contains files to test the compiled contracts. The file name convention is <contract-name>.test.js. The contracts are tested on local network -- Ganache.

  • .next directory is automatically created by the project.

  • pages directory contains react components that get turned into a webpages. E.g., localhost:3000/<react-page-name.js>, localhost:3000/<folder-name>/<react-page-name.js>

    • If the file name is index.js, the react will assume it for the landing page of the project.
    • new.js handles user registeration.
  • components directory contains the code files for common UI components, such as Layout, Header and so on.

  • routes.js file defines the routes of our application.

  • server.js file boot up the application and tells the application to use routes.js

  • package.json lists the dependencies required for this project

shmart's People

Contributors

pankeshpatel avatar

Watchers

 avatar  avatar

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.