-
Notifications
You must be signed in to change notification settings - Fork 4.1k
Dev Setup: Linux
You will need to install Node.js, Git, "build essentials", and Python 2.7.
NOTE: These instructions are for installing Node v4, but currently CodeCombat uses Node 8. Consider using nvm instead.
Example for Ubuntu:
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 7F0CEB10
sudo apt-get update
sudo apt-get install build-essential python2.7
If your default Python version is 3, then you'll also want to
npm config set python `which python2.7`
If you have not set up Git, then at least do the following:
git config --global user.name "$YOUR_NAME"
git config --global user.email "$YOUR_EMAIL_ADDRESS"
First fork and clone the CodeCombat repository, and track upstream.
git clone https://github.com/$GITHUB_USERNAME/codecombat.git
cd codecombat
git remote add -f upstream https://github.com/codecombat/codecombat.git
npm install
This will take care of installing npm and bower dependencies, as well as building the asset files.
npm run webpack -- --watch
npm run proxy
This will start webpack
(watches client files) and proxy
(routes all server calls to CodeCombat's production servers). (You can also just use npm run proxy
to run the server without keeping webpack watching for changes.)
Visit http://localhost:3000 to see your local CodeCombat setup.
CodeCombat | Home | Blog | Forum | Teachers | Legal | Contribute
- Home
- Archmage Home
- Artisan Home
- Diplomat 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
- Debugging
- Artisan How-To Index
- Diplomat General
- i18n
- i18n Glossary nb
- i18n Glossary ru
- i18n Glossary es-419
- 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