Giter Site home page Giter Site logo

karansoren21 / blockchain_attendance_management_system Goto Github PK

View Code? Open in Web Editor NEW
4.0 1.0 0.0 29 KB

This is a mini project on blockchain technology. This project is built with a simple web application on Attendance Management System, where the administrator can add students' attendance, name, and ID and view their details. While adding the student's details, the administrator has to spend some gas fees under the Ropsten test network. Metamask is one of the software wallets which is used in this mini project.

HTML 75.26% CSS 7.75% Solidity 16.99%

blockchain_attendance_management_system's Introduction

Attendance Management System on Blockchain Technologies

It is a mini-project on blockchain technology. I have built up this project with a simple web application in the attendance management system where the administrator can add attendance, names, and student IDs and view their data. When inserting students' details, the admin has to spend some money on gas on the Ropsten test network. Metamask is one of the software wallets used in this mini project. For test purpose, I have used test ether for free of cost.

Smart Contracts in Solidity programming language

Smart contracts are computer programs which used to execute the code. For executing smart contracts, we need some gas fees in the form of ether. That means ether is the currency used in the ethereum. To write these smart contracts, we need some language called Solidity.

Importance of gas

The fee, or pricing value, required to successfully conduct a transaction or execute a contract on the ethereum. The smart contract contains code so in order to execute a particularly, we need to do some computation. So, the miners will do the computation. In order to do the computation, miners needs some rewards that in a form of gas.

Why Gas exist?

The price of the ether is flexible, So we have wriiten a smart contract and deployed it. Suppose, one ether need to execute the transaction. And after sometime price can be varied and we have to pay for different amount to execute the smart contract. To avoid this we need gas fee. With that gas fee, we can execute our smart contract at any time in the same amount.

Ethereum

It is a platform for Decentrailised apps (DApps). It connects people directly without a third party.

How to setup metamask wallet in your browser

To transact some ether, we need some wallets such as metamask wallet.

  • Go chrome extension (possible on any browser extension) and add metamask`
  • Click on create a wallet.
  • Click on I agree under Help Us Improve Metamask
  • Then, Create a password.
  • Then, note down the Secret Backup Phrase.
  • Next, select each phrase in order to make sure it is correct which is already noted down. Then, click on Confirm
  • All done

For collecting ether under test network

For this mini-project, I have collected some ether under ropsten test network from the following sites.

  • https://faucet.ropsten.be/
  • https://faucet.dimensions.network/

How to deploy smart contracts under ethereum remix?

1.Ethereum Remix

  • go to https://remix.ethereum.org/
  • Click on new file.
  • Write code for smart contracts in solidity programming language. For the learning purpose, you can also copy the code from my Solidity program and paste it into the Ethereum remix platform.
  1. Solidity Compiler
  • Click on solidity compiler
  • Click on compile file_name.sol
  1. Deploy & Transaction
  • Click on Deploy & Transactions
  • Change the Enviornment to Injected Web3. It ask to enter the metamask wallet password.
  • Click on Deploy. It ask to pay some gas fee from your metamask wallet. Then, there are three options available -> Reject, Edit, and Confirm. Click on Confirm
  1. After transaction successfully, note down ABI and address of the smart contract which is just deployed by you.
  • ABI - Under the Ethereum remix -> go to the Solidity Compiler -> Scroll Down -> Copy ABI.
  • Address - Open on Metamask Wallet -> View on Etherscan -> Find the contract that you have deployed -> Click onto TransactionHex -> Copy the address of contract

Integration with web page.

  1. You can copy my HTML code. All you need to do is replace my deployed ABI and contract address with your deployed ABI and contract address.
  2. Host the server using python -> $ python -m http.server 80
  3. Open any browser -> Type in the URL -> localhost:80 -> Press Enter

Output of this project

Animation1

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.