Skip to content
This repository has been archived by the owner on Feb 27, 2019. It is now read-only.

ytbeepbeep/objectives-service

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

objectives-service

Manage the user objectives

Build Status Coverage Status

This microservice works on port 5004.

First setup

Export the address and the port of the data-service microservice, the default is 127.0.0.1:5002.

A smart way to do this is to create a file variables.sh in the project root, as follows.

#!/bin/bash
export DATA_SERVICE="127.0.0.1:5002"
export OBJECTIVE_SERVICE="127.0.0.1:5004"

You can load the variables with source variables.sh.

Install for development

pip install -r requirements.txt
pip install pytest pytest-cov
python setup.py develop

Install for production

pip install -r requirements.txt
python setup.py install

Run the microservice

python objectives/app.py

Important note: use python 3.6.

Docker

Image size Latest version

A Docker Image is available on the public Docker Hub registry. You can run it with the command below.

docker run -d --name objectives-service ytbeepbeep/objectives-service

Important note: if you need to expose the service outside you Docker installation (e.g. to third part services) use the option -p 5002:5002

Locally

You can also build your own image from this repository.

  • Build with docker build -t ytbeepbeep/objectives-service .
  • Run as usually, with the commands specified above

About

Manage the user objectives

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •