This repository has been archived by the owner on Sep 26, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 25
Setup in Windows
Jac edited this page Nov 25, 2018
·
2 revisions
Adapted from this article
- Create a new project directory, e.g. C:\projects
- Open up command prompt as administrator, and initialize vagrant from project directory:
cd /projects
vagrant init hashicorp/precise32
- 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
-
In your command window run
vagrant up
andvagrant ssh
-
Install git from git-scm, following these instructions if unsure which options to choose. You must install unix utilities with git to complete later installations.
-
Install & start mongodb following instructions at mongodb
-
Install RVM & Ruby following instructions at rvm.io. If you cannot run curl on your command line, you probably didn't install unix utilities with git. You could just install cygwin instead now.
-
Install Node and NPM from Nodejs following this tutorial if necessary.
-
Clone project:
cd /vagrant
git clone https://github.com/zooniverse/scribeAPI.git
cd scribeAPI
- Setup gems and modules:
bundle
npm install
- Setup your project (replace 'PROJECT_KEY' with the name of your project e.g. 'emigrant')
rake project:load['PROJECT_KEY']
- Run the server:
rails s
, and go to http://localhost:3000 in your browser
Next step: Creating Your Project
- Getting Started
-
Setting up your Project
- Setup Your Environment
- Configure your project
- Load your project
- Code & Technical Notes
- Project Reference