openmrs-appstore-httpclient

OpenMRS Talk OpenMRS IRC OpenMRS Telegram devDependencies Status Dependencies Status

Content Table

###Description:

openmrs-appstore-httpclient is a proxy server for the openmrs-contrib-appstore which adds the CORS headers to the incoming responses from Bintray

###Setting Up

1.Install stable version of Node.js from https://nodejs.org/en/download/.

  • Node Pacakage Manager(npm) comes bundled with Node.js

2.Clone the repo

$ git clone https://github.com/vishnuraom/openmrs-appstore-httpclient.git
$ cd openmrs-appstore-httpclient

3.Install dependencies

$ npm install

4.Open Git Bash and create a .env file

$ touch .env

5.Update the .env file with your Bintray credentials. Where do I find the Bintray API key?

Example .env file

BINTRAY_USERNAME=vishnuraom
BINTRAY_APIKEY=4462404b9c3d2ce2dabcee2c467a9157973d543a
#Obviously replace the above key with your own apikey

6.Start the server

$ nodemon

###Code Structure:

bin/www.js Script for running the server
node_modules Contains dependencies
public/images favicon.ico
routes/ All the available routes
.env Should create the file after cloning the repo,contains Bintray username and apikey
package.json Manifest file used to manage project dependencies.

###External Links