Repo created for bounty participation @ Employee Check-In Check-Out Smart Contract

sh.onu872 520cc4be99 Initial commit 11 months ago
contracts 520cc4be99 Initial commit 11 months ago
migrations 520cc4be99 Initial commit 11 months ago
Readme.md 520cc4be99 Initial commit 11 months ago
client.js 520cc4be99 Initial commit 11 months ago
modex.ini 520cc4be99 Initial commit 11 months ago
oracle.js 520cc4be99 Initial commit 11 months ago
package-lock.json 520cc4be99 Initial commit 11 months ago
package.json 520cc4be99 Initial commit 11 months ago
run.sh 520cc4be99 Initial commit 11 months ago
truffle-config.js 520cc4be99 Initial commit 11 months ago
truffle.js 520cc4be99 Initial commit 11 months ago

Readme.md

Employee Check-In Check-Out Smart Contract

The smart contract works to keep cronological record of employees in an integrated registry with check-in check-out operations and barcode code generator.

Hi, this is a boilerplate project with a demo app inside it that fetches trough an oracle the exchange rate between the RON and USD, it's made to help you understand how you could bring external data into the blockchain.

Inside you will find a truffle project and a modex.ini file that will help analyze the code that you are writing

Installation

Install truffle and the ethereumjs-testrpc:

npm install -g truffle ethereumjs-testrpc

Install the dependencies required:

npm install

Development setup

Start the test net:

testrpc

Compile the project:

truffle compile

Migrate the oracle:

truffle migrate

Start the oracle:

node oracle.js

Run the client(in this case you would want to start more than one instance)

node client.js

Release History

  • 0.0.1
    • Initial commit

Contributing or working in teams

  1. Fork it (https://github.com/yourname/yourproject/fork)
  2. Create your feature branch (git checkout -b feature/fooBar)
  3. Commit your changes (git commit -am 'Add some fooBar')
  4. Push to the branch (git push origin feature/fooBar)
  5. Create a new Pull Request