/hearthstone

Heartstone server side build with Node.js

Primary LanguageJavaScriptGNU General Public License v3.0GPL-3.0

  ___ ___                            __   .__       _________  __                           
 /   |   \   ____  _____   _______ _/  |_ |  |__   /   _____/_/  |_   ____    ____    ____  
/    ~    \_/ __ \ \__  \  \_  __ \\   __\|  |  \  \_____  \ \   __\ /  _ \  /    \ _/ __ \ 
\    Y    /\  ___/  / __ \_ |  | \/ |  |  |   Y  \ /        \ |  |  (  <_> )|   |  \\  ___/ 
 \___|_  /  \___  >(____  / |__|    |__|  |___|  //_______  / |__|   \____/ |___|  / \___  >
       \/       \/      \/                     \/         \/                     \/      \/ 

Build Status Dependency Status


Preparation

  • Install NodeJS

    $ brew install node
    
  • Install Riak

    $ brew install mongodb
    
  • Install Node dependency, go to {HEARTHSTONE-HOME}/

    $ npm install
    
  • Install grunt-cli

    $ npm install -g grunt-cli
    
  • Install mongoose fixture cli

    $ npm install -g mongoose-fixture
    

Running Node build|test|jslint|clean

$ grunt 

API doc generator

  • Install apiary cli

    $ sudo gem install apiaryio
    
  • Prewiew api doc, go to {HEARTHSTONE-HOME}/

    $ apiary preview  --path docs/api/apiary.apib  --output docs/api/hearthstone.html
    
  • Generate JS doc use following command

    $ grunt doc
    

Generate initial data.

$ grunt migrate

Import card by shell script

$ bin/card-import -u tim -p 123 -H http://localhost:5000 -d fixtures/cards-dump.json 

Preview API/JS doc on-line

Issue

Bitdeli Badge