Skip to content

Instantly share code, notes, and snippets.

View mdeltito's full-sized avatar
🥨

Mike Del Tito mdeltito

🥨
View GitHub Profile
@mdeltito
mdeltito / README.md
Created July 14, 2016 13:45 — forked from Sinetheta/README.md
Using Yeoman to make a SharePoint 2010 project with REST.

Setting up a new Yeoman project using the sp2010 rest emulator:

  1. Create a new Yeoman project, eg: $ yo webapp my-project.
  2. Install the SharePoint 2010 rest emulator $ npm install sp2010-rest --save-dev.
  3. Add the rest emulator as middleware to any connect servers in your project's [Gruntfile.js][Gruntfile].
  4. Create a 'lists' folder in your project, and fill it with a copy of the json REST response (eg: /_vti_bin/listdata.svc/Documents -> [demo-list.json][json]) for any SharePoint lists you would like to emulate.

Deploying a Yeoman project to a sp2010 server:

  1. Map a network drive to SharePoint.

Gem a Ruby gem is a package that contains information and files. Cucumber, and RSpec are the gems I currently have.

When I need to install a new gem, I go into my Gemfile in any text editor (Sublime, Vim, etc ;) ) and add the gem and version I want to be used. For example, the latest version of Cucumber is 1.3.16, but I've specified that I want to use 1.2.1. Then I run bundle install to ensure those versions are installed, which also updates my Gemfile.lock

gem list - I can run this command to see a list of local gems, and the versions available

After adding a new gem to my Gemfile, run the following commands:

bundle install - Install the dependencies specified in your Gemfile