Skip to content

mikerjacobi/poker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

70 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

poker

building from scratch

  • cd client
  • npm install
  • cd semantic
  • gulp build
  • yes to RTL, otherwise take all defaults
  • cd ../../server
  • go build && docker-compose up -d && docker exec server_mongo_1 mongo /fixtures/fixtures.js

development commands

restart the server, from server/

  • go build && docker restart server_echo_1 && docker logs --tail=1 -f server_echo_1

recompile javascript, from client/

  • webpack

testing

  • make sure phantomjs is installed globally: sudo npm install -g phantomjs
  • cd test
  • npm install
  • npm test

add local ip hostname to selenium nodes from server_selenium_chrome_1: echo "192.168.8.88 dev" >> /etc/hosts

I created a second device to store all docker stuff. This is visible via "ps aux | grep docker"; the "-g /mnt" part. When restarting the VM, you need to "sudo su -; mount -t ext3 /dev/sdb /mnt; /etc/init.d/docker restart". This will tell the docker daemon, which is configured to look at /mnt, where to look for images.