Skip to content

Commit

Permalink
publish extension
Browse files Browse the repository at this point in the history
  • Loading branch information
teaglebuilt committed Sep 9, 2023
1 parent a1e42aa commit 61a7f72
Show file tree
Hide file tree
Showing 5 changed files with 64 additions and 3 deletions.
1 change: 1 addition & 0 deletions .gitignore
@@ -0,0 +1 @@
.envrc
37 changes: 37 additions & 0 deletions .vscode/launch.json
@@ -0,0 +1,37 @@
{
"version": "0.2.0",
"configurations": [
{
"type": "node",
"request": "launch",
"name": "Mocha Tests",
"program": "${workspaceFolder}/node_modules/mocha/bin/_mocha",
"args": [
"--require",
"esm",
"--require",
"${workspaceFolder}/functions/your-setup.js",
"--reporter",
"dot",
"--slow",
"5000",
"--colors",
"${workspaceFolder}/functions/**/*.spec.js",

],
"internalConsoleOptions": "openOnSessionStart",
"skipFiles": [
"<node_internals>/**"
]
},
{
"type": "node",
"request": "launch",
"name": "Launch Program",
"skipFiles": [
"<node_internals>/**"
],
"program": "${workspaceFolder}/src/index.js"
}
]
}
13 changes: 10 additions & 3 deletions README.md
Expand Up @@ -13,12 +13,19 @@ Currently, here are the events available to produce. Events are labeled as 1st o
* _1st Class_ `On User Sign In`


#### Brokers Available
#### Broker Clients Available

1. **Kafka** - TODO: explain
Two parameters are required.
- `Broker` - `https://broker.com:9092`
- `Topic` - `my-topic-to-publish-events-to`


1. **Kafka** - Uses [KafkaJS](https://kafka.js.org/docs/getting-started) and is currently the only supported client.
2. **NATS** - Next supported client on the list


### Installation

> Coming soon ...
Visit extension in firebase extensions store [here](https://console.firebase.google.com/project/teaglebuilt-6226f/publisher/extensions/firebase-auth-outbox/v/0.0.1-beta.0).

You can also click [this link](https://console.firebase.google.com/project/teaglebuilt-6226f/publisher/extensions/firebase-auth-outbox/v/0.0.1-beta.0) to directly install the extension, assuming you already have firebase and authentication setup.
1 change: 1 addition & 0 deletions functions/.gitignore
Expand Up @@ -6,3 +6,4 @@
typings/

node_modules/
.envrc
15 changes: 15 additions & 0 deletions run.sh
@@ -0,0 +1,15 @@
#!/usr/bin/env bash

set -euo pipefail


upload() {
firebase ext:dev:upload teaglebuilt/firebase-auth-outbox --local
}

function help {
printf "%s <task> [args]\n\nTasks:\n" "${0}"
compgen -A function | grep -v "^_" | cat -n
}

"${@:-help}"

0 comments on commit 61a7f72

Please sign in to comment.