Skip to content

Instantly share code, notes, and snippets.

@steverichey
Last active October 11, 2017 15:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save steverichey/7579d75f15d798862d1c12fd63a11916 to your computer and use it in GitHub Desktop.
Save steverichey/7579d75f15d798862d1c12fd63a11916 to your computer and use it in GitHub Desktop.
Start adapt
#!/bin/sh
# exit early on errors
set -eu
# from: brew.sh, install homebrew
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
# latest node via homebrew is borked, install 6.x instead
brew install node@6
# add node to path
echo 'export PATH="/usr/local/opt/node@6/bin:$PATH"' >> ~/.bash_profile
# update npm
npm i -g npm
# ffmpeg
brew install ffmpeg
# mongo db
brew install mongodb
# homebrew sets up a db path in /usr/local/var
brew services start mongodb
# grunt (i'm not sure this is necessary)
npm install -g grunt-cli
# adapt
git clone https://github.com/adaptlearning/adapt_authoring.git ~/adapt_authoring
cd ~/adapt_authoring
npm install --production
node install
node server
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment