-
Notifications
You must be signed in to change notification settings - Fork 25
Setup in Windows
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)[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.
-
Install & start mongodb following (instructions at mongodb)[https://docs.mongodb.com/manual/tutorial/install-mongodb-on-windows/]
-
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.
-
Install Node and NPM from (Nodejs)[http://nodejs.org/] following (this tutorial)[https://blog.teamtreehouse.com/install-node-js-npm-windows] 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