Coder Social home page Coder Social logo

ratul16 / coc-blockchain-vue Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 117 KB

This project focuses on addressing the growing complexity of managing data integrity and secure distribution, especially in cyber-crime investigations, as data volumes continue to surge. It aims to use blockchain technology to enhance the handling of digital evidence, ensuring its integrity and secure distribution.

JavaScript 12.37% Solidity 15.64% HTML 0.60% Vue 67.85% SCSS 3.16% Shell 0.38%
blockchain chain-of-custody dapp

coc-blockchain-vue's Introduction

Digital Chain of Custody using Blockchain

Project Overview

In the contemporary digital era, the significance of data cannot be overstated. Data permeates every aspect of people's lives, from everyday activities to critical criminal investigations. As data volumes continue to expand exponentially, effective data management becomes increasingly challenging, particularly when handling digital evidence in the context of cyber-crime investigations. This project delves into the intricacies of managing data integrity and ensuring secure distribution of digital evidence by leveraging blockchain technology.

Project Requirements

  1. Node
  2. Ganache : https://trufflesuite.com/ganache/
  3. Truffle
  4. IPFS (To easily access the uploaded files)
  5. Docker (To host a private IPFS)

Project Setup

Deploy Smart Contract

Navigate to directory /smartcontract

Change the port number to the port number of the Ganache Suite, which can found in the truffle-config.js file under development.

Run truffle migrate command

truffle migrate --reset --compile-all 

The migrate command will deploy the smart contracts to the ganache suite and will display the address of both smart contracts in the terminal.

Important Note

To run ganache network in terminal run command:

truffle console --network ganache

Create a .env file and paste in the variables from .env.local file located in directory /frontend/.env.local

Copy & paste the addresses of the smart contract to the respected environment variable in the .env file. Additionally, add a salt value which is needed for encryption.

  VITE_USER_AUTH = 
  VITE_MANAGEMENT = 
  VITE_SALT =

Host Private IPFS

Open a terminal and navigate to the directory /ipfs, where docker-compose.yml file is located. To start the services defined in the Docker Compose file, run the following command:

docker-compose up

If you want to run the services in the background (detached mode), you can use the -d option:

docker-compose up -d

Project Installation

Open terminal on directory /frontend and enter to install necessary packages.

npm install

To Compile and Hot-Reload for Development

npm run dev

Compile and Minify for Production

npm run build

Run Unit Tests with Vitest

npm run test:unit

Lint with ESLint

npm run lint

coc-blockchain-vue's People

Contributors

ratul16 avatar

Watchers

 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.