Skip to content

AbhinavRathore/blockchain-class

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Blockchain Class

This repo contains blockchain class materials.

Getting the environment

Using Docker Container

Recommended: We recommend everyone to use docker image khalibartan/testrpcenv:latest for environment.

Installing Docker

On Ubuntu
  • Go to https://download.docker.com/linux/ubuntu/dists/, choose your Ubuntu version, browse to pool/stable/ and choose amd64, armhf, ppc64el, or s390x (choose amd64 if not sure). Download the .deb file for the Docker version 17.12.0. For example here is the link to .deb file for ubuntu xenial (16.04) amd64.

  • Run following command in your shell and replace the /path/to/package.deb with path to downloaded file.

sudo dpkg -i /path/to/package.deb

On Windows

Download the .exe file from here and follow the prompts.

Others

For other operating system follow the instructions for docker community edition (Docker CE). Browse the list at here.

Configuring proxy

For confuring proxy on docker we need to add the proxy configuration in the Docker systemd service file. Instructions below are for linux distros only.

  1. Create a systemd drop-in directory for the docker service:

sudo mkdir -p /etc/systemd/system/docker.service.d

  1. Create a file /etc/systemd/system/docker.service.d/https-proxy.conf that adds HTTPS_PROXY settings

sudo touch /etc/systemd/system/docker.service.d/https-proxy.conf

  1. Enter following things in the file created in earlier step (Replace proxy server with your choice of server).
[Service]
Environment="HTTPS_PROXY=http://heed:[email protected]:3128/"

Getting the image

Once you have installed docker on your system, pull the khalibartan/testrpcenv:latest image. This image contains all the necessary node modules and other dependencies for running the app.

For pulling the docker image run the command

docker pull khalibartan/testrpcenv:latest

Note: You might need to use sudo on linux

Building Environment from scratch

If you don't want to use docker image and want to build your own env from scratch. Install following dependencies (all for nodejs)

Ubuntu

Ubuntu users can use the install.sh script to install all the packages

About

This repo contains blockchain class materials

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 57.7%
  • HTML 36.5%
  • Shell 5.8%