mosha-author-service

command module
v0.2.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 10, 2023 License: MIT Imports: 10 Imported by: 0

README

mosha-author-service

Codacy Badge Codacy Badge

Author 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-author-service .

After that to run the container, run:

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

Tests

Unit tests are written using https://smartystreets.github.io/goconvey/ library in go for more fluent test development. All fake data in tests is generated using https://github.com/brianvoe/gofakeit/ library.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL