Skip to content

msHamed1/Azure-Nest

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Global architecture

img

Project usecase

This is example of an application that produce data , and send it to the Azure event hub then , reads data from an Azure Event Hub and sends them to different Service Bus queues based on specific criteria. Subsequently, the application should listen to the queues, retrieve the messages, and store them in a MongoDB database for further processing and analysis. with appropriate logging mechanisms to track application events, errors, and debugging information Error messages and logs are stored in a structured format and easily accessible for troubleshooting purpose

To setup the project

First you need to install docker Docker Web site . Then

# clone the project 
git clone https://github.com/msHamed1/Azure-Nest.git

# navigate to the project 
cd Azure-Nest

# build the container it will run mongo , mongo-express  and will build the frontend for you  
docker-compose up

At this point you will have mongo db connection string bellow
MongoExpress #PORT 8081 [use name = mexpress , password = mexpress] Frontend on #PORT 4002 running on a docker container

# install backend dependicies 
cd packages/Backend && npm install 

# [YOU are in the backend folder still for windows ] run

echo > .env 

#add your you settings for your .env file 

EVENT_HUB_CONNECTION=       # your EVENT hub connection string consume

EVENT_HUB_SEND_CONNECTION=  #your EVENT hub  connection string for producing events

EVENT_HUB_GROUP=            "$Default"

EVENT_HUB_QUEUE_NAME1=      # your EVENT hub QUEUE_NAME
EVENT_HUB_QUEUE_NAME2=      # your EVENT hub QUEUE_NAME 2


EVENT_BUS_SERVICE=          # your EVENT_BUS connection string


# Once .env file is created and its values added 

### run and combile 

npm run start:dev           #Project gateway

npm run start:EH-consumer   #Event hub consumer microservice

npm run start:EH-producer   #Event hub producer microservice

npm run start:SB-consumer   #Seruvce bus consumer microservice

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published