Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/edgartec97/pubsub-nodejs-fastify
Project in NodeJS using Google Cloud Platform (GCP) PubSub and Fastify as web framework
https://github.com/edgartec97/pubsub-nodejs-fastify
clean-architecture ddd fastify gcp gcp-p hexagonal-architecture pusub typescript
Last synced: 7 days ago
JSON representation
Project in NodeJS using Google Cloud Platform (GCP) PubSub and Fastify as web framework
- Host: GitHub
- URL: https://github.com/edgartec97/pubsub-nodejs-fastify
- Owner: EdgarTec97
- Created: 2022-05-23T05:30:48.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-01-04T23:07:58.000Z (12 months ago)
- Last Synced: 2024-01-05T17:49:19.774Z (12 months ago)
- Topics: clean-architecture, ddd, fastify, gcp, gcp-p, hexagonal-architecture, pusub, typescript
- Language: TypeScript
- Homepage:
- Size: 71.3 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Challenge
Challenge is a ... TODO: Place description here
## 💻 I'm a dev, how do I get started?
Prerequisites:
- [Node.js](https://nodejs.org/es/download): version v14.17.2
- [TypeScript](https://www.typescriptlang.org):
- [Yarn](https://www.yarn.com/): version 1.22.17
- [Docker](https://docs.docker.com/get-docker/): version 20.10.8
- [Docker-compose](https://docs.docker.com/compose/install/): version 1.29.2## ENDPOINTS
- [POST] `http://localhost:4000/publish` Send message by kafka with body like this...
```json
{
"message": {
"data": {
"id": "1877888",
"type": "tracking_carrier_service_initialize",
"occurredAt": "2022-05-04T05:41:24.120Z",
"attributes": {
"carriers": [
{
"carrier": "ENVIA",
"country": "CO",
"serviceType": "STANDARD",
"version": "1.0.0",
"trackingIds": ["014994732425"],
"providerInfo": {
"email": "[email protected]",
"clientId": "123"
}
}
]
}
},
"meta": {}
}
}
```Now:
# Steps to follow in sequential order
```bash
git clone [email protected]:EdgarTec97/PubSub-NodeJS-Fastify.git
cd PubSub-NodeJS-Fastify
yarn
```You are now good ready to go!! 👯
### `yarn` scripts
- `start`: run the project in development mode with nodemon