Skip to content

Mhm0ud/moleculer-simple

Repository files navigation

Codacy Badge

Moleculer TypeScript Example App

Built from Knawat Moleculer Template

It's a microservice Node.js application, It's demonstrate how to run a simple App with two serivces (api, products) buit on Moleculer Microservices Framework

Usage

Start the project with npm run dev command. After starting, try to request the products service

curl --location --request GET 'http://localhost:3000/api/products/list'

It will return "products.list"

Use the docker image

There is a docker image for this project Docker Hub you can find it on this URL

To run this image run the following command:

docker run -d -p 8080:3000 --env SERVICEDIR=build/services mhm0ud/moleculer

After starting, try to request the products service

curl --location --request GET 'http://localhost:8080/api/products/list'

It will return "products.list"

Services

  • api: API Gateway service
  • products: Sample service with list, update and get actions.

About

It's an example for moleculer project.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages