npm install
./bin/build.js
Build contract./bin/startup.sh
startup node web server
- basic config for default values in
./config/config.json
{
"networks": {
"5777": {
"server": "http://localhost",
"port": "8545", //Not required
"donatee": "0xADDRESS" //Donation receiver
}
},
"default_network": "5777", //Mainly for testing
"web_port": "9090" //Website port
}
Install the GUI app http://truffleframework.com/ganache/. When the app is started...
- Settings > Server > Port Number. Set this to
8545
or whatever you have set in theconfig.json
. You'll only need to do this once. - Make sure you are automining
- Within the app it's going to give you a number of accounts with tons of ETH. Import one of these into metamask via the private key.
- If you ever restart Ganache. Under settings in metamask. Click
Reset Account
. Nothing will work without this.
./bin/build.js
. Contract address will be outputed. View ganache block explorer to ensure it happened.
./bin/startup.sh
ornode ./src/App.js
.- http://localhost:9090 will be default on
config.json
- As it will stated in design. If you change the server
/templates/
rerun the server.
- change your node to
http://localhost:8545
. - There is bug within metamask. If you change your node, you will need restart the browser or you will not receive websocket events from 8545.
/templates/
these are pre built from./src/App.js
.main.html
is the index. It's needed to load the current contract address. See scripts inmain.html
for the reasoning. If you have changed one of these templates, rerun the server to see changes./web/templates/
frontend templates- To get a notes in design run
node ./utils/create-note.js
ornode ./utils/create-mass-notes.js
Run
npm install -g mocha
mocha
- Midi download fix, problem exists in abcjs for linux
- Composer name add. might need external DB, but really don't want to do that