1.0.9 • Published 4 years ago

@bitdiver/result-rest-api v1.0.9

Weekly downloads
-
License
ISC
Repository
github
Last release
4 years ago

Build Status Greenkeeper badge

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

# 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

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