dothanhlam / microservice-thephotos

developing microservice

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

microservice-thephotos

developing microservice

Getting started

To get the Node server running locally:

  • Clone this repo
  • npm install to install all required dependencies
  • npm run dev to start the local server
  • the API is available at http://localhost:3000/api

Multiple instances

You can run multiple instances of services. In this case you need to use a transporter i.e.: NATS. NATS is a lightweight & fast message broker. Download it and start with gnatsd command. After it started, set the TRANSPORTER env variable and start services.

TRANSPORTER=nats://localhost:4222

To get the Node server running locally with Docker

Scale up services

Run this command docker-compose scale api=3

About

developing microservice


Languages

Language:JavaScript 89.1%Language:HTML 10.9%