Watch
1
0
Fork
You've already forked moodshare
0
mirror of https://github.com/rheaplex/moodshare.git synced 2026-09-16 16:42:08 +00:00
No description
  • JavaScript 85%
  • Solidity 13.6%
  • HTML 1.4%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2018-08-26 18:14:15 -07:00
build/contracts Version for evaluation. 2018-08-26 18:14:15 -07:00
build_webpack Version for evaluation. 2018-08-26 18:14:15 -07:00
config Version for evaluation. 2018-08-26 18:14:15 -07:00
contracts Version for evaluation. 2018-08-26 18:14:15 -07:00
migrations Version for evaluation. 2018-08-26 18:14:15 -07:00
node_modules Version for evaluation. 2018-08-26 18:14:15 -07:00
public Version for evaluation. 2018-08-26 18:14:15 -07:00
scripts Version for evaluation. 2018-08-26 18:14:15 -07:00
src Version for evaluation. 2018-08-26 18:14:15 -07:00
test Version for evaluation. 2018-08-26 18:14:15 -07:00
.gitignore Version for evaluation. 2018-08-26 18:14:15 -07:00
avoiding_common_attacks.md Version for evaluation. 2018-08-26 18:14:15 -07:00
design_pattern_decisions.md Version for evaluation. 2018-08-26 18:14:15 -07:00
package-lock.json Version for evaluation. 2018-08-26 18:14:15 -07:00
package.json Version for evaluation. 2018-08-26 18:14:15 -07:00
README.md Version for evaluation. 2018-08-26 18:14:15 -07:00
truffle-config.js Version for evaluation. 2018-08-26 18:14:15 -07:00
truffle.js Version for evaluation. 2018-08-26 18:14:15 -07:00

What Does It Do?

MoodShare is a blockchain mood tracking DApp.

Users can record how they are feeling (from very sad to very happy) and track their mood over time.

How To Set It Up

Make sure you have truffle, npm and a modern web browser with MetaMask installed.

In the terminal:

npm install

How To Run A Local Development Server

You will need two terminals.

In the first terminal:

$ truffle develop
> migrate

If you get the following error message:

Error: Attempting to run transaction which calls a contract function...

Then enter this command in the second terminal before trying to migrate again:

rm build/contracts/*

Then in the second terminal:

npm start

If this does not open the project in the web browser, open the following url:

[http://localhost:3000/]

Testing Features not exposed via the UI

To persorm an emergency stop, enter the following command in the truffle develop console:

> MoodShare.deployed().then(instance => instance.pause())

To reverse the emergency stop, enter this command instead:

> MoodShare.deployed().then(instance => instance.unpause())

Adding and removing moods can be performed in the truffle develop console as well. It is recommended to avoid these while testing other features.