Skip to content

Latest commit

 

History

5 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 

Repository files navigation

Microservice

This project is a nodejs microservice, which consists of two servers, the admin (nodejs, express, typeorm and postgres) and the main (nodejs, express, typeorm and mongodb) and they both communicate via a message broker RabbitMQ.

How to run the project

Running admin server.

cd admin
yarn install -- to install node modules
# To run the server
yarn start

Running main server.

cd main
yarn install -- to install node modules
# To run the server
yarn start

Usage

# Use postman or any other platform that makes requests to an API
# We will create a product on the admin server and the created product will be added on the main servers database as well.

API endpoint: http://localhost:8000/api/product
Type of request: POST
The request body (JSON): 
   {
    "title": "Test",
    "image": "test-image",
    "likes": "7"
   }

# After making the request the created product will be added to main and will be displayed on the terminal.

About

Microservice built with nodejs, typescript, MongoDB, RabbitMQ and PostgreSQL

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages