GithubHelp home page GithubHelp logo

pacyl2k19 / decentralized-wikipedia Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ghivert/decentralized-wikipedia

1.0 0.0 0.0 468 KB

Decentralized Wikipedia as learning project.

License: MIT License

JavaScript 68.73% CSS 6.66% HTML 15.63% Solidity 8.99%

decentralized-wikipedia's Introduction

Decentralized Wikipedia

Welcome to the DAAR project. The idea will be to implement a complete Wikipedia in a decentralized way, on Ethereum. This will have cool side effects, like not be forced to pay for servers.

Installation

# With HTTPS
git clone https://github.com/ghivert/decentralized-wikipedia.git
# Or with SSH
git clone [email protected]:ghivert/decentralized-wikipedia.git

You’ll need to install dependencies. You’ll need Ganache, Node.js and NPM or Yarn. You’ll need to install Metamask as well to communicate with your blockchain.

  • Ganache is a local blockchain development, to iterate quickly and avoiding wasting Ether during development.
  • Node.js is used to build the frontend and running truffle, which is a utility to deploy contracts.
  • NPM or Yarn is a package manager, to install dependencies for your frontend development. Yarn is recommended.
  • Metamask is a in-browser utility to interact with decentralized applications.

Some setup

Once everything is installed, launch Ganache. Create a new workspace, give it a name, and accept. You should have a local blockchain running in local. Now you can copy the mnemonic phrase Ganache generated, open Metamask, and when it asks to import a mnemonic, paste the mnemonic. Create the password of your choice and that’s fine. Now you can connect Metamask to the blockchain. To do this, add a network by clicking on main network and personalized RPC. Here, you should be able to add a network.

Ganache Config

Once you have done it, you’re connected to the Ganache blockchain!

Run the frontend

Install the dependencies.

# Yarn users
yarn
# NPM users
npm install

Compile the contracts.

# Yarn users
yarn contracts:build
# NPM users
npm run contracts:build

Create a symlink for your OS.

# Windows
mklink /D src\build "..\build"
move /Y truffle.js truffle-config.js

# Unix and macOS
ln -s ../build ./src/build

Run the frontend

# Yarn users
yarn start
# NPM users
npm start

You’re good to go!

Subject

Implement a Wikipedia from scratch in Solidity.

The program should be able to:

  • Read an article by its ID (an uint).
  • Someone should be able to submit a new article with ID and content.
  • Someone should be able to update an article.

Bonus:

  • Keep history of modifications and display it in the app.
  • Integrate the DApp with Fortmatic.

decentralized-wikipedia's People

Contributors

ghivert avatar

Stargazers

Pacifique LINJANJA 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.