OpenTrials is an app to explore, discover, and submit information on clinical trials.
- Node 6.9
- PostgreSQL 9.4
- OpenTrials API (see install notes)
- Copy the
.env.examplefile to.envand alter its contents as needed. At minimum, you should set theOPENTRIALS_API_URLandDATABASE_URL. TheTEST_DATABASE_URLis needed to run the tests. You could leave theGOOGLE_*andFACEBOOK_*variables as is, although you won't be able to log in. If you leaveAWS_*andS3_*, you won't be able to upload data; - Run
npm install; - 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
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.
Built static files are checked into the git repository for now to simplify Docker workflow.