lampe / rockPaperScissors

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Setup

$ git clone https://github.com/lampe/rockPaperScissors.git
$ cd rockPaperScissors
$ meteor

Api calls

#rock
curl -H "Content-Type: application/json" -X POST -d '{"move":"rock"}' http://localhost:3000/api/move
#paper
curl -H "Content-Type: application/json" -X POST -d '{"move":"paper"}' http://localhost:3000/api/move
#scissors
curl -H "Content-Type: application/json" -X POST -d '{"move":"scissors"}' http://localhost:3000/api/move

Testing

you have to download the latest ChromeDriver https://sites.google.com/a/chromium.org/chromedriver/

# install gagarin
$ sudo npm -g i gagarin
# start Meteor
$ meteor
# in a second tab/terminal
$ cd <path to your ChromeDriver>
#run chromeDriver
$ ./chromedriver
#in a third tab/terminal run this command in the meteor project folder
$ gagarin -B -m -c

License

MIT License. See LICENSE for details.

About

License:MIT License


Languages

Language:JavaScript 99.4%Language:HTML 0.6%