Tools
You will need to install the following:
- Node.js (LTS version should be fine, but Stable is preferred)
- Git
- Python 2.7
- MongoDB (You should also setup a service script)
Set Up
First open up cmd.exe
/Powershell/Git Bash/any terminal.
You'll want to fork the repo on Github, then clone it to your machine.
git clone https://github.com/$GITHUB_USERNAME/codecombat.git
cd codecombat
git remote add -f upstream https://github.com/codecombat/codecombat.git
You'll then want to install the dependencies and build the asset files.
npm install
Start MongoDB if you haven't, then download the database dump at http://analytics.codecombat.com:8080/dump.tar.gz, extract the contents (7-Zip is a good option), then
mongorestore --drop path/to/dump --db coco
(If it says that there are no reachable servers but there is a mongod process running try adding --host=127.0.0.1
to the end of the command.)
Running
Either run npm run dev
(live coding) or npm start
(just previewing) to start the server.
Visit http://localhost:3000 to see your CodeCombat setup in action.
- Home
- Archmage Home
- Artisan Home
- Adventurer Home
- Scribe Home
- Diplomat Home
- Ambassador Home
- Archmage General
- Mission statement
- Coco Models
- Coding Guidelines
- Cookbook
- File system
- JSON Schema
- Technical overview
- Testing
- Third party software and services
- Artisan General
- Building A Level
- Coding Guidelines for Artisans
- Editing Thang Components
- Important Artisan Concepts
- Keyboard Shortcuts
- Artisan How-To Index
- Adventurer General
- Scribe General
- Diplomat General
- i18n
- i18n Glossary nb
- i18n Glossary ru
- i18n Glossary es-419
- Ambassador General
- Dev Setup
- Dev Setup: Linux
- Dev Setup: Windows
- Dev Setup: Mac
- Dev Setup: Vagrant
- Dev Setup: Issues
- Game Engine
- Component
- Multiplayer
- Surface
- System
- Thang
- Thang Component System
- Tome
- World
- Artisan Tabs
- Components And Systems
- Scripts
- Settings
- Thangs
- Other
- Aether
- Client models
- Developer organization
- Educational Standards
- Events, subscriptions, shortcuts
- Chat Room
- Chat Room Rules
- Permissions
- Project Ideas List
- Treema
- Versioning
- Views
CodeCombat | Home | Blog | Forum | Teachers | Legal | Contribute