Support #647
Updated by Daniel Curtis over 9 years ago
This is a guide on installing JSbin on FreeBSD. *NOTE*: -After After working on getting JSbin to install on FreeBSD for many hours, I was unable to get it working.- *UPDATE*: I found that JSbin works on node v0.10, the default nodejs version for FreeBSD is v0.12. Once I installed the older version JSbin installed correctly. working. h2. Prepare the system * Make sure the system is up to date: <pre> pkg update && pkg upgrade </pre> * Install portmaster <pre> pkg install portmaster pkg2ng </pre> h2. Install JSbin with npm * Install JSbin using npm: <pre> npm install -g --sqlite=/usr/local jsbin </pre> * Create a new config file and edit it as necessary: <pre> cd /usr/local/lib/node_modules/jsbin cp config.default.json config.local.json </pre> * Test JSbin in development mode: <pre> jsbin </pre> * Go to http://localhost:3000 in a web browser h2. Install JSbin from GitHub * Create a working source directory: <pre> mkdir /usr/local/src && cd /usr/local/src </pre> * Clone JSbin from GitHub: <pre> git clone https://github.com/remy/jsbin.git cd jsbin </pre> * Install the latest sqlite3 master branch: <pre> npm install -g https://github.com/mapbox/node-sqlite3/tarball/master --sqlite=/usr/local </pre> * Install node-gyp globally: <pre> npm install node-gyp -g </pre> * Install grunt-cli globally using npm: <pre> npm install -g grunt-cli </pre> * Edit the package.json file: <pre> vi package.json </pre> #* Then change the sqlite3 version: <pre> "sqlite3": "~3.0.10", </pre> #* And add the @chai@ package to the <pre> "devDependencies": { "grunt": "~0.4.1", "grunt-contrib-concat": "~0.3.0", "grunt-contrib-jshint": "~0.1.1", "grunt-contrib-uglify": "~0.2.2", "should": "~1.2.2", "sinon": "~1.7.3", "grunt-cli": "~0.1.11", "mocha-casperjs": "~0.5.0", "hbs-utils": "0.0.3", "mocha": "~1.21.4", "chai": "~1.10" }, </pre> * Then install the developer dependencies: <pre> npm install -g --sqlite=/usr/local --dev </pre> h2. Resources * https://github.com/jsbin/jsbin/blob/master/docs/running-your-own-jsbin.md