Skip to content

Registration and display of entity changes of the "Medicine" project

Notifications You must be signed in to change notification settings

mkdevprogects/history_service

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

74 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

README

{Build Status}[https://travis-ci.org/mkdevprogects/patients]

Functionality: registration and display of entity changes.

Running:

  • Clone app: git clone git@github.com:mkdevprogects/base.git
  • cd base/
  • Set the environment variables:
  PGUSER  
  PGPASSWORD  
  ENVPOSTGRES_DB  
  VOLUMES  
  ENVPGDATA  
  DB_HOST  
  DB_PG_PORT  
  DB_REDIS_HOST  
  DB_REDIS_PORT  
  HUTCH_MQ_HOST  
  HUTCH_MQ_API_HOST

or

  1. Set the environment variables for all apps:
PGUSER
DB_HOST
PGPASSWORD
ENVPOSTGRES_DB
ENVPGDATA
  1. Clone app: git clone git@github.com:mkdevprogects/base.git
  2. cd base/
  3. docker-compose up -d
  4. cd ..
  5. Clone app: git clone git@github.com:mkdevprogects/migrations.git
  6. cd migrations/
  7. Create database: rake db:create
  8. Run migrations database: rake db:migrate
  9. cd ..
  10. Clone app: git clone git@github.com:mkdevprogects/patients.git
  11. cd patients/
  12. Create test data: rake db:seed
  13. Run app: rails s -p 3000
  14. cd ..
  15. Clone app: git@github.com:mkdevprogects/history_service.git
  16. cd history_service/
  17. Run app: foreman start
  18. Create illness request: 19.1. Open browser and go to http://0.0.0.0:3000/ 19.2. Register or log in(patient.1.@patient.com / 123123) to app 19.3. Create illness request

or

19.1. Send query

curl -X POST \ http://0.0.0.0:5000/event \ -H 'cache-control: no-cache' \ -F actor_id=1 \ -F actor_type=admin \ -F action=delete \ -F subject_id=20 \ -F subject_type=symptom

  1. open browser and go to http://0.0.0.0:5000/events and see history app

Example environment variables:

PGUSER=postgres
PGPASSWORD=12345
ENVPOSTGRES_DB=mkdev_dev
VOLUMES=/Users/user_name/pg_data
ENVPGDATA=/Users/user_name/pg_data
DB_HOST=postgres

for running only this app use DB_HOST=localhost

DB_PG_PORT=5432
DB_REDIS_HOST=redis
DB_REDIS_PORT=6379

Set this environment variables if you run all apps:

HUTCH_MQ_HOST=rabbitmq
HUTCH_MQ_API_HOST=rabbitmq

About

Registration and display of entity changes of the "Medicine" project

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published