Git Product home page Git Product logo

satya190597 / express-box Goto Github PK

View Code? Open in Web Editor NEW

This project forked from arvindkalra/express-box

0.0 1.0 0.0 349 KB

A truffle box to serve as the foundation of any Truffle and Express.js dApp. This Box Uses NodeJS(Express JS) to provide API endpoints to the Ethereum Blockchain smart contract so that this smart contract can be used in Android Apps as well.

HTML 24.09% JavaScript 55.05% CSS 4.70% Solidity 16.16%

express-box's Introduction

Express-Box

To Be Used as Truffle Box Creating API Endpoints for Ethereum Blockchain.

We use personalised blockchain for Ethereum BlockChain Development. This personalised blockchain is made in the GanacheCLI.

The Smart Contract Written in solidity language is deployed on this Ethereum Blockchain. Smart Contract is Immutable hence, once deployed it can't be changed.

A truffle box to serve as the foundation of any Truffle and Express.js dApp.

This Box Uses NodeJS(Express JS) to provide API endpoints to the Ethereum Blockchain smart contract so that this smart contract can be used in Android Apps as well.

Pre-Requisites

  1. NodeJS
  2. A Package Manager for NodeJS, such as Yarn or npm (comes pre-installed with NodeJS)
  3. GanacheCLI
  4. Truffle

Installation

  1. Install Truffle and Ganache CLI globally. If you prefer, the graphical version of Ganache works as well!
npm install -g truffle
npm install -g ganache-cli
  1. Download the box. This also takes care of installing the necessary dependencies.
truffle unbox arvindkalra/express-box

  1. Install all the node modules required by running:
// install all the node modules using npm
npm install

or if you prefer yarn

//install all the node modules using yarn
yarn install
  1. Start truffle development console using
truffle develop
  1. Inside the truffle console run compile to compile the contracts

  2. You can see that a new /build folder has been created in the root directory which contains the compiled contracts.

  3. Now these contracts need to be deployed on the Blockchain. For this, run migrate inside the truffle development console

  4. To run the Express server yarn start or npm start

  5. In the browser window open http://localhost:3000/.

Collaborators

  1. ARVIND KALRA
  2. PRANAV SINGHAL

express-box's People

Contributors

arvindkalra avatar pranav-singhal avatar onlyonejmjq avatar georgewl avatar 7flash avatar

Watchers

James Cloos 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.