Git Product home page Git Product logo

blockchain-dev-cheatsheet's Introduction

Ethereum Blockchain Developer's Cheatsheet

Motivation / Intro

I've created this repository with the sole purpose of centralizing various pieces of information that I've deemed useful while learning about blockchain development.

Tech stack

Smart contracts

I recommend working with Solidity for writing smart contracts. There are plenty of examples of smart contracts written is Solidity and the language itself is rather straight forward. The documentation is also very comprehensive and Stack Overflow will probably answer 90% of the questions about the language and its features.


Development environment

There are multiple ways to setup an environment for writing and testing Solidity smart contracts. You can even do it directly in the browser, without having to install anything on your local system.

  • Remix - in-browser IDE. You can write, deploy and interact with contracts directly from your browser, without any kind of local setup
  • Hardhat - Local environment. Developer quality of life oriented environment. Provides a local Eth network, debugging capabilities and extensibility through plugins
  • Truffle + Ganache

My personal recommendation for the dev env would be Remix for drafting some basic contracts and Hardhat for local development and deployment


Client applications

I would go for a relatively lightweight JavaScript library or framework in order to build the client facing apps that will interact with your smart contracts. Valid options:

My personal recommendation for the frontend tech choice would be either React or Next.js

JavaScript vs TypeScript - Totally go for TypeScript if you have some degree of familiarity with it or you're going for production-level quality. For hackathons or simple starting-out applications, JavaScript would be a better option because of the Ts introduces overhead and has a bigger dev-time cost.


Smart Contract - Web Client interaction

In order to read data and send transactions to your deployed contracts, you will need a way to interact with the blockchain. There are 2 popular library options designed for this:

  • ethers.js - newer, better structure, cleaner overall
  • web3.js - larger developer community, more guides

Important: As of the time of writing this document, these 2 libraries are the industry standard and the only options that I know about.

Both options are pretty well documented and offer pretty similar functionality overall.

My personal preference is ethers.js


Learning resources and Guides

I will add more stuff here over time

Important: If you're an absolute beginer, check out Nader Dabit's tutorial. It will give you a hands-on experience and overview of how things are set-up and work.

blockchain-dev-cheatsheet's People

Contributors

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