Skip to content

Latest commit

 

History

History
45 lines (34 loc) · 1.06 KB

README.md

File metadata and controls

45 lines (34 loc) · 1.06 KB

Cookie Trader

Welcom to Cookie Trader http://cookie-trader.herokuapp.com/

How to start server

  1. npm start
  2. Open "http://localhost:5000/room/1". Note that 1 indicates the room id and you can use any string as a room id instead of 1.

How to prepare develop environment

  1. Install node.js (http://nodejs.org/)
  2. Install dependecies
    npm install
  3. Install CoffeeScript
    npm install -g coffee-script
  4. Run run.bat on Windows / npm start on non-Windows

How to run tests on Ubuntu

sudo apt-get install libfontconfig1
npm install phantomjs -g
cd ~
git clone git://github.com/n1k0/casperjs.git
cd casperjs
sudo ln -sf `pwd`/bin/casperjs /usr/local/bin/casperjs
npm test

How to run tests on Mac OS X

brew install phantomjs
brew install casperjs
npm test

How to deploy on Heroku

  1. git remote add heroku git@heroku.com:cookie-trader.git
  2. git push heroku master

Requirements

  • node.js v.0.10.19

仕様

  • 部屋とかは無し
  • アイテムが1個買われると、次の値段は1.15倍