Giter Site home page Giter Site logo

api's Introduction

api

Gitter Travis Build Status Coveralls Dependency Status Issues Docs

The OpenTrials API service.

Developer notes

Requirements

  • Node 5.8
  • PostgreSQL 9.4
  • ElasticSearch 2.3.5

Installing

  1. Copy the .env.example file to .env and alter its contents as needed. At minimum, you should set the DATABASE_URL and ELASTICSEARCH_URL. The TEST_DATABASE_URL is needed to run the tests. You could leave the ELASTICSEARCH_AWS_* as is if you're not using ElasticSearch on AWS;
  2. Run npm install;
  3. Run npm run migrate;
  4. (Optional) If you want, you can add some seed data using npm run seed;
  5. Run npm run reindex;

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

Reindexing

Currently, there's no way to automatically reindex the data. Every time you change the database, you'd need to run npm run reindex to keep ElasticSearch in sync.

Testing

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

api's People

Contributors

borysyuk avatar georgiana-b avatar nightsh avatar pwalsh avatar vitorbaptista avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.