All Projects → PruthviKumarBK → Decentralized_eCom

PruthviKumarBK / Decentralized_eCom

Licence: MIT License
A decentralized e-commerce platform! Tech Stack: Ethereum (Solidity) on the backend, Web3 binding to ReactJS frontend!

Programming Languages

javascript
184084 projects - #8 most used programming language
solidity
1140 projects
HTML
75241 projects
CSS
56736 projects

Projects that are alternatives of or similar to Decentralized eCom

Awesome Solidity
⟠ A curated list of awesome Solidity resources, libraries, tools and more
Stars: ✭ 3,078 (+3653.66%)
Mutual labels:  solidity-contracts, solidity-dapps, web3-dapp, web3-solidity
awesome-solidity-gas-optimization
Best resources for Solidity gas optimizations ⛽
Stars: ✭ 893 (+989.02%)
Mutual labels:  solidity-contracts, ethereum-blockchain, solidity-dapps, web3-dapp
oracles-contract
New version of POA Network consensus contracts is here: https://github.com/poanetwork/poa-network-consensus-contracts
Stars: ✭ 25 (-69.51%)
Mutual labels:  ethereum-dapp, solidity-contracts, solidity-dapps
Seriality
Seriality is a library for serializing and de-serializing all the Solidity types in a very efficient way which mostly written in solidity-assembly
Stars: ✭ 105 (+28.05%)
Mutual labels:  ethereum-dapp, solidity-contracts, ethereum-blockchain
open-api
api.openfuture.io
Stars: ✭ 41 (-50%)
Mutual labels:  ethereum-dapp, solidity-contracts, blockchain-service
fund-protocol
A blockchain protocol for tokenized hedge funds
Stars: ✭ 85 (+3.66%)
Mutual labels:  solidity-contracts, ethereum-blockchain
E-Voting-App
A simple E-voting Decentralised App using the Ethereum Blockchain, Solidity and the MERN(MongoDB, Express.js, ReactJS, Node.js) stack
Stars: ✭ 84 (+2.44%)
Mutual labels:  ethereum-dapp, solidity-contracts
defiprime
All things #DeFi - trustless and transparent financial products built on top of the blockchain.
Stars: ✭ 117 (+42.68%)
Mutual labels:  ethereum-dapp, ethereum-blockchain
web3-starter
An opinionated web3 starter for building dApps
Stars: ✭ 67 (-18.29%)
Mutual labels:  solidity-contracts, solidity-dapps
Aragon Apps
(Aragon 1) Aragon apps developed by Aragon Core Devs (smart contracts + webapps)
Stars: ✭ 278 (+239.02%)
Mutual labels:  ethereum-dapp, solidity-contracts
react-native-defi-app
React Native Defi Decentralized Applications(dApps)
Stars: ✭ 31 (-62.2%)
Mutual labels:  ethereum-dapp, ethereum-blockchain
solidity-contracts
📦 Resources for the Ethereum Smart Contract Development tutorial series.
Stars: ✭ 64 (-21.95%)
Mutual labels:  ethereum-dapp, solidity-contracts
Disperse
React/Redux dApp (decentralized app) boilerplate using Ethereum's blockchain
Stars: ✭ 36 (-56.1%)
Mutual labels:  ethereum-dapp, ethereum-blockchain
ehr-blockchain
Electronic Health Record (EHR) and Electronic Medical Record (EMR) systems. However, they still face some issues regarding the security of medical records, user ownership of data, data integrity etc. The solution to these issues could be the use of a novel technology, i.e., Blockchain. This technology offers to provide a secure, temper-proof pl…
Stars: ✭ 41 (-50%)
Mutual labels:  ethereum-dapp, ethereum-blockchain
React Ethereum Dapp Example
A starter boilerplate for an Ethereum dapp using web3.js v1.0, truffle, react, and parity
Stars: ✭ 384 (+368.29%)
Mutual labels:  ethereum-dapp, ethereum-blockchain
vue-web3
🐙 Web3 blockchain bindings for Vue.js (inspired by Vuefire and Drizzle)
Stars: ✭ 63 (-23.17%)
Mutual labels:  ethereum-dapp, ethereum-blockchain
dexpay-pos
Dexpay: POS, a modularized and extensible point of sale which enables Merchants to accept payments in ETH, DAI and xDAI.
Stars: ✭ 24 (-70.73%)
Mutual labels:  ethereum-dapp, solidity-contracts
web3scala
Scala library for integration with Ethereum clients
Stars: ✭ 24 (-70.73%)
Mutual labels:  ethereum-dapp, ethereum-blockchain
ethereum-dapp-ipfs-node.js-mongodb
以太坊开发DApp实战教程——用区块链、星际文件系统(IPFS)、Node.js和MongoDB来构建电商平台
Stars: ✭ 46 (-43.9%)
Mutual labels:  ethereum-dapp, ethereum-blockchain
contracts
Contracts for FundRequest (platform, token, crowdsale)
Stars: ✭ 56 (-31.71%)
Mutual labels:  ethereum-dapp, solidity-contracts

Decentralized E-Commerce using ETHEReact!

alt text

Description

ETHEReact is a full stack DApp; demonstrating e-commerce capabilities without any database powering the backend but the EVM standing tall! This is not a product in iteself but an idea for aspiring blockchain enthusiasts to uncover the potential; end-to-end!

  • This app is comprised of Truffle powered testrpc (which is also called ganache) facilitating local development.
  • Web3 bridges Ethereum to ReactJS!

Setup

  • Install latest version of NodeJS
  • Install truffle globally using npm install -g truffle
  • Install Ethereum RPC globally using npm install -g ethereumjs-testrpc
  • Clone this Repo using git clone https://github.com/PruthviKumarBK/Decentralized_eCom.git
  • cd Decentralized_eCom
  • Open a terminal/cmd and navigate to current working directory and cd into 'backend'. cd backend, instantiate testrpc server using testrpc -l 9000000000 -p 8484. ('-l' indicates available gas limit for the network. In test networks, this is at developer's discretion. '-p' indicate the port). You should now have Ethereum running on your local development machine. Leave that running!
  • Open another terminal/cmd and navigate to current working directory and again, cd into 'backend'. cd backend. You will now need to compile solidity contracts, migrate them to your Ethereum Server before front end is started.

    • truffle compile (On Windows 10, truffle.cmd compile)
    • truffle migrate (On Windows 10, truffle.cmd migrate)
    • truffle console (On Windows 10, truffle.cmd console)
      • Within console, we need the address (SHA256) address of 'Supplier.sol' & 'Customer.Sol' solidity contracts.
      • We can get that using Supplier.address
        • Copy the SHA256 string safely. We will need this later. [TAG - Supplier SHA256]
      • Get Customer contract address using Customer.address
        • Copy the SHA256 safely, We will need this later. [TAG - Customer SHA256]
  • Now, lets get the front end functional!

  • Open the file named 'EthereumSetup.js' (Decentralized_eCom/frontend/src/EthereumSetup.js)

    • Copy SupplierAddress from [TAG - Supplier SHA256] step to line number 13. (let supplierAddress = '<YOUR SHA256 Address for Supplier Contract>')
    • Copy CustomerAddress from [TAG - Customer SHA256] step to line number 14. (`let customerAddress = '').
    • Save file EthereumSetup.js
  • Open a new terminal/cmd and navigate to current working directory and cd into 'frontend'. cd frontend

  • npm install

  • npm start to bring the front end to life!

THATS IT! Welcome to e-commerce on a decentralized platform! The UI is pretty bare bone. But, nonetheless, it demonstrates a full swing of capabilities from Supplier adding a product to market place -> Customer making a purchase -> Supplier Shipping the order -> Customer acknowledging the delivery! All of this on a BLOCKCHAIN! Pretty exciting!

I would love to learn what you build from here with the foundation in place. Please keep me posted @ [email protected]. I would be happy to support/guide wherever required.

CREDITS

Pruthvi Kumar - @PruthviKumarBK

LICENCE

MIT License

Copyright (c) 2018 Pruthvi Kumar

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].