COCOSBCX witness node voting award system
COCOSBCX witness node voting award system is aimed to help the witness node operator to award the voting community users.
- One click to deployment for the voting award smart contract
- Automatically subscribe & scrape user voting operations
- Automatically upload voting operations to smart contract
- Transparent cocos awarding pool distribution triggered by smart contract
This application is mainly split into two layers, the application layer and the smart contract layer:
This application uses a number of open source projects to work properly:
- [node.js] - evented I/O for the backend
Dillinger requires Node.js v4+ to run.
Install the dependencies and devDependencies and start the server.
$ cd cocosbcx-witnode-vote-award
$ npm install -d
$ node app
For production environments...
$ npm install --production
$ NODE_ENV=production node app
Dillinger is currently extended with the following plugins. Instructions on how to use them in your own application are linked below.
Plugin | README |
---|---|
Dropbox | [plugins/dropbox/README.md][PlDb] |
GitHub | [plugins/github/README.md][PlGh] |
Medium | [plugins/medium/README.md][PlMe] |
Google Analytics | [plugins/googleanalytics/README.md][PlGa] |
Want to contribute? Great!
Dillinger uses Gulp + Webpack for fast developing. Make a change in your file and instantaneously see your updates!
Open your favorite Terminal and run these commands.
First Tab:
$ node app
Second Tab:
$ gulp watch
(optional) Third:
$ karma test
For production release:
$ gulp build --prod
Generating pre-built zip archives for distribution:
$ gulp build dist --prod
Dillinger is very easy to install and deploy in a Docker container.
By default, the Docker will expose port 8080, so change this within the Dockerfile if necessary. When ready, simply use the Dockerfile to build the image.
cd dillinger
docker build -t {youruser}/cocosbcx-witnode-vote-award:${package.json.version} .
This will create the cocosbcx-witnode-vote-award image and pull in the necessary dependencies. Be sure to swap out ${package.json.version}
with the actual version of cocosbcx-witnode-vote-award.
Once done, run the Docker image and map the port to whatever you wish on your host. In this example, we simply map port 8000 of the host to port 8080 of the Docker (or whatever port was exposed in the Dockerfile):
docker run -d -p 8000:8080 --restart="always" <youruser>/dillinger:${package.json.version}
Verify the deployment by navigating to your server address in your preferred browser.
127.0.0.1:8000
- Write MORE Tests
- Add Night Mode
Apache
Free Software, Hell Yeah!