Nest Logo

Built with Nestjs A progressive Node.js framework for building efficient and scalable server-side applications.

NPM Version Package License NPM Downloads CircleCI Coverage Discord Backers on Open Collective Support us

Description

Product Catalog Service is a microservice within an e-commerce platform responsible for managing and searching products.

Installation

npm install

Running the app

# Start Redis server
$ docker-compose up

# Run app
$ npm run start

# watch mode
$ npm run start:dev

Test

# unit tests
$ npm run test

Installation using Docker

# build the image
$ docker build -t product-catalog-service .

# run the container
$ docker run -d -p 3000:3000 product-catalog-service

Provided Endpoints

# Seed database 
$ curl -X POST http://localhost:3000/seed

# search products 
$ curl -X GET http://localhost:3000/products/search?query=

For more info kindly check out this document

https://docs.google.com/document/d/1UHLIX171mBpmdZ7juD5ffikAr8c6QGU0-74WSouQ7C0/edit?usp=sharing