Skip to content

Lapakin/unicart

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

unicart

This is an event-driven architecture designed for working with products.

Description

Unicart is a microservices project that handles product management via an event-driven approach. It features a products service to manage product data, a notifications service to handle event consuming, and incorporates monitoring and queueing mechanisms.


Setup

1. Clone the Repository

First, download the project files by running the following command:

git clone https://github.com/Lapakin/unicart.git

2. Configure Environment Variables

Before launching the application, create a .env file in the project root to store your database credentials. Use the following format:

DB_USER=dev
DB_PASSWORD=12345

3. Launch the Application

Start the services using Docker via the provided Makefile:

make up

Services and Endpoints

Service Endpoint
Web Application / Products API http://localhost:8080
Prometheus Dashboard http://localhost:9090

Unit Testing

To execute the full suite of unit tests, use the following command:

make go-unit-tests

Notes

Prometheus Monitoring

When using the Prometheus Dashboard, you can track product-related metrics using the following example query:

{__name__=~"products_.*_total"}

About

This is an event-driven architecture designed for working with products.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors