saitobp / pms-microservice

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

PMS Microservices

PMS stands for Pizzaria Management System

Services

The current services available are:

  • api-products

Building Docker images

This is a monorepo, so for building the images we need to be at the root level, and build each individual Docker Image inside each app

api-products

docker image build -f ./apps/api-product/Dockerfile -t pms-microservices/api-products:0.1 .

Docker Compose

To run all docker images, use docker compose

docker-compose up

Api Products

To make a GET request for all products:

curl http://localhost:5000/api/products

To make a POST request for a product:

curl -X POST http://localhost:5000/api/products -H 'Content-Type: application/json' -d '{"name":"curl","quantity":"123"}'

About


Languages

Language:TypeScript 86.0%Language:Dockerfile 6.0%Language:HCL 4.2%Language:JavaScript 3.2%Language:HTML 0.5%Language:CSS 0.1%