A starting point for decentralized MeteorJS applications. Includes Ethereum.js, iron-router, Official Semantic UI Integration for Meteor, Font Awesome, LESS and more.
** Modification Based off of SilentCicero's which is based on Differential's meteor-boilerplate and Ethereum's meteor-dapp-wallet. Please note that this boilerplate is still in Alpha.
- Alpha
- Included Packages
- Installation
- Deployment
- File Structure
- Official Semantic UI and Less
- Favicons and Touch Icons
- Private Network
- Unit Testing
- License
-
Collections:
-
Router:
-
[Theming and style]
-
Numbers:
-
Language:
-
Unit Testing:
-
Misc:
Clone this repo
$ git clone gitUrl ***
Create an account with geth (create a passphrase):
$ geth account new
Start a local geth node instace (then hit 'enter' to promt passphrase input):
$ geth --rpc --rpcaddr="0.0.0.0" --rpccorsdomain="*" --mine --unlock=0 --verbosity=5 --maxpeers=0 --minerthreads="4"
Start the app using Meteor
$ cd meteor-dapp-boilerplate-semanticUI/app
$ meteor
This file structure is largley modification of SilentCicero's boilerplate which in turn is based on Differentials boilerplate, but with client-only directories. Client-only files are stored in the client
directory. The public
directory is for publicly accessible assets such as images and fonts. The i18n
directory is for language files.
Since flemay:less-autoprefixer compiles LESS files you don't need any other less package.
please see Semantic-UI-Meteor docummentatio for file structure and other important directions
Upload your image to http://realfavicongenerator.net/ and place the resulting images in public/images/favicons
If you would like to test your dApp with a local private Ethereum node, a test-genesis.json
file is provided in the app
folder. This is an example command line to run your own private network:
$ geth --rpc --rpccorsdomain "*" --genesis test-genesis.json --networkid 1234 --mine --unlock 0
All tests are stored in the app/tests
directory. By default the Mocha testing framework is not installed, but some example tests are provided with this boilerplate. In order to activate Mocha/Velocity you must edit app/.meteor/packages
and uncomment #mike:mocha
to mike:mocha
. A testing button will appear on the top right hand corner of your dApp. Remember to remove the mocha package for deployment and production.
Add Mocha/Velocity
$ meteor add mike:mocha
Remove Mocha/Velocity
$ meteor remove mike:mocha
Please refer to this page for more on unit testing in Meteor: https://velocity.readme.io/
Released under the MIT License, see LICENSE file.