All Projects → llSourcell → Your_first_decentralized_application

llSourcell / Your_first_decentralized_application

This is the code for "A Guide to Building Your First Decentralized Application" by Siraj Raval on Youtube

Projects that are alternatives of or similar to Your first decentralized application

Joint Vae
Pytorch implementation of JointVAE, a framework for disentangling continuous and discrete factors of variation 🌟
Stars: ✭ 404 (-0.98%)
Mutual labels:  jupyter-notebook
Pycon 2016 Tutorial
Machine Learning with Text in scikit-learn
Stars: ✭ 405 (-0.74%)
Mutual labels:  jupyter-notebook
Pixyz
A library for developing deep generative models in a more concise, intuitive and extendable way
Stars: ✭ 407 (-0.25%)
Mutual labels:  jupyter-notebook
Skimage Tutorials
skimage-tutorials: a collection of tutorials for the scikit-image package.
Stars: ✭ 403 (-1.23%)
Mutual labels:  jupyter-notebook
Eco Efficient Video Understanding
Code and models of paper " ECO: Efficient Convolutional Network for Online Video Understanding", ECCV 2018
Stars: ✭ 406 (-0.49%)
Mutual labels:  jupyter-notebook
H2o Meetups
Presentations from H2O meetups & conferences by the H2O.ai team
Stars: ✭ 405 (-0.74%)
Mutual labels:  jupyter-notebook
Oreilly Learning Tensorflow
Stars: ✭ 404 (-0.98%)
Mutual labels:  jupyter-notebook
Cs224n Squad Project
Stars: ✭ 408 (+0%)
Mutual labels:  jupyter-notebook
Simgan Captcha
Solve captcha without manually labeling a training set
Stars: ✭ 405 (-0.74%)
Mutual labels:  jupyter-notebook
Machinelearning
Machine Learning
Stars: ✭ 406 (-0.49%)
Mutual labels:  jupyter-notebook
Ml Powered Applications
Companion repository for the book Building Machine Learning Powered Applications
Stars: ✭ 402 (-1.47%)
Mutual labels:  jupyter-notebook
Faster rcnn for open images dataset keras
Faster R-CNN for Open Images Dataset by Keras
Stars: ✭ 405 (-0.74%)
Mutual labels:  jupyter-notebook
Gif
✨ The extension for Altair, matplotlib, and Plotly animations
Stars: ✭ 406 (-0.49%)
Mutual labels:  jupyter-notebook
Mit ocw linear algebra 18 06
IPython notebooks on Gilbert Strang's MIT course on linear algebra (18.06)
Stars: ✭ 403 (-1.23%)
Mutual labels:  jupyter-notebook
Deep learning nlp
Keras, PyTorch, and NumPy Implementations of Deep Learning Architectures for NLP
Stars: ✭ 407 (-0.25%)
Mutual labels:  jupyter-notebook
Coursera Stanford Ml Python
Coursera/Stanford Machine Learning course assignments in python
Stars: ✭ 403 (-1.23%)
Mutual labels:  jupyter-notebook
Kaggle
Codes for Kaggle Competitions
Stars: ✭ 404 (-0.98%)
Mutual labels:  jupyter-notebook
Computer Vision
Programming Assignments and Lectures for Stanford's CS 231: Convolutional Neural Networks for Visual Recognition
Stars: ✭ 408 (+0%)
Mutual labels:  jupyter-notebook
Python Tutorial
python教程,包括:python基础、python进阶;常用机器学习库:numpy、scipy、sklearn、xgboost;深度学习库:keras、tensorflow、paddle、pytorch。
Stars: ✭ 407 (-0.25%)
Mutual labels:  jupyter-notebook
Xlearn
Transfer Learning Library
Stars: ✭ 406 (-0.49%)
Mutual labels:  jupyter-notebook

Your_First_Decentralized_Application

This is the code for "A Guide to Building Your First Decentralized Application" by Siraj Raval on Youtube

Overview

This is the code for this video on Youtube by Siraj Raval. It's a guide on how to build your first decentralized application.

Dependencies

Install missing dependencies with npm.

> git clone [email protected]:llSourcell/Your_First_Decentralized_Application.git
> cd Your_First_Decentralized_Application
> npm install 

Usage

After all dependancies are installed, run the testrpc service with:

node_modules/ethereumjs-testrpc/build/cli.node.js

Run the following commands to open the node console then deploy your contract to the test chain

siraj:~/hello_world_voting$ node
> Web3 = require('web3')
> web3 = new Web3(new Web3.providers.HttpProvider("http://localhost:8545"));
> code = fs.readFileSync('Voting.sol').toString()
> solc = require('solc')
> compiledCode = solc.compile(code)
> abiDefinition = JSON.parse(compiledCode.contracts[':Voting'].interface)
> VotingContract = web3.eth.contract(abiDefinition)
> byteCode = compiledCode.contracts[':Voting'].bytecode
> deployedContract = VotingContract.new(['Rama','Nick','Jose'],{data: byteCode, from: web3.eth.accounts[0], gas: 4700000})
> deployedContract.address
> contractInstance = VotingContract.at(deployedContract.address)

Interact with the contract via the html page attached, just open it in your browser. See this tutorial for more details.

Credits

The credits for this code go to maheshmurthy. I've merely created a wrapper to get people started.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].