UNPKG

@bitdiver/result-rest-api

Version:
49 lines (34 loc) 1.38 kB
[![Build Status](https://travis-ci.org/bitdiver/result-rest-api.svg?branch=master)](https://travis-ci.org/bitdiver/result-rest-api) [![Greenkeeper badge](https://badges.greenkeeper.io/bitdiver/result-rest-api.svg)](https://greenkeeper.io/) Result Rest API ================================== This is a REST APIs for the providing the bitdiver testframework. It uses a Arrango Database which can be configured through ENV variables. Getting Started --------------- ```sh # clone it git clone git@github.com:bitdiver/result-rest-api.git cd result-rest-api # Make it your own rm -rf .git && git init && npm init # Install dependencies npm install # Start development live-reload server EXPRESS_PORT=3000 ARANGO_HOSTNAME=localhost ARANGO_PORT=8529 ARANGO_DBNAME=_system ARANGO_USERNAME=root ARANGO_PASSWORD= npm run dev # Start production server: EXPRESS_PORT=3000 ARANGO_HOSTNAME=localhost ARANGO_PORT=8529 ARANGO_DBNAME=_system ARANGO_USERNAME=root ARANGO_PASSWORD= npm start ``` Docker Support ------ ```sh cd result-rest-api # Build your docker docker build -t bitdiver/result-rest-api . # ^ ^ ^ # tag tag name Dockerfile location # run your docker docker run -p 8080:8080 bitdiver/result-rest-api # ^ ^ # bind the port container tag # to your host # machine port ```