Code Monkey home page Code Monkey logo

smart-audit-system's Introduction

smart-audit-system

Audit System built on Ethereum Blockchain using web3, truffle and javascript.

The industrial revolution advanced the growth of new companies and paved the way for the development of the industrial sector. Today each of the firm requires audit to be done on a yearly or quaterly basis for ensuring the smooth flow of activities within the organization. Blockchain is considered as the second biggest invention after the internet. This technology has changed the way business is performed. The principle feature of blockchain is removal of third party authorities. We have exploited this feature of blockchain to create a decentralized platform for audit which will help in preventing the various scams and frauds. This will lead to the overall development and growth of our nation.

Note: This application is in development phase. This repo contains the basic modules that the application will contain. More modules can be added as per requirement.

The basic applicaton consists of 3 modules:

  • User Signup and Signin
  • Uploading Documents (balance sheets uploaded by organisations to be audited)
  • Voting Panel (used by CA to approve/disapprove transaction records of organisations)

Prerequisites before using the application:

  • Browser- Any modern browser will work just as fine.
  • Metamask- Download and install metamask as a plugin on your browser.
  • Truffle - Download and install truffle framework on your system.
  • Ganache- Download and install Ganache on your system.
  • Nodejs - Download and install Nodejs and NPM on your system.
  • IPFS - Download and install IPFS on your system.

How to use

  1. Clone the repo by typing the following: git clone https://github.com/Sangatdas/smart-audit-system

  2. Start Ganache application.

  3. Open Metamask and and click on the arrow on left-upper corner. Select custom RPC among the options.

  4. In the New RPC URL field type- http://127.0.0.1:7545. Then click on save.

  5. Open Ganache and copy the seed words present on the top.

  6. Now open Metamask and select restore from seed words. Paste the seed words copied in the above step. Enter your password and then login.

  7. Now open the terminal in the folder that you have extracted after cloning the repo. Type the following: npm install See this [page] if there are any build issues. If not then we can move forward.

  8. Initialise local IPFS repository:

ipfs init
ipfs config --json API.HTTPHeaders.Access-Control-Allow-Origin "[\"*\"]"
ipfs config --json API.HTTPHeaders.Access-Control-Allow-Credentials "[\"true\"]"
ipfs daemon

Note: No other application should be running on port 8080 else IPFS won't start.

  1. Now your local IPFS is up and running and hosted on port 8080. Now in another terminal at the same location type the following:
truffle migrate --reset
npm run dev

Your application is up and running on port 8081(most probably).

  1. Now you can use the application. It contains of 3 pages.
    • index.html
    • client.html
    • accountant.html

Type the respective page name after the / in the browser to use that page. you can switch between accounts using metamask. Although you have to import all accounts from Ganache using their private key. Refer Metamask official page and Ganache to learn how to do that.

For usage details and demonstration watch the video

Contributors

smart-audit-system's People

Contributors

roninx991 avatar

Watchers

James Cloos 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.