Skip to content

mateus-n00b/blockchain_stuffs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 

Repository files navigation

Blockchain Stuffs

Some useful documentations that I've been reading about blockchain and smart-contracts

Solidity tutorials

Plattaforms

Installing npm, Truffle, and remix-ide

First steps

Run the following commands to install npm and nodejs

apt-get updade && \
apt-get install npm nodejs -y

Now as explained in https://stackoverflow.com/questions/30713136/strange-npm-behavior-when-installing-packages-like-grunt we have to create a symbolic link to the nodejs binary.

sudo ln -s /usr/bin/nodejs /usr/bin/node

Configuring npm environment

This step was based on https://docs.npmjs.com/getting-started/fixing-npm-permissions. To avoid permissions erros on npm you must run the following commands:

  • Back-up your computer before you start.

  • Make a directory for global installations:

 mkdir ~/.npm-global
  • Configure npm to use the new directory path:
npm config set prefix '~/.npm-global'
  • Open or create a ~/.profile file and add this line:
export PATH=~/.npm-global/bin:$PATH
  • Back on the command line, update your system variables:
source ~/.profile
  • Test: Download a package globally without using sudo.

In case of versioning erros, follow this tutorial https://stackoverflow.com/questions/8191459/how-do-i-update-node-js

Installing remix-ide and Truffle

Simple!!! Just execute:

npm install truffle -g
npm install remix-ide -g

Your first Dapp

Interacting with your contracts

Installing Web3.js API

npm i web3

In case of erros such like: github.com[0: 192.30.253.113]: errno=Conexão recusada

See: https://stackoverflow.com/questions/1722807/how-to-convert-git-urls-to-http-urls

Some interesting discussion topics

Web3 APIs

END

About

Some docs for blockchain+smart-contracs study

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published