Project

General

Profile

Support #693

Updated by Daniel Curtis about 9 years ago

This is a guide on installing a CodeCombat instance on Debian 8. 

 h2. Prepare the Environment 

 * Obtain root shell: 
 <pre> 
 sudo -s 
 </pre> 

 * Makr sure the system is up to date: 
 <pre> 
 apt-get update && apt-get upgrade 
 </pre> 

 * Install a few dependencies: 
 <pre> 
 sudo apt-get install build-essential python2.7 git curl mongodb libkrb5-dev 
 </pre> 

 * Install the nodejs repository: 
 <pre> 
 curl --silent --location https://deb.nodesource.com/setup_0.12 | bash - 
 </pre> 
 #* Then install nodejs: 
 <pre> 
 apt-get install nodejs 
 </pre> 

 * Install bower and brunch globally: 
 <pre> 
 npm install -g bower brunch 
 </pre> 

 * Exit the root user: 
 <pre> 
 exit 
 </pre> 

 h2. Install CodeCombat 

 * Clone the CodeCombat code from GitHub: 
 <pre> 
 mkdir ~/git && cd ~/git 
 git clone https://github.com/codecombat/codecombat.git 
 cd codecombat 
 </pre> 

 * Install the node module dependencies: 
 <pre> 
 npm install 
 </pre> 
 #* A few additional node modules needed to be install: 
 <pre> 
 npm install pause bytes geoip-lite mongodb-core 
 </pre> 

 * Now start the server: 
 <pre> 
 npm start 
 </pre> 

 h2. Resources 

 * https://github.com/codecombat/codecombat 
 * https://github.com/codecombat/codecombat/wiki/Dev-Setup:-General-Information 
 * https://github.com/codecombat/codecombat/wiki/Dev-Setup:-Linux#complex-linux-installation

Back