Sign inSign up

otussolutions/account-service

By otussolutions

•Updated almost 7 years ago

Image
0

899

otussolutions/account-service repository overview

⁠Account Service

Micro-service that controls all account functionalities

⁠Getting Started

⁠Prerequisites
  • Environment variables
  • Server
    • MONGO_HOSTNAME=account-db
    • MONGO_PORT=27017
    • MONGO_USERNAME=root
    • MONGO_PASSWORD=XRYs9yjU
    • MONGO_DB=otus-account
    • API_PORT=8080
    • MEMORY=2046
  • API

⁠Installing

  • set environment variables on Dockerfile

    • ENV {variable} {value}
  • Install npm modules and dependencies (On api folder)

    • npm i
  • Build docker image (On root folder)

    • docker build -t account_service.
  • Create container

    • docker run -d -p 8080:8080 --name account_service account_service

⁠Running the tests

  • npm test

⁠Deployment (On api folder)

  • docker cp . account_service:src/ && docker restart account_service

⁠Built With

⁠Versioning

Tag summary

Content type

Image

Digest

Size

146.2 MB

Last updated

almost 7 years ago

docker pull otussolutions/account-service