diff --git a/README.md b/README.md index 517bce6..07b6c51 100644 --- a/README.md +++ b/README.md @@ -44,4 +44,17 @@ docker compose -f docker-compose.dev.yml up #### Local Resources - [Bull Board](http://localhost:3000/admin/queues) -- [RabbitMQ Management](http://localhost:15672) \ No newline at end of file +- [RabbitMQ Management](http://localhost:15672) + +## Commands + +The following commands are also available. Note that while these are made available, the `docker compose` commands are the ones called throughout the CI/CD Pipeline. + +```bash +npm run prettier +npm run lint +npm run test +npm run dev +npm run build +npm run start +``` diff --git a/docker-compose.dev.yml b/docker-compose.dev.yml index bbb2eac..489dbb3 100644 --- a/docker-compose.dev.yml +++ b/docker-compose.dev.yml @@ -19,4 +19,4 @@ services: - 15672:15672 environment: - RABBITMQ_DEFAULT_USER=root - - RABBITMQ_DEFAULT_PASS=pass \ No newline at end of file + - RABBITMQ_DEFAULT_PASS=pass diff --git a/docker-compose.test.yml b/docker-compose.test.yml index f56259d..237e9c7 100644 --- a/docker-compose.test.yml +++ b/docker-compose.test.yml @@ -34,4 +34,4 @@ services: image: "rabbitmq:3-management-alpine" environment: - RABBITMQ_DEFAULT_USER=root - - RABBITMQ_DEFAULT_PASS=pass \ No newline at end of file + - RABBITMQ_DEFAULT_PASS=pass diff --git a/src/config/env.ts b/src/config/env.ts index 54fe6d1..26a1653 100644 --- a/src/config/env.ts +++ b/src/config/env.ts @@ -14,7 +14,7 @@ const schema = Joi.object() RABBITMQ_HOST: Joi.string().required().example("localhost"), RABBITMQ_PORT: Joi.number().required().example(5672), RABBITMQ_USER: Joi.string().required().example("root"), - RABBITMQ_PASS: Joi.string().required().example("pass") + RABBITMQ_PASS: Joi.string().required().example("pass"), }) .unknown(); @@ -32,12 +32,10 @@ const MONGODB_URL = `mongodb://${value.MONGODB_USER}:${value.MONGODB_PASS}@${ value.MONGODB_NAME !== undefined ? value.MONGODB_NAME : "" }`; -const RABBITMQ_URL = `amqp://${value.RABBITMQ_USER}:${value.RABBITMQ_PASS}@${ - value.RABBITMQ_HOST -}:${value.RABBITMQ_PORT}`; +const RABBITMQ_URL = `amqp://${value.RABBITMQ_USER}:${value.RABBITMQ_PASS}@${value.RABBITMQ_HOST}:${value.RABBITMQ_PORT}`; export const env = { ...value, MONGODB_URL, - RABBITMQ_URL + RABBITMQ_URL, };