Skip to content

Instantly share code, notes, and snippets.

View SSTPIERRE2's full-sized avatar

Stephen St.Pierre SSTPIERRE2

View GitHub Profile

Learn the Basics of Rest!

So, there's no single, comprehensive definition of REST, it's just an architectural standard with which to design a server that stores and retrieves information so that it can communicate with other servers of the like. There are four principles presented by IBM that illustrate the concepts of REST:

  • Use HTTP methods explicitly
  • Retrieve data using GET, create data using POST, update or change data using PUT, delete data using DELETE
  • Be stateless
  • "don't store state information on the server"
  • Instead, save state on client-side via cookies
  • Expose directory structure-like URIs
  • Basically, your resource links should be paths to the file being accessed
  • Transfer XML, JSON, or both

Compass and the StressLess study

The Compass mobile application is a part of the StressLess study, a study purposed for finding out how effective the Muse and Spire devices are in improving stress management during the intervention period for cancer patients. "We hope to gather information on how people choose to use new technology to manage stress," states Partner's Healthcare.

When I jumped into Compass, the application just needed a few weeks worth of a features to complete and deliver into production. My role in the finalization and delivery of Compass was more like that of a full-stack web developer, meaning that I produced features for both the front and back end of the application.

Ongoing Refactoring of the FreeText Widget

The team developed widgets for components of the application's interface that require certain common behavior like with text inputs, different types of buttons, and multiple choice questions. I worked on the FreeText widget for a specific feature stor

Getting Started With Node.js and REDCap:

Node.js is a JavaScript runtime environment which lets you run JavaScript outside of a Web browser.
  • It is primarily used to create lightweight, scaleable Web servers, which is what we're going to do right now!
  • This is particularly useful as a server-side solution for receiving/responding to HTTP requests.
  • Let's start by installing Node and NPM (node package manager, a public registry of installable node modules).
1. Try visiting the Node Homepage and grabbing the latest version. Once it installs, let's run a couple commands.

Assuming we're developing on OSX, open up Terminal and run:

 $which node