An idling game of epic proportions.
git clone
npm install
.env
file in the repo root with the key MONGODB_URI
set to a URI leading to a local or remote mongodb install (eg: MONGODB_URI=mongodb://localhost:27017/play
and if you're using redis, REDIS_URL
should be set to where your Redis is setup (eg: REDIS_URL=redis://localhost:6379
))npm run start:dev
to start the servernpm run test:client -- --players <playercount>
to test with that many players (up to ~1200)mongo
db.players.update({ name: "Your Character Name" }, { $set: { isMod: true } })
TypeError: Parameter "url" must be a string, not undefined
or ReferenceError: (something about a missing proxy)
typically means you have an old version of node (node --version
to check)npm run test
(before you PR!) doesn't work, you haven't run npm install
fork
this repo, then clone
to your local machine. PRs from your local repo --silent
is useful to stop "npm err!"s from filling up your screennode --inspect=9222 whatever.js
(e.g. in your package.json
) gives you a Chrome url so you can debug/profile/etc to your heart's content. Adding the line debugger;
will break at that point in the js codenpm run test
before making a PR.