OpenTrials is an app to explore, discover, and submit information on clinical trials.
JavaScript HTML CSS Shell
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
agents
assets
config
dist
handlers
helpers
lib
migrations
models
presenters
routes
test
tools
views
.dockerignore
.env.example
.eslintignore
.eslintrc
.gitignore
.istanbul.yml
.travis.yml
Dockerfile
README.md
app.json
docker-compose.override.yml
docker-compose.yml
gulpfile.js
knexfile.js
npm-shrinkwrap.json
package.json
server.js
webpack.config.js

README.md

opentrials

Gitter Travis Build Status Coveralls Dependency Status Issues Docs

OpenTrials is an app to explore, discover, and submit information on clinical trials.

Developer notes

Requirements

Installing

  1. Copy the .env.example file to .env and alter its contents as needed. At minimum, you should set the OPENTRIALS_API_URL and DATABASE_URL. The TEST_DATABASE_URL is needed to run the tests. You could leave the GOOGLE_* and FACEBOOK_* variables as is, although you won't be able to log in. If you leave AWS_* and S3_*, you won't be able to upload data;
  2. Run npm install;
  3. Run npm run migrate;

After the install and migrations ran successfully, you can run npm run dev to run the project. If you haven't changed the default PORT, it should be available at http://localhost:5000

Testing

You can run the test suite and linting with npm test.

We also have an end to end smoke test suite. To run it, make sure the OpenTrials server is running and do:

OPENTRIALS_URL=http://localhost:5000 npm run e2e

Remember to change the OPENTRIALS_URL to where is the OpenTrials URL.

Notes

Built static files are checked into the git repository for now to simplify Docker workflow.