opentrials / opentrials-early-poc

A very early POC app for OpenTrials, just using a single source of data on schizophrenia.
MIT License
1 stars 0 forks source link

Open Trails Prototype App

Development

Getting started

Getting setup for local development is easy. We use io.js, and nvm for managing multiple node versions locally.

  1. On Mac OS X, install nvm: brew install nvm. Note the setup requires some additions to your shell config.
  2. Install iojs with nvm: nvm install iojs (now that you have nvm, you can also install the latest Node version with it: nvm install stable).
  3. Use a node version with nvm's use. We want io.js, so: nvm use iojs
  4. Tip: you can always check the version you are running with nvm current
  5. Tip: If, after installing nvm and iojs, you experience issues with v8flags when running gulp, see here.

Once we have our base environment setup to use io.js, then you can configure the actual app:

  1. Create your own fork of https://github.com/okfn/opentrials-prototype
  2. Clone your fork locally with https://github.com/{YOUR_USERNAME}/opentrials-prototype.git
  3. Install the dependencies with npm install
  4. Run the server with npm run develop, and visit the app at http://localhost:3000

That's it. Other things you can do:

Contributing

We welcome contributions. Please keep the style consistent. Refer to Open Knowledge Coding Standards.

In summary, in this codebase we:

Also, notice the following conventions:

If you are new to some of the tooling we use - don't worry, it is not difficult! Refer to Node Modules, Mocha, Chai, Browserify, Gulp and BrowserSync for further information. These are all key tools to organizing our code and workflow.