Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/le2sky/nest-microservices

nestjs microservices application with Apache Kafka
https://github.com/le2sky/nest-microservices

kafka microservices nestjs

Last synced: 4 months ago
JSON representation

nestjs microservices application with Apache Kafka

Awesome Lists containing this project

README

        

## nest-microservices practice

## Installation

```bash
1. npm install (for each microservices)
2. docker-compose up (for each microservices)
```

## Configuration

```bash
--nest-ambassador service
CHECKOUT_URL=
STRIPE_KEY=

--microservices common
CONFLUENT_CLUSTER_SERVER=
CONFLUENT_API_KEY=
CONFLUENT_SECRET_KEY=
```

## Running the app

```bash
# development
$ npm run start

# watch mode
$ npm run start:dev

# production mode
$ npm run start:prod
```

## Test

```bash
# unit tests
$ npm run test

# e2e tests
$ npm run test:e2e

# test coverage
$ npm run test:cov
```

## Seeding

```
# ex) npm run seed:ambassadors
"seed:ambassadors": "ts-node src/commands/ambassador.seeder.ts",
"seed:products": "ts-node src/commands/product.seeder.ts",
"seed:orders": "ts-node src/commands/order.seeder.ts"
```

## License

Nest is [MIT licensed](LICENSE).