{"repo":"AMPATH/etl-rest-server","free":true,"listed":false,"github":"https://github.com/AMPATH/etl-rest-server","clone":"git clone https://github.com/AMPATH/etl-rest-server.git","description":"This project hosts scripts to generate flat tables used for reporting purposes.","language":"JavaScript","stars":10,"topics":["etl"],"license":null,"category":"data-pipelines","readme_excerpt":"ETL REST Server This is a node project that uses hapi to expose REST endpoints which provide access to data hosted in ETL flat tables. These flat tables are flattened derived database tables containing data from OpenMRS. Data generation is done via MySQL stored procedures (found here). This project is currently being battle-tested in production by AMPATH POC. To setup the project, run: $ git clone https://github.com/AMPATH/etl-rest-server.git $ cd etl-rest-server $ npm install $ mkdir conf && cd conf Create a config.json file $ cat config.json With the following content You can set tls:false if you don't care about https and don't provide the keys but if you set it to true you have to provide the keys. npm start Now visit https:// : You should see the welcome message Welcome to ETL reset server for OpenMRS Using Docker Compose 1.6+ docker-compose up -d Confirm by looking for the server at host port 8002 using TLS: curl -k https://docker:8007 Without Docker Compose Building docker build -t etl . Running Using Docker for MySQL docker run -d --name mysql4etl -e MYSQL ROOT PASSWORD=supersecret \\ -e MYSQL USER=etl user -e MYSQL PASSWORD=etl password mysql Running with openmrs instance running at localhost on port 8080 docker run -d --name etl --link mysql4etl:db -p 8002:8002 etl Running with openmrs running at 1.2.3.4 on port 8081 under app name \"omrs\" docker run -d --name etl --link mysql4etl:db -p 8002:8002 \\ -e OPENMRS HOST ADDR=1.2.3.4 -e OPENMRS NAME=omrs -e OPENMRS PORT=8081","default_branch":null,"files":null,"tree":[],"storefront":"/r/AMPATH","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/AMPATH/etl-rest-server/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}