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

Setup in Windows

Jac edited this page Nov 25, 2018 · 2 revisions

Scribe Setup in Windows

Download & Install

Setup

Adapted from this article

  1. Create a new project directory, e.g. C:\projects
  2. Open up command prompt as administrator, and initialize vagrant from project directory:
cd /projects
vagrant init hashicorp/precise32
  1. Open that Vagrantfile in a text editor and uncomment/modify the following lines
config.vm.network "forwarded_port", guest: 3000, host: 3000 # Default Rails port
config.vm.network "forwarded_port", guest: 27017, host: 27017 # Default Mongodb port

And add the following lines to enable symbolic links:

config.vm.provider "virtualbox" do |v|
  v.customize ["setextradata", :id, "VBoxInternal2/SharedFoldersEnableSymlinksCreate/v-root", "1"]
end
  1. In your command window run vagrant up and vagrant ssh

  2. Install git from (git-scm)[https://git-scm.com/download/win], following (these instructions)[https://hackernoon.com/install-git-on-windows-9acf2a1944f0] if unsure which options to choose. You must install unix utilities with git to complete later installations.

  3. Install & start mongodb following (instructions at mongodb)[https://docs.mongodb.com/manual/tutorial/install-mongodb-on-windows/]

  4. Install RVM & Ruby following (instructions at rvm.io)[https://rvm.io/rvm/install]. If you cannot run curl on your command line, you probably didn't install unix utilities with git. You could just install (cygwin)[https://cygwin.com/] instead now.

  5. Install Node and NPM from (Nodejs)[http://nodejs.org/] following (this tutorial)[https://blog.teamtreehouse.com/install-node-js-npm-windows] if necessary.

  6. Clone project:

cd /vagrant
git clone https://github.com/zooniverse/scribeAPI.git
cd scribeAPI
  1. Setup gems and modules:
bundle
npm install
  1. Setup your project (replace 'PROJECT_KEY' with the name of your project e.g. 'emigrant')

rake project:load['PROJECT_KEY']

  1. Run the server: rails s, and go to http://localhost:3000 in your browser

Next step: Creating Your Project