Skip to content

fredysomy/Block-chain-code

Repository files navigation

Block chain programs

Notes https://github.com/annu12340/Block-chain-code/blob/master/.NOTES.md


  • Day 1: Simply display the content of a function in a smart contract in a web page

    Day 1.5 : Better explaination of day 1 ('App' calls function in js and 'instance' calls function in solidity)

  • Day 2: Buttons

       - Display content of a function in a smart contract when btn is clicked
       - Counter with increment and decrement btns
       - Calculator (with +,-,\*,/ options)
    
  • Day 3: Arrays

       - Array of structs
       - Arrays (advanced)
       - Todo list using arrays
       - Crud model
    
  • Day 4: Mapping

       - Simple Mapping
       - Mapping of structs ppl
    
  • Day 5: Conditional stmts

  • Day 6: Payable

  • Miscellaneous

       - Fibonacci series
       - Simple Bank example
       - Hotel room example
       - Voting
    

Work flow

  1. Use the truffle unbox pet-shop as the template
  2. Write the contract in the remix ide
  3. Once, it is successfully runned, write this code inside the /Contracts folder (.sol as extension).
  4. Inside the /Migrations folder, write the migration code (.js as extension)

truffle compile truffle migrate --reset With this the bc part would be over

  1. Inside the /src folder, edit the index.html and js/app.js folder, to create the front end
  2. Open the ganache network and connect it with metamask
  3. Run the npm run dev cmd to run the project

Other projects

  1. Airbnb : https://github.com/annu12340/ethindia-workshop/tree/complete-dapp

  2. Voting system : https://github.com/annu12340/Dapp-voting-system

  3. Pete's pet shop : https://github.com/annu12340/Pete-s-shop

  4. To do list : https://github.com/dappuniversity/eth-todo-list (good one)

  5. Building an escrow https://github.com/blockgeeks/eth101/blob/master/escrow%20contract/escrow.sol (good one)

  6. Conference : https://github.com/eshon/conference

    (explanation : https://medium.com%2F@medium.com/@ConsenSys/a-101-noob-intro-to-programming-smart-contracts-on-ethereum-695d15c1dab4#.5b1uv8cqv)
    
  7. A collection of projects : https://github.com/nurASingh/block_chain/tree/master/contracts

Solidity official doc : https://solidity.readthedocs.io/en/v0.5.3/solidity-by-example.html

   - Voting    - Simple Open Auction        - Safe Remote Purchase

References

  1. dapp university : https://github.com/jklepatch/eattheblocks/tree/master/dapp-30
  2. blockgeeks : https://www.youtube.com/channel/UCd8CDrm6rvwBZc6g7BYAkfQ
  3. CodeXpert : https://www.youtube.com/channel/UCb3Rrg2t4PZ59Sna497DUZA
  4. GH : https://github.com/mattlockyer/cryptobnb

Further reference

  1. Awesome Blockchain AI : https://github.com/steven2358/awesome-blockchain-ai

About

Repo with beginner friendly blockchain code

Resources

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages