git clone <repository-link>
cd MCMQYou 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).
Make sure you have Go installed. Then, run:
go mod tidyTo run the application in development mode with server and detailed debug messages, use:
go run . -dev -runserver -debug- -runserver: Starts the application server.
- -dev: Runs the project using the dev.env file.
- -debug: Provides detailed bug messages in the responses.
If you run the project without the -runserver flag:
go run . -dev -debugOnly the banji watcher service will run.