Coder Social home page Coder Social logo

eavelasquez / learning-blockchain Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 150 KB

This is a project to learn about blockchain technology and how it can be used to create a blockchain.

JavaScript 98.79% Shell 1.21%
babel blockchain cryptojs javascript nodejs shell websocket yarn elliptic express

learning-blockchain's Introduction

Learn Blockchain

This is a project to learn about blockchain technology and how it can be used to create a blockchain.

What is a blockchain?

Blockchain is a series of records, called blocks, stored in a public ledger. Each block contains a cryptographic hash of the previous block, a timestamp, and transaction data.

Development

To clone and setup the project, run the following command:

$ git clone https://github.com/eavelasquez/learn-blockchain.git
$ cd learn-blockchain
$ yarn install

To run the project, run the following command:

$ yarn start:instance 1 # Starts a server instances on port 3000 and 5000 (default)
$ yarn start:instance 2 # Starts a server instances on port 3001 and 5001

To test the project, run the following command:

$ yarn test

Next Steps

  1. Add a new endpoints /wallet
  2. Add a new endpoint /wallet/create
  3. Add a new endpoint /wallet/:address/balance
  4. Add a new endpoint /wallet/:address/transactions
  5. Include a fee in the transaction.
    NOTE: The fee is the amount of coins that are sent to the miner as a reward.
  6. A client application that can create, send, and receive coins, etc.
  7. Improve the mining logic so that it selects a maximum number of transactions according to the fees.

learning-blockchain's People

Contributors

eavelasquez avatar

Stargazers

 avatar

Watchers

 avatar  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.