go to http://teamwebscale.2015.nodeknockout.com/ on your desktop or mobile phone
you can play with friends in the same room, or on the other side of the world.
you can ever play with strangers by joining public games.
the best games have between 4 and 8 players
Start a game, choose public or private game.
Once you start a game, tell your friends what the game code is, so they can join your game.
or
Join a game, enter a game code or select a public game to play with strangers.
Almost everything can be replaced, however, the scripts/postinstall.js
and package.json
files must be in tact.
npm start
must work to start the app, because that's how modulus will serve the app.
npm start
npm test
npm run dev
using the deprecated google image api
sample curl request
curl -e http://teamwebscale.2015.nodeknockout.com \
'https://ajax.googleapis.com/ajax/services/search/images?v=1.0&userip=167.216.21.52&q=node%20js' | python -m json.tool
setup persistent mongo db, link to this from ephemeral meteor container
docker run --name teamwebscale-db -d mongo
run meteor project
be in project, /app subdirectory
cd ./app
run meteor app in docker
docker run -it --name google-fu --rm -p 3000:3000 -v "$PWD":/app --link teamwebscale-db:db -e "MONGO_URL=mongodb://db" danieldent/meteor
running any meteor commands such as add
or deploy
docker run -it --rm -v "$PWD":/app danieldent/meteor meteor [your command and arguments here]
from the teamwebscale project directory
using the docker-modulus image
# pull the modulus docker image
docker pull theremix/docker-modulus
# run a temporary container, mounting the current directory to /app
docker run --rm -it --name teamwebscale_deploy -v "$PWD":/app -w /app theremix/docker-modulus
# (inside the container) login to modulus
/app # modulus login
# (inside the container) deploy to modulus
/app # modulus deploy
# (inside the container) view the most recent logs from modulus
/app # modulus project logs
you probably don't need to do this, just follow the running the app instructions above
# getting the code
git clone git@github.com:nko5/teamwebscale.git && cd ./teamwebscale/
# developing
npm install
npm start
# setup your modulus account
npm install -g modulus
modulus login
# deploying to Modulus (to http://teamwebscale.2015.nodeknockout.com/)
modulus deploy
# view the most recent logs from modulus
modulus project logs
Read more about this setup on our blog.
Use our "Vote KO" widget to let from your app directly. Here's the code for including it in your site:
<iframe src="http://nodeknockout.com/iframe/teamwebscale" frameborder=0 scrolling=no allowtransparency=true width=115 height=25>
</iframe>
If you have any issues, we're on IRC in #nodeknockout on freenode, email us at help@nodeknockout.com, or tweet @nodeknockout.