Skip to content

Commit

Permalink
feat: Deploying Appwrite function to report appwrite event to google …
Browse files Browse the repository at this point in the history
…analytics
  • Loading branch information
HrithikSampson committed Oct 31, 2023
2 parents c78b17f + 22b3f2c commit d3d4895
Show file tree
Hide file tree
Showing 35 changed files with 321 additions and 446 deletions.
34 changes: 17 additions & 17 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,23 +10,23 @@ Templates for [Appwrite](https://appwrite.io/) Functions. These templates can be
# List of Templates

<!-- TABLE:START -->
| Template | Node.js | Python | PHP | Dart | Bun | C++ | Deno | .NET | Java | Kotlin | Node.js (TypeScript) | Ruby | Swift |
| --------------------------- | ------------------------------------- | ------------------------------- | --------------------------- | ---------------------------- | ---------------- | ---------------- | ----------------- | ------------------- | ----------------- | ------------------- | ---------------------------- | ----------------- | ------------------ |
| Starter | [](node/starter) | [](python/starter) | [](php/starter) | [](dart/starter) | [](bun/starter) | [](cpp/starter) | [](deno/starter) | [](dotnet/starter) | [](java/starter) | [](kotlin/starter) | [](node-typescript/starter) | [](ruby/starter) | [](swift/starter) |
| Prompt ChatGPT | [](node/prompt-chatgpt) | [](python/prompt_chatgpt) | [](php/prompt-chatgpt) | [](dart/prompt_chatgpt) | 🏗️ | 🏗️ | 🏗️ | 🏗️ | 🏗️ | 🏗️ | 🏗️ | 🏗️ | 🏗️ |
| Censor with Redact | [](node/censor-with-redact) | [](python/censor_with_redact) | 🏗️ | [](dart/censor_with_redact) | 🏗️ | 🏗️ | 🏗️ | 🏗️ | 🏗️ | 🏗️ | 🏗️ | 🏗️ | 🏗️ |
| Email Contact Form | [](node/email-contact-form) | [](python/email_contact_form) | [](php/email-contact-form) | 🏗️ | 🏗️ | 🏗️ | 🏗️ | 🏗️ | 🏗️ | 🏗️ | 🏗️ | 🏗️ | 🏗️ |
| Sync with Algolia | [](node/sync-with-algolia) | [](python/sync_with_algolia) | [](php/sync-with-algolia) | 🏗️ | 🏗️ | 🏗️ | 🏗️ | 🏗️ | 🏗️ | 🏗️ | 🏗️ | 🏗️ | 🏗️ |
| Discord Command Bot | [](node/discord-command-bot) | [](python/discord_command_bot) | 🏗️ | 🏗️ | 🏗️ | 🏗️ | 🏗️ | 🏗️ | 🏗️ | 🏗️ | 🏗️ | 🏗️ | 🏗️ |
| Analyze with PerspectiveAPI | [](node/analyze-with-perspectiveapi) | 🏗️ | 🏗️ | 🏗️ | 🏗️ | 🏗️ | 🏗️ | 🏗️ | 🏗️ | 🏗️ | 🏗️ | 🏗️ | 🏗️ |
| Generate PDF | [](node/generate-pdf) | 🏗️ | 🏗️ | 🏗️ | 🏗️ | 🏗️ | 🏗️ | 🏗️ | 🏗️ | 🏗️ | 🏗️ | 🏗️ | 🏗️ |
| Github Issue Bot | [](node/github-issue-bot) | 🏗️ | 🏗️ | 🏗️ | 🏗️ | 🏗️ | 🏗️ | 🏗️ | 🏗️ | 🏗️ | 🏗️ | 🏗️ | 🏗️ |
| Payments with Stripe | [](node/payments-with-stripe) | 🏗️ | 🏗️ | 🏗️ | 🏗️ | 🏗️ | 🏗️ | 🏗️ | 🏗️ | 🏗️ | 🏗️ | 🏗️ | 🏗️ |
| Push Notification with FCM | [](node/push-notification-with-fcm) | 🏗️ | 🏗️ | 🏗️ | 🏗️ | 🏗️ | 🏗️ | 🏗️ | 🏗️ | 🏗️ | 🏗️ | 🏗️ | 🏗️ |
| Subscriptions with Stripe | [](node/subscriptions-with-stripe) | 🏗️ | 🏗️ | 🏗️ | 🏗️ | 🏗️ | 🏗️ | 🏗️ | 🏗️ | 🏗️ | 🏗️ | 🏗️ | 🏗️ |
| Sync with Meilisearch | [](node/sync-with-meilisearch) | 🏗️ | 🏗️ | 🏗️ | 🏗️ | 🏗️ | 🏗️ | 🏗️ | 🏗️ | 🏗️ | 🏗️ | 🏗️ | 🏗️ |
| URL Shortener | [](node/url-shortener) | 🏗️ | 🏗️ | 🏗️ | 🏗️ | 🏗️ | 🏗️ | 🏗️ | 🏗️ | 🏗️ | 🏗️ | 🏗️ | 🏗️ |
| WhatsApp with Vonage | [](node/whatsapp-with-vonage) | 🏗️ | 🏗️ | 🏗️ | 🏗️ | 🏗️ | 🏗️ | 🏗️ | 🏗️ | 🏗️ | 🏗️ | 🏗️ | 🏗️ |
| Template | Node.js | Python | PHP | Dart | Deno | Node.js (TypeScript) | Bun | C++ | .NET | Java | Kotlin | Ruby | Swift |
| --------------------------- | ------------------------------------- | -------------------------------- | --------------------------- | ---------------------------- | ------------------------------- | ------------------------------------------ | ---------------- | ---------------- | ------------------- | ----------------- | ------------------- | ----------------- | ------------------ |
| Starter | [](node/starter) | [](python/starter) | [](php/starter) | [](dart/starter) | [](deno/starter) | [](node-typescript/starter) | [](bun/starter) | [](cpp/starter) | [](dotnet/starter) | [](java/starter) | [](kotlin/starter) | [](ruby/starter) | [](swift/starter) |
| Prompt ChatGPT | [](node/prompt-chatgpt) | [](python/prompt_chatgpt) | [](php/prompt-chatgpt) | [](dart/prompt_chatgpt) | 🏗️ | 🏗️ | 🏗️ | 🏗️ | 🏗️ | 🏗️ | 🏗️ | 🏗️ | 🏗️ |
| WhatsApp with Vonage | [](node/whatsapp-with-vonage) | [](python/whatsapp_with_vonage) | 🏗️ | 🏗️ | [](deno/whatsapp-with-vonage) | [](node-typescript/whatsapp-with-vonage) | 🏗️ | 🏗️ | 🏗️ | 🏗️ | 🏗️ | 🏗️ | 🏗️ |
| Censor with Redact | [](node/censor-with-redact) | [](python/censor_with_redact) | 🏗️ | [](dart/censor_with_redact) | 🏗️ | 🏗️ | 🏗️ | 🏗️ | 🏗️ | 🏗️ | 🏗️ | 🏗️ | 🏗️ |
| Sync with Meilisearch | [](node/sync-with-meilisearch) | 🏗️ | 🏗️ | 🏗️ | [](deno/sync-with-meilisearch) | [](node-typescript/sync-with-meilisearch) | 🏗️ | 🏗️ | 🏗️ | 🏗️ | 🏗️ | 🏗️ | 🏗️ |
| Email Contact Form | [](node/email-contact-form) | [](python/email_contact_form) | [](php/email-contact-form) | 🏗️ | 🏗️ | 🏗️ | 🏗️ | 🏗️ | 🏗️ | 🏗️ | 🏗️ | 🏗️ | 🏗️ |
| Sync with Algolia | [](node/sync-with-algolia) | [](python/sync_with_algolia) | [](php/sync-with-algolia) | 🏗️ | 🏗️ | 🏗️ | 🏗️ | 🏗️ | 🏗️ | 🏗️ | 🏗️ | 🏗️ | 🏗️ |
| Discord Command Bot | [](node/discord-command-bot) | [](python/discord_command_bot) | 🏗️ | 🏗️ | 🏗️ | 🏗️ | 🏗️ | 🏗️ | 🏗️ | 🏗️ | 🏗️ | 🏗️ | 🏗️ |
| Analyze with PerspectiveAPI | [](node/analyze-with-perspectiveapi) | 🏗️ | 🏗️ | 🏗️ | 🏗️ | 🏗️ | 🏗️ | 🏗️ | 🏗️ | 🏗️ | 🏗️ | 🏗️ | 🏗️ |
| Generate PDF | [](node/generate-pdf) | 🏗️ | 🏗️ | 🏗️ | 🏗️ | 🏗️ | 🏗️ | 🏗️ | 🏗️ | 🏗️ | 🏗️ | 🏗️ | 🏗️ |
| Github Issue Bot | [](node/github-issue-bot) | 🏗️ | 🏗️ | 🏗️ | 🏗️ | 🏗️ | 🏗️ | 🏗️ | 🏗️ | 🏗️ | 🏗️ | 🏗️ | 🏗️ |
| Payments with Stripe | [](node/payments-with-stripe) | 🏗️ | 🏗️ | 🏗️ | 🏗️ | 🏗️ | 🏗️ | 🏗️ | 🏗️ | 🏗️ | 🏗️ | 🏗️ | 🏗️ |
| Push Notification with FCM | [](node/push-notification-with-fcm) | 🏗️ | 🏗️ | 🏗️ | 🏗️ | 🏗️ | 🏗️ | 🏗️ | 🏗️ | 🏗️ | 🏗️ | 🏗️ | 🏗️ |
| Subscriptions with Stripe | [](node/subscriptions-with-stripe) | 🏗️ | 🏗️ | 🏗️ | 🏗️ | 🏗️ | 🏗️ | 🏗️ | 🏗️ | 🏗️ | 🏗️ | 🏗️ | 🏗️ |
| URL Shortener | [](node/url-shortener) | 🏗️ | 🏗️ | 🏗️ | 🏗️ | 🏗️ | 🏗️ | 🏗️ | 🏗️ | 🏗️ | 🏗️ | 🏗️ | 🏗️ |
<!-- TABLE:END -->

✅ = Done - Function is implemented in this runtime.
Expand Down
4 changes: 0 additions & 4 deletions appwrite.json

This file was deleted.

2 changes: 1 addition & 1 deletion bun/starter/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ Sample `200` Response:

```json
{
"motto": "Build Fast. Scale Big. All in One Place.",
"motto": "Build like a team of hundreds_",
"learn": "https://appwrite.io/docs",
"connect": "https://appwrite.io/discord",
"getInspired": "https://builtwith.appwrite.io"
Expand Down
2 changes: 1 addition & 1 deletion bun/starter/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export default async ({ req, res, log, error }: any) => {

// `res.json()` is a handy helper for sending JSON
return res.json({
motto: "Build Fast. Scale Big. All in One Place.",
motto: "Build like a team of hundreds_",
learn: "https://appwrite.io/docs",
connect: "https://appwrite.io/discord",
getInspired: "https://builtwith.appwrite.io",
Expand Down
2 changes: 1 addition & 1 deletion cpp/starter/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ Sample `200` Response:

```json
{
"motto": "Build Fast. Scale Big. All in One Place.",
"motto": "Build like a team of hundreds_",
"learn": "https://appwrite.io/docs",
"connect": "https://appwrite.io/discord",
"getInspired": "https://builtwith.appwrite.io"
Expand Down
2 changes: 1 addition & 1 deletion cpp/starter/src/main.cc
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ namespace runtime {

// `context.res.json()` is a handy helper for sending JSON
Json::Value response;
response["motto"] = "Build Fast. Scale Big. All in One Place.";
response["motto"] = "Build like a team of hundreds_";
response["learn"] = "https://appwrite.io/docs";
response["connect"] = "https://appwrite.io/discord";
response["getInspired"] = "https://builtwith.appwrite.io";
Expand Down
2 changes: 1 addition & 1 deletion dart/starter/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ Sample `200` Response:

```json
{
"motto": "Build Fast. Scale Big. All in One Place.",
"motto": "Build like a team of hundreds_",
"learn": "https://appwrite.io/docs",
"connect": "https://appwrite.io/discord",
"getInspired": "https://builtwith.appwrite.io"
Expand Down
2 changes: 1 addition & 1 deletion dart/starter/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ Future<dynamic> main(final context) async {

// `res.json()` is a handy helper for sending JSON
return context.res.json({
'motto': 'Build Fast. Scale Big. All in One Place.',
'motto': 'Build like a team of hundreds_',
'learn': 'https://appwrite.io/docs',
'connect': 'https://appwrite.io/discord',
'getInspired': 'https://builtwith.appwrite.io',
Expand Down
2 changes: 1 addition & 1 deletion deno/starter/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ Sample `200` Response:

```json
{
"motto": "Build Fast. Scale Big. All in One Place.",
"motto": "Build like a team of hundreds_",
"learn": "https://appwrite.io/docs",
"connect": "https://appwrite.io/discord",
"getInspired": "https://builtwith.appwrite.io"
Expand Down
2 changes: 1 addition & 1 deletion deno/starter/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export default async ({ req, res, log, error }: any) => {

// `res.json()` is a handy helper for sending JSON
return res.json({
motto: "Build Fast. Scale Big. All in One Place.",
motto: "Build like a team of hundreds_",
learn: "https://appwrite.io/docs",
connect: "https://appwrite.io/discord",
getInspired: "https://builtwith.appwrite.io",
Expand Down
2 changes: 1 addition & 1 deletion dotnet/starter/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ Sample `200` Response:

```json
{
"motto": "Build Fast. Scale Big. All in One Place.",
"motto": "Build like a team of hundreds_",
"learn": "https://appwrite.io/docs",
"connect": "https://appwrite.io/discord",
"getInspired": "https://builtwith.appwrite.io"
Expand Down
2 changes: 1 addition & 1 deletion dotnet/starter/src/Index.cs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public async Task<RuntimeOutput> Main(RuntimeContext Context)
// `Context.Res.Json()` is a handy helper for sending JSON
return Context.Res.Json(new Dictionary<string, object?>()
{
{ "motto", "Build Fast. Scale Big. All in One Place." },
{ "motto", "Build like a team of hundreds_" },
{ "learn", "https://appwrite.io/docs" },
{ "connect", "https://appwrite.io/discord" },
{ "getInspired", "https://builtwith.appwrite.io" },
Expand Down
2 changes: 1 addition & 1 deletion java/starter/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ Sample `200` Response:

```json
{
"motto": "Build Fast. Scale Big. All in One Place.",
"motto": "Build like a team of hundreds_",
"learn": "https://appwrite.io/docs",
"connect": "https://appwrite.io/discord",
"getInspired": "https://builtwith.appwrite.io"
Expand Down
2 changes: 1 addition & 1 deletion java/starter/src/Main.java
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public RuntimeOutput main(RuntimeContext context) throws Exception {
}

Map<String, Object> json = new HashMap<>();
json.put("motto", "Build Fast. Scale Big. All in One Place.");
json.put("motto", "Build like a team of hundreds_");
json.put("learn", "https://appwrite.io/docs");
json.put("connect", "https://appwrite.io/discord");
json.put("getInspired", "https://builtwith.appwrite.io");
Expand Down
2 changes: 1 addition & 1 deletion kotlin/starter/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ Sample `200` Response:

```json
{
"motto": "Build Fast. Scale Big. All in One Place.",
"motto": "Build like a team of hundreds_",
"learn": "https://appwrite.io/docs",
"connect": "https://appwrite.io/discord",
"getInspired": "https://builtwith.appwrite.io"
Expand Down
2 changes: 1 addition & 1 deletion kotlin/starter/src/Main.kt
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ class Main {

// `context.res.json()` is a handy helper for sending JSON
return context.res.json(mutableMapOf(
"motto" to "Build Fast. Scale Big. All in One Place.",
"motto" to "Build like a team of hundreds_",
"learn" to "https://appwrite.io/docs",
"connect" to "https://appwrite.io/discord",
"getInspired" to "https://builtwith.appwrite.io"
Expand Down
2 changes: 1 addition & 1 deletion node-typescript/starter/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ Sample `200` Response:

```json
{
"motto": "Build Fast. Scale Big. All in One Place.",
"motto": "Build like a team of hundreds_",
"learn": "https://appwrite.io/docs",
"connect": "https://appwrite.io/discord",
"getInspired": "https://builtwith.appwrite.io"
Expand Down
2 changes: 1 addition & 1 deletion node-typescript/starter/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export default async ({ req, res, log, error }: Context) => {

// `res.json()` is a handy helper for sending JSON
return res.json({
motto: 'Build Fast. Scale Big. All in One Place.',
motto: 'Build like a team of hundreds_',
learn: 'https://appwrite.io/docs',
connect: 'https://appwrite.io/discord',
getInspired: 'https://builtwith.appwrite.io',
Expand Down
Loading

0 comments on commit d3d4895

Please sign in to comment.