Skip to content

Commit

Permalink
Prettier + README update
Browse files Browse the repository at this point in the history
  • Loading branch information
cyri113 committed May 21, 2023
1 parent 1c9f11a commit f379cd4
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 8 deletions.
15 changes: 14 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
- [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
```
2 changes: 1 addition & 1 deletion docker-compose.dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ services:
- 15672:15672
environment:
- RABBITMQ_DEFAULT_USER=root
- RABBITMQ_DEFAULT_PASS=pass
- RABBITMQ_DEFAULT_PASS=pass
2 changes: 1 addition & 1 deletion docker-compose.test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,4 @@ services:
image: "rabbitmq:3-management-alpine"
environment:
- RABBITMQ_DEFAULT_USER=root
- RABBITMQ_DEFAULT_PASS=pass
- RABBITMQ_DEFAULT_PASS=pass
8 changes: 3 additions & 5 deletions src/config/env.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand All @@ -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,
};

0 comments on commit f379cd4

Please sign in to comment.