Skip to content

Instantly share code, notes, and snippets.

@deepak1556
Last active January 2, 2016 14:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save deepak1556/8319345 to your computer and use it in GitHub Desktop.
Save deepak1556/8319345 to your computer and use it in GitHub Desktop.
Setting up codecombat on windows

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:

Finally :

  • nodemon -w server -w server_config.js
  • visit http://localhost:3000
@Secretmapper
Copy link

I get an error when restoring the dumps (mongorestore dump). Says Error creating index coco.articles:16730 err: "bad textIndexVersion: 2". Any tips?

@deepak1556
Copy link
Author

@Secretmapper are u using mongodb v2.5.4 ?

@jonstvns
Copy link

jonstvns commented Jan 9, 2014

I had the same issue, but I realized that I downloaded the latest stable release of mongodb rather than v2.5.4. Everything works now. Thanks, deepak.

@GlenDC
Copy link

GlenDC commented Jan 10, 2014

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?

@deepak1556
Copy link
Author

@GlenDC did the sass compilation step ran successfully ?

@GlenDC
Copy link

GlenDC commented Jan 10, 2014

@deepak1556 thank you for the assistance :) I must have done something wrong during one of the steps .

@nwinter
Copy link

nwinter commented Jan 10, 2014

We've renamed brunch.coffee to config.coffee in the main repo now, so that step should no longer be needed.

@HiroP0
Copy link

HiroP0 commented Jan 11, 2014

Still having the f..d CSS / IE9 issue. What should I check?

@HiroP0
Copy link

HiroP0 commented Jan 19, 2014

Works now just by keeping the dev environment up to date. Thanks for updating the description. It's much better than the "official" one. Going to improve this there ...

@yaaseen
Copy link

yaaseen commented Mar 4, 2014

i cant understand the last step plz help me

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment