Skip to content

wcodesoft/mosha-quote-service

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mosha-quote-service

Codacy Badge Codacy Badge License: MIT

Quote microservice used in Mosha

Database

The main database used in the service is MongoDB. It's used to store the authors. To deploy it locally, run:

docker run --name mongo -p 27017:27017 -d mongodb/mongodb-community-server:latest 

Docker

To build the container image, run:

docker build -t mosha-quote-service .

After that to run the container, run:

docker run --name mosha-quote-service -e MONGO_DB_HOST="mongodb://localhost:27017" --net=bridge -p 8180:8180 -d mosha-quote-service

Sentry

This service uses Sentry to track errors. To test it locally set the environment variable SENTRY_DSN to your Sentry DSN before running the service.

export SENTRY_DSN="your-dsn"