Project

General

Profile

Support #689

Updated by Daniel Curtis over 8 years ago

This is a guide on installing a CodeCombat instance on FreeBSD 10. 

 *WARNING*: Due to compilation issues, I have not yet been able to get CodeCombat working on FreeBSD 10. 

 h2. Prepare the Environment 

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

 * Install a few dependencies: 
 <pre> 
 pkg install build-essential python2.7 python2 git curl mongodb node npm gmake libsass 
 </pre> 

 * Start and enable mongodb at boot: 
 <pre> 
 echo 'mongod_enable="YES"' >> /etc/rc.conf 
 service mongod start 
 </pre> 

 * Install bower and brunch globally: 
 <pre> 
 npm install -g bower brunch 
 </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 nodejs dependencies: 
 <pre> 
 env CFLAGS="-std=c++11" npm install 
 </pre> 

 * Install a few more dependencies manually (I don't know why this isn't done automatically) 
 <pre> 
 npm install pause bytes geoip-lite async request graceful-fs minimatch debug is-glob mongodb 
 </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