Skip to content
This repository has been archived by the owner on Sep 26, 2019. It is now read-only.

Setup Mac OSX

John Scancella edited this page Jun 13, 2018 · 7 revisions

Scribe Setup in OSX

  1. Open Terminal, install Homebrew

    ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
    
  2. Install Git

    brew update
    brew install git
    git --version
    
  3. Install RVM/Ruby/Rails

    curl -L https://get.rvm.io | bash -s stable --auto-dotfiles --autolibs=enable --rails
    

    Quit and reload terminal, then install Ruby version 2.1.5

    rvm install 2.1.5
    rvm use 2.1.5 --default
    
  4. Install and start MongoDB

    brew install mongodb
    mkdir -p /data/db
    chown `whoami`:admin /data/db
    mongod
    
  5. Install node. Note that you have to install a older version of node since new versions are not compatible.

    brew install node@4
    npm -v
    
  6. Clone repository

    cd /your/web/apps/folder
    git clone https://github.com/zooniverse/scribeAPI.git
    cd scribeAPI
    
  7. Install gems and modules

    gem install bundle # if you don't already have it
    bundle install
    npm install
    
  8. Load a project (replace 'PROJECT_KEY' with the name of your project e.g. 'emigrant') and start your server

    rake project:load['PROJECT_KEY']
    rails s
    

    Go to http://localhost:3000/ in your browser

Next step: Creating Your Project