{}[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
docker-compose -f docker-compose.demo.yml up
- open browser and go to http://0.0.0.0:3000/ and see patient app
- open browser and go to http://0.0.0.0:4000/ and see manager app
- open browser and go to http://0.0.0.0:5000/ and see history app
or
- Set the environment variables for all apps:
PGUSER
DB_HOST
PGPASSWORD
ENVPOSTGRES_DB
ENVPGDATA
- Clone app:
git clone git@github.com:mkdevprogects/base.git
cd base/
docker-compose up -d
cd ..
- Clone app:
git clone git@github.com:mkdevprogects/migrations.git
cd migrations/
- Create database:
rake db:create
- Run migrations database:
rake db:migrate
cd ..
- Clone app:
git clone git@github.com:mkdevprogects/patients.git
cd patients/
- Create test data:
rake db:seed
- Run app:
rails s -p 3000
cd ..
- Clone app:
git@github.com:mkdevprogects/history_service.git
cd history_service/
- Run app:
foreman start
- 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
- 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