Git Product home page Git Product logo

blockchain_9gag's Introduction

Blockchain 9gag

This is the repository for the project "blockchain 9gag".

Installation

  • First, you have to install Docker on your machine if it is not already.
  • Run:
sudo docker build -t blockchain_9gag ~/blockchain_9gag

(replace ~/blockchain_9gag with the directory where you cloned the repository)

Running a new Docker Container

  • Simply run the following command to create a new container:
sudo docker run -p 80:80 -p 1234:1234 -it blockchain_9gag
  • If you want to create a container in detached mode, run:
sudo docker run -p 80:80 -p 1234:1234 -dit blockchain_9gag
  • To join a detached container, get its ID by running:
sudo docker ps

Then run:

sudo docker attach [ID]
  • To quit a container, press Ctrl+P and Ctrl+Q. To quit and remove a container, press Ctrl+D.

Delete the local Docker repo

  • Run the following command to delete the build image:
sudo docker rmi blockchain_9gag

If the following error occur : (Error response from daemon: conflict: unable to remove repository reference "blockchain_9gag" (must force) - container [xxxxxxxxxxxx] is using its referenced image yyyyyyyyyyyy), remove your running containers (this action cannot be undone!):

sudo docker rm xxxxxxxxxxxx
  • Clean old build images :
sudo docker system prune

Utilisation de l'interface web

  • Lancez un conteneur docker pour démarrer votre propre noeud sur la blockchain.
  • L'interface web est accessible sur localhost.
  • Pour créer une nouvelle chaîne, utilisez le menu déroulant Chain et sélectionnez Create chain. Pour rejoindre une chaîne existante, sélectionnez Connect.
  • Une fois connecté à une chaîne, il devient possible de poster du contenu et de voir celui des autres directement sur la page d'accueil.
  • Le menu déroulant Group permet de gérer les groupes et les posts de groupes. Un post de groupe est un post chiffré sur la blockchain déchiffrable uniquement par les membres dudit groupe. Pour créer un groupe, utilisez l'option Create. Pour rejoindre un groupe avec l'option Join, il faut au préalable avoir été invité par un membre du groupe avec l'option Invite. Il devient ensuite possible de faire des posts de groupes chiffrés via l'option Post du menu déroulant Groups.

Installer la VM Ethereum dans un conteneur Docker

docker pull trufflesuite/ganache-cli
  • Lancer le conteneur
docker run -it trufflesuite/ganache-cli --hostname <IP>

Run avec Ethereum

  • Attention ! il faut que les arguments soient passé avant le nom de l'image. Après le nom de l'image c'est pour lancer un programme au lancement du contener.
docker run -it -e "Eth=<Ip>:<Port>" my_image

blockchain_9gag's People

Contributors

ghost58400 avatar liiven avatar energie1337 avatar kallas95 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.