openmhealth / omh-dsu-ri

An application for storing mobile health data and authorizing access to it.
http://www.openmhealth.org/documentation/#/store-data/storage-overview
Apache License 2.0
39 stars 32 forks source link

Add documentation on running the servers natively. #9

Open mseddon opened 8 years ago

mseddon commented 8 years ago

Could you provide a set of instructions on installing this locally on a development machine without docker?

emersonf commented 8 years ago

We'll try to get that documented in the README next week.

If you need to get started sooner, here's the short version. It assumes that all commands are path are run in the root of the repo.

  1. Get a Mongo instance and a Postgres instance up and running.
  2. Source the two SQL scripts in resources/rdbms/postgresql in Postgres.
  3. Source the SQL script resources/rdbms/common/oauth2-sample-data.sql in Postgres to create an OAuth 2.0 test client.
  4. Update the spring.data.mongodb and spring.datasource properties in authorization-server/src/main/resources/application.yml and ./resource-server/src/main/resources/application.yml to match the settings of your Mongo and Postgres instances.
  5. In one terminal, run ./gradlew authorization-server:bootRun to start the authorization server.
  6. In another terminal, run ./gradlew resource-server:bootRun to start the resource server.
  7. To stop the servers, press Ctrl-C in the terminals.
mseddon commented 8 years ago

That's great, I'll give it a try, thanks! There's no real rush, I can work with docker for now if these steps don't do it for me.

luistduarte commented 7 years ago

It works running natively and i tested some requests with Postman, but i got one question.. It is possible to check when one data point is introduced if it was conforming with Json Schema definition?