Skip to content

Instantly share code, notes, and snippets.

View thiagotigaz's full-sized avatar
🎯
Focusing

Thiago Lima thiagotigaz

🎯
Focusing
View GitHub Profile
@thiagotigaz
thiagotigaz / Dockerfile
Last active March 22, 2022 05:53
NodeJS Microservices with NestJS, Kafka, and Kubernetes - Part 4
FROM node:16
ARG KAFKA_BROKERS=kafka-service:9092
ENV KAFKA_BROKERS ${KAFKA_BROKERS}
WORKDIR /usr/src/app
COPY package*.json ./
RUN npm install
@thiagotigaz
thiagotigaz / api-services.controller.ts
Last active February 26, 2022 07:25
NodeJS Microservices with NestJS, Kafka, and Kubernetes - Part 3
import {
Controller,
Get,
Post,
Body,
Patch,
Param,
Delete,
} from '@nestjs/common';
import { ServicesService } from './services.service';
@thiagotigaz
thiagotigaz / api-request.sh
Created February 24, 2022 05:57
NodeJS Microservices with NestJS, Kafka, and Kubernetes - Part 1
curl --location --request POST 'http://localhost:3000/services' \
--header 'Content-Type: application/json' \
--data-raw '{
"name": "Web Development",
"description": "description for Web Development"
}'
@thiagotigaz
thiagotigaz / api-request.sh
Created February 24, 2022 05:40
NodeJS Microservices with NestJS, Kafka, and Kubernetes - Part 2
curl --location --request POST 'http://localhost:3000/services' \
--header 'Content-Type: application/json' \
--data-raw '{
"name": "Web Development",
"description": "description for Web Development"
}'
@thiagotigaz
thiagotigaz / docker-compose.yaml
Created January 3, 2022 05:29
Docker Compose Kafka Setup for Local Development
version: '3'
services:
zookeeper:
image: confluentinc/cp-zookeeper:latest
environment:
ZOOKEEPER_CLIENT_PORT: 2181
ports:
- 2181:2181
kafka:
public class AccountAuthenticator extends AbstractAccountAuthenticator {
private final Context context;
@Inject @ClientId String clientId;
@Inject @ClientSecret String clientSecret;
@Inject ApiService apiService;
public AccountAuthenticator(Context context) {
super(context);