Skip to content

myselfajp/MCMQ

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

45 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MCMQ (Micro Command Macro Query)

Description

https://medium.com/hexaworks-papers/introducing-the-micro-command-macro-query-mcmq-pattern-6c6f81d70ccb

Installation

Step 1: Clone the repository

git clone <repository-link>
cd MCMQ

Step 2: Set environment variables

You need to set up both .env and dev.env files with the following parameters:

.env and dev.env parameters:

MONGODB_URI = <mongo-uri>
MONGODB_DB_NAME = <project-name>
MONGODB_MODEL_COLLECTION_NAME = <mongoModelCollection>
MONGODB_PATTERN_COLLECTION_NAME = <mongoPatternCollection>
ELASTICSEARCH = <elasticSearch-host>
EL_USERNAME = <elasticSearch-username>
EL_PASSWORD = <elasticSearch-password>

These parameters are essential since the project uses MongoDB to store structures and Elasticsearch as the primary database (additional databases will be added in the future).

Usage

Step 3: Install dependencies

Make sure you have Go installed. Then, run:

go mod tidy

Step 4: Start the application

To run the application in development mode with server and detailed debug messages, use:

go run . -dev -runserver -debug

Command options:

  • -runserver: Starts the application server.
  • -dev: Runs the project using the dev.env file.
  • -debug: Provides detailed bug messages in the responses.

Note:

If you run the project without the -runserver flag:

go run . -dev -debug

Only the banji watcher service will run.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages