services version on my 64bit system:
- node v0.10.22
- ruby v2.0.0.p533
- mongodb v2.5.4
Requirements:
- nodejs, rubyv2.0.0, mongodbv2.5.4
Steps :
- git clone https://github.com/codecombat/codecombat
npm install -g bower brunch nodemon
- cd
codecombat/
npm install
bower install
- sass-brunch v1.7.2 breaks in windows due to windows socket close error fix, so delete sass-brunch from node_modules dir and do the following inside codecombat/node_modules :
npm i --save-dev sass-brunch@1.7.0
brunch w
//if any compilation error throws up on sass files just update your sass gem and that should do
Setting up mongodb:
- extract mongodb into a folder and add the path to bin folder inside mongodb folder to your system path
- create a
db
folder anywhere ex:C:/db
mongod --setParameter textSearchEnabled=true --dbpath path/to/db
folder we created in earlier step- download database dump from https://s3.amazonaws.com/uploads.hipchat.com/60497/416620/DyI9sxIrTmiR6ms/coco_backup_public.tar.gz and extract it to
db/
folder insidecodecombat/
folder - cd
codecombat/db
mongorestore dump
Finally :
nodemon -w server -w server_config.js
- visit
http://localhost:3000
Ok got it working thanks to this guide! Weird thing is that doesn't in chrome, opera and firefox he keeps saying that this game wont work on Internet Explorer 9. I can still press play and such, but the CSS is fucked on every page.
Edit: and it also doesn't work in internet explorer 11. So in all my 4 browsers the CSS is fucked for this local version. any clue how I can fix this?