GithubHelp home page GithubHelp logo

aniketh896 / dbooks Goto Github PK

View Code? Open in Web Editor NEW
8.0 2.0 3.0 3.38 MB

dbooks is a blockchain based Decentralized EBooks marketplace. This provides an unrestricted and uncensored place for people to buy and sell ebooks. All the transactions are done using p2p network.

Home Page: https://dbooks.netlify.app/

License: MIT License

HTML 2.06% CSS 7.63% JavaScript 85.57% Solidity 4.75%
blockchain ipfs matic ethereum solidity openzeppelin react portis

dbooks's Introduction

dbooks

Netlify Status

An experimental deployed version is available here

DBOOKS

Table of Contents

About The Project

dbooks is a blockchain based Decentralized EBooks marketplace. This provides an unrestricted and uncensored place for people to buy and sell ebooks. All the transactions are done using p2p network with no central moderator or mediater, this provides the authors better margin on sales as well as allows the readers to purchase the books for cheap due to next-to-none additional charges.

Also since the whole process like the wallet creation and uploading is in-built along with Ebooks Reader, piracy can be curbed as the books cannot be downloaded externally or shared with others.

Project Structure

.
├── client                  # The create-react-app 
├── contracts               # Smart contracts
├── migrations              # Migrations of the smart contracts
├── test                    # Tests for smart contracts
├── LICENSE
└── README.md
└── truffle-config.js

Getting Started

To get a local copy up and running follow these simple steps.

Prerequisites

  • npm
npm install npm@latest -g
  • truffle
npm install truffle -g

Installation

  • Clone the repo
git clone github.com/Aniketh896/dbooks.git
  • Install NPM packages for the smart contracts
npm install
  • Install NPM packages for the react-app
cd client && npm install

Usage

The smart contracts are located in the contracts folder, deployed on matic mumbai testnet but can also be deployed on a local testnet network using truffle If you wish to run a local ganache node and test the dapp locally using a private network -

  • use truffle develop to run a local ganache node
  • run test in the truffle console
  • migrate --reset to deploy the smart contracts on the private network

The smart contracts ABI will be located in client/contracts folder for the react app to interact with

note: you will also need to import the mnemonic phrase provided by ganache local node in order to run a private test network using portis as well as send transactions from the newly imported account if you wish to run it locally

run the react app from the client folder by running :

npm start

License

Distributed under the MIT License.
You can find the license here.

Project contributors

dbooks's People

Contributors

abhishek-99ks avatar adarshxinferno avatar aniketh896 avatar theabdulmateen avatar

Stargazers

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