Skip to content

qige96/7CCSMDLC

Repository files navigation

ResAloc

A simple decentralized resource allocation system, with truffle-suite and vue.js.

Guide

Step 1: Install MetaMask

MetaMask is a browser extension that support both Chrome, Firefox, and other modern browsers. It is an Ethereum wallet system that provides functionalities for managing Ethereum accounts and handling transactions. This Dapp require MetaMask to make interact with Ethereum blockchain, so please first install MetaMask in your browser.

Step 2: Install Ganache

Ganache, part of Truffle suite, provides a personal blockchain environment for Ethereum development. For dev and test purpose, we use Ganache as the Ethereum network where our smart contracts will be deployed to. Just install Ganache and use the "quickstart" workspace, and then switch MetaMask network to the local Ganache network.

quickstart

Step 3: Build and setup

Go to our Github repo, download project code and install dependencies.

# download project code
git clone https://github.com/qige96/7CCSMDLC.git

# install dependencies
npm install

Setup initial accounts (only these accounts are allowed to make transactions).

setup-account

copy and past these addresses to settings.js

setup-account2

Deploy contracts and build front-end interface.

# deploy smart contracts
npx truffle migrate

# build front-end app at 127.0.0.1:8080
npm run dev

Now you can see whether you can play with the system. More docs, please refer to docs or wiki.