-
-
Notifications
You must be signed in to change notification settings - Fork 1
feat: add RabbitMQ module and service for message handling #18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
npsg02
wants to merge
23
commits into
pnstack:master
Choose a base branch
from
npsg02:master
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 11 commits
Commits
Show all changes
23 commits
Select commit
Hold shift + click to select a range
0c6d84c
feat: add RabbitMQ module and service for message handling
f4f84f6
feat: add Redis module and service for pub/sub message handling
7a1cd92
feat: add NATS module and service for message handling
fc8910a
feat: add amqplib and nats dependencies to package.json
c53813a
feat: implement core module with validation and exception handling
12d5fd0
feat: add Kafka module and service for message handling
65ebd25
feat: add Kong module and service for API gateway integration
6ccea04
update change
fd11857
update
f44bfc1
update
508d223
update
2a33a44
update
e0f7bde
update
3cd0d49
update
29db372
update
841b586
feat: evm
6c4e268
Initial plan
Copilot c0d4d7a
Implement complete ScyllaDB module with base repository and example
Copilot 0898ec6
Merge pull request #1 from npsg02/copilot/fix-2d2fb652-782f-4d33-9caa…
npsg02 f244d5c
Initial plan
Copilot 3ac77aa
Implement comprehensive authentication system with specialized services
Copilot 4e85a35
Complete comprehensive authentication system implementation with docu…
Copilot 3cfbbc2
Merge pull request #2 from npsg02/copilot/fix-2d61ecbd-5323-4d5e-8dc9…
npsg02 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
skip lint error and and format error if have |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"cst": { | ||
"prefix": "cst", | ||
"description": "cst", | ||
"scope": "typescript", | ||
"body": [ | ||
"constructor() {}" | ||
] | ||
} | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,45 +1,116 @@ | ||
version: '3.8' | ||
services: | ||
postgres: | ||
image: postgres:13 | ||
image: postgres:16 | ||
restart: on-failure | ||
ports: | ||
- 5432:5432 | ||
- ${POSTGRES_PORT}:${POSTGRES_PORT} | ||
environment: | ||
- POSTGRES_USER=prisma | ||
- POSTGRES_PASSWORD=pd8cDXMA | ||
- POSTGRES_DB=postgres | ||
- DB_PORT=5432 | ||
- POSTGRES_USER=${POSTGRES_USER} | ||
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD} | ||
- POSTGRES_DB=${POSTGRES_DB} | ||
- DB_PORT=${POSTGRES_PORT} | ||
- DB_SCHEMA=public | ||
volumes: | ||
- postgres-data:/var/lib/postgresql/data | ||
|
||
mongodb: | ||
image: mongo:latest | ||
container_name: mongodb | ||
ports: | ||
- '${MONGODB_PORT:-27017}:27017' | ||
volumes: | ||
- mongodb_data:/data/db | ||
environment: | ||
- MONGO_INITDB_ROOT_USERNAME=${MONGODB_USER:-admin} | ||
- MONGO_INITDB_ROOT_PASSWORD=${MONGODB_PASSWORD:-password} | ||
restart: unless-stopped | ||
|
||
redis: | ||
image: redis/redis-stack:latest | ||
restart: on-failure | ||
ports: | ||
- 8001:8001 | ||
- 6379:6379 | ||
- 8011:8001 | ||
- ${REDIS_PORT}:6379 | ||
volumes: | ||
- redis-data:/data | ||
api: | ||
image: ghcr.io/pnstack/nestjs-auth-service:release | ||
container_name: nestjs-auth-service | ||
|
||
zookeeper: | ||
image: confluentinc/cp-zookeeper:latest | ||
environment: | ||
ZOOKEEPER_CLIENT_PORT: 2181 | ||
ZOOKEEPER_TICK_TIME: 2000 | ||
ports: | ||
- 22181:2181 | ||
|
||
kafka: | ||
image: confluentinc/cp-kafka:latest | ||
depends_on: | ||
- postgres | ||
- redis | ||
restart: on-failure | ||
- zookeeper | ||
ports: | ||
- 4005:4005 | ||
# volumes: | ||
# - /app/node_modules | ||
# - .:/app | ||
env_file: | ||
- .env | ||
- ${KAFKA_PORT}:9092 | ||
environment: | ||
- REDIS_HOST=redis | ||
- DB_HOST=postgres | ||
- DATABASE_URL=postgresql://prisma:pd8cDXMA@postgres:5432/postgres?schema=public&sslmode=prefer | ||
KAFKA_BROKER_ID: 1 | ||
KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181 | ||
KAFKA_LISTENERS: PLAINTEXT://0.0.0.0:29092,OUTSIDE://0.0.0.0:9092 | ||
KAFKA_ADVERTISED_LISTENERS: PLAINTEXT://kafka:29092,OUTSIDE://localhost:9092 | ||
KAFKA_LISTENER_SECURITY_PROTOCOL_MAP: PLAINTEXT:PLAINTEXT,OUTSIDE:PLAINTEXT | ||
KAFKA_INTER_BROKER_LISTENER_NAME: PLAINTEXT | ||
KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR: 1 | ||
KAFKA_AUTO_CREATE_TOPICS_ENABLE: 'true' | ||
KAFKA_NUM_PARTITIONS: 1 | ||
KAFKA_DEFAULT_REPLICATION_FACTOR: 1 | ||
KAFKA_MIN_INSYNC_REPLICAS: 1 | ||
|
||
kafka-ui: | ||
image: provectuslabs/kafka-ui:latest | ||
ports: | ||
- 8181:8080 | ||
depends_on: | ||
- kafka | ||
environment: | ||
KAFKA_CLUSTERS_0_NAME: local | ||
KAFKA_CLUSTERS_0_BOOTSTRAPSERVERS: kafka:29092 | ||
KAFKA_CLUSTERS_0_ZOOKEEPER: zookeeper:2181 | ||
|
||
# nestjs-auth-service: | ||
# image: ghcr.io/pnstack/nestjs-auth-service:release | ||
# container_name: nestjs-auth-service | ||
# build: | ||
# context: . | ||
# dockerfile: Dockerfile | ||
# depends_on: | ||
# - postgres | ||
# - redis | ||
# restart: on-failure | ||
# ports: | ||
# - 4005:4005 | ||
# volumes: | ||
# - /app/node_modules | ||
# - .:/app | ||
# env_file: | ||
# - .env | ||
# environment: | ||
# - REDIS_HOST=redis | ||
# - DB_HOST=postgres | ||
# - DATABASE_URL=postgresql://prisma:pd8cDXMA@postgres:5432/postgres?schema=public&sslmode=prefer | ||
|
||
scylla: | ||
image: scylladb/scylla | ||
container_name: scylla-node1 | ||
ports: | ||
- '9042:9042' # CQL | ||
- '7000:7000' # intra-node communication | ||
- '7001:7001' # TLS intra-node | ||
- '7199:7199' # JMX | ||
- '10000:10000' # Alternator (DynamoDB API) | ||
volumes: | ||
- scylla-data:/var/lib/scylla | ||
environment: | ||
- SCYLLA_CLUSTER_NAME=my-scylla-cluster | ||
- SCYLLA_DC=dc1 | ||
- SCYLLA_RACK=rack1 | ||
|
||
volumes: | ||
redis-data: | ||
postgres-data: | ||
mongodb_data: | ||
scylla-data: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
id: stock_price | ||
namespace: company.team | ||
|
||
tasks: | ||
- id: hello | ||
type: io.kestra.plugin.core.log.Log | ||
message: Hello World! 🚀 | ||
|
||
- id: send_data | ||
type: io.kestra.plugin.core.http.Request | ||
uri: https://dummyjson.com/products | ||
method: GET | ||
contentType: application/json | ||
|
||
- id: get_price | ||
type: io.kestra.plugin.core.http.Request | ||
uri: https://vcbs.com.vn/api/v1/ttpt-companies/VCB?locale=vi | ||
method: GET | ||
contentType: application/json | ||
|
||
- id: log | ||
type: io.kestra.plugin.core.log.Log | ||
message: Hello {{outputs.get_price.outputFiles}} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,88 @@ | ||
version: '3' | ||
|
||
services: | ||
kong-postgres: | ||
container_name: kong-postgres | ||
image: postgres:16-alpine | ||
environment: | ||
POSTGRES_USER: kong | ||
POSTGRES_DB: kong | ||
POSTGRES_PASSWORD: kong123456 | ||
volumes: | ||
- kong_db_data:/var/lib/postgresql/data | ||
restart: always | ||
networks: | ||
- kong-net | ||
|
||
kong-migrations: | ||
image: kong:3.1.1-alpine | ||
environment: | ||
KONG_DATABASE: postgres | ||
KONG_PG_HOST: kong-postgres | ||
KONG_PG_PORT: 5432 | ||
KONG_PG_USER: kong | ||
KONG_PG_PASSWORD: kong123456 | ||
KONG_PG_DATABASE: kong | ||
command: sh -c "kong migrations bootstrap && kong migrations up" | ||
restart: on-failure:5 | ||
depends_on: | ||
- kong-postgres | ||
networks: | ||
- kong-net | ||
|
||
kong: | ||
image: kong:3.1.1-alpine | ||
environment: | ||
LC_CTYPE: en_US.UTF-8 | ||
LC_ALL: en_US.UTF-8 | ||
KONG_NGINX_PROXY_PROXY_IGNORE_CLIENT_ABORT: "on" | ||
KONG_DATABASE: postgres | ||
KONG_PG_HOST: kong-postgres | ||
KONG_PG_PORT: 5432 | ||
KONG_PG_DATABASE: kong | ||
KONG_PG_USER: kong | ||
KONG_PG_PASSWORD: kong123456 | ||
# KONG_DNS_RESOLVER: 10.0.0.224:8600 | ||
KONG_DNS_STATE_TTL: 6 | ||
KONG_LOG_LEVEL: "error" | ||
KONG_HEADERS: "off" | ||
KONG_PROXY_ACCESS_LOG: /dev/stdout | ||
KONG_ADMIN_ACCESS_LOG: /dev/stdout | ||
KONG_PROXY_ERROR_LOG: /dev/stderr | ||
KONG_ADMIN_ERROR_LOG: /dev/stderr | ||
KONG_ADMIN_LISTEN: 0.0.0.0:8001, 0.0.0.0:8444 ssl | ||
# KONG_PREFIX: /var/run/kong | ||
ports: | ||
- 8180:8000 | ||
- 8581:8001 | ||
depends_on: | ||
- kong-migrations | ||
# volumes: | ||
# - kong_prefix_vol:/var/run/kong | ||
# - kong_tmp_vol:/tmp | ||
restart: always | ||
networks: | ||
- kong-net | ||
|
||
konga: | ||
image: pantsel/konga | ||
restart: always | ||
ports: | ||
- 8182:1338 | ||
environment: | ||
- NODE_ENV=develop | ||
- NO_AUTH=true | ||
depends_on: | ||
- kong-postgres | ||
- kong | ||
networks: | ||
- kong-net | ||
|
||
networks: | ||
kong-net: | ||
driver: bridge | ||
|
||
volumes: | ||
kong_db_data: | ||
# kong_prefix_vol: | ||
# kong_tmp_vol: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.