Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
99 changes: 83 additions & 16 deletions src/lib/stores/marketplace.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export const marketplace = [
export const marketplace: MarketplaceTemplate[] = [
{
icon: 'icon-lightning-bolt',
id: 'starter',
Expand All @@ -9,7 +9,7 @@ export const marketplace = [
events: [],
cron: '',
timeout: 15,
usecases: ['placeholder'],
usecases: ['Starter'],
runtimes: [
{
name: 'node-18.0',
Expand Down Expand Up @@ -66,13 +66,31 @@ export const marketplace = [
events: [],
cron: '',
timeout: 15,
usecases: ['placeholder'],
usecases: ['AI'],
runtimes: [
{
name: 'node-18.0',
commands: 'npm install',
entrypoint: 'src/main.js',
providerRootDirectory: 'node/prompt-chatgpt'
},
{
name: 'python-3.9',
commands: 'pip install -r requirements.txt',
entrypoint: 'src/main.py',
providerRootDirectory: 'python/prompt_chatgpt'
},
{
name: 'php-8.0',
commands: 'composer install',
entrypoint: 'src/index.php',
providerRootDirectory: 'php/prompt-chatgpt'
},
{
name: 'dart-2.17',
commands: 'dart pub get',
entrypoint: 'lib/main.dart',
providerRootDirectory: 'dart/prompt_chatgpt'
}
],
instructions: `For documentation and instructions check out <a target="_blank" rel="noopener noreferrer" class="link" href="https://github.com/appwrite/templates/tree/main/node/prompt-chatgpt">file</a>.`,
Expand Down Expand Up @@ -106,13 +124,19 @@ export const marketplace = [
events: [],
cron: '',
timeout: 15,
usecases: ['placeholder'],
usecases: ['Messaging'],
runtimes: [
{
name: 'node-18.0',
commands: 'npm install && npm run setup',
entrypoint: 'src/main.js',
entrypoint: 'src/main.js && npm run setup',
providerRootDirectory: 'node/discord-command-bot'
},
{
name: 'python-3.9',
commands: 'pip install -r requirements.txt && python src/setup.py',
entrypoint: 'src/main.py',
providerRootDirectory: 'python/discord_command_bot'
}
],
instructions: `For documentation and instructions check out <a target="_blank" rel="noopener noreferrer" class="link" href="https://github.com/appwrite/templates/tree/main/node/discord-command-bot">file</a>.`,
Expand All @@ -139,7 +163,7 @@ export const marketplace = [
events: [],
cron: '',
timeout: 15,
usecases: ['placeholder'],
usecases: ['AI'],
runtimes: [
{
name: 'node-18.0',
Expand Down Expand Up @@ -173,13 +197,25 @@ export const marketplace = [
events: [],
cron: '',
timeout: 15,
usecases: ['placeholder'],
usecases: ['AI'],
runtimes: [
{
name: 'node-18.0',
commands: 'npm install',
entrypoint: 'src/main.js',
providerRootDirectory: 'node/censor-with-redact'
},
{
name: 'python-3.9',
commands: 'pip install -r requirements.txt',
entrypoint: 'src/main.py',
providerRootDirectory: 'python/censor_with_redact'
},
{
name: 'dart-2.17',
commands: 'dart pub get',
entrypoint: 'lib/main.dart',
providerRootDirectory: 'dart/censor_with_redact'
}
],
instructions: `For documentation and instructions check out <a target="_blank" rel="noopener noreferrer" class="link" href="https://github.com/appwrite/templates/tree/main/node/censor-with-redact">file</a>.`,
Expand All @@ -206,7 +242,7 @@ export const marketplace = [
events: [],
cron: '',
timeout: 15,
usecases: ['placeholder'],
usecases: ['Utilities'],
runtimes: [
{
name: 'node-18.0',
Expand All @@ -232,7 +268,7 @@ export const marketplace = [
events: [],
cron: '',
timeout: 15,
usecases: ['placeholder'],
usecases: ['Dev Tools'],
runtimes: [
{
name: 'node-18.0',
Expand Down Expand Up @@ -272,7 +308,7 @@ export const marketplace = [
events: [],
cron: '',
timeout: 15,
usecases: ['placeholder'],
usecases: ['Utilities'],
runtimes: [
{
name: 'node-18.0',
Expand Down Expand Up @@ -314,6 +350,13 @@ export const marketplace = [
value: 'urls',
placeholder: 'urls',
required: false
},
{
name: 'SHORT_BASE_URL',
description: `The domain to use for the short URLs. You can use your functions subdomain or a custom domain.`,
value: '',
placeholder: 'https://shortdomain.io',
required: true
}
]
},
Expand All @@ -326,13 +369,25 @@ export const marketplace = [
events: [],
cron: '',
timeout: 15,
usecases: ['placeholder'],
usecases: ['Databases'],
runtimes: [
{
name: 'node-18.0',
commands: 'npm install',
entrypoint: 'src/main.js',
providerRootDirectory: 'node/sync-with-algolia'
},
{
name: 'python-3.9',
commands: 'pip install -r requirements.txt',
entrypoint: 'src/main.py',
providerRootDirectory: 'python/sync_with_algolia'
},
{
name: 'php-8.0',
commands: 'composer install',
entrypoint: 'src/index.php',
providerRootDirectory: 'php/sync-with-algolia'
}
],
instructions: `For documentation and instructions check out <a target="_blank" rel="noopener noreferrer" class="link" href="https://github.com/appwrite/templates/tree/main/node/sync-with-algolia">file</a>.`,
Expand Down Expand Up @@ -369,7 +424,7 @@ export const marketplace = [
{
name: 'ALGOLIA_INDEX_ID',
description: `The ID of the index in Algolia where the documents are to be synced. <a class="u-bold" target="_blank" href="https://www.algolia.com/doc/api-client/methods/indexing/">Learn more</a>.`,
placeholder: 'appwrite_index',
placeholder: 'my_index',
required: true
},
{
Expand All @@ -396,7 +451,7 @@ export const marketplace = [
events: [],
cron: '',
timeout: 15,
usecases: ['placeholder'],
usecases: ['Databases'],
runtimes: [
{
name: 'node-18.0',
Expand Down Expand Up @@ -472,7 +527,7 @@ export const marketplace = [
events: [],
cron: '',
timeout: 15,
usecases: ['placeholder'],
usecases: ['Messaging'],
runtimes: [
{
name: 'node-18.0',
Expand Down Expand Up @@ -523,7 +578,7 @@ export const marketplace = [
events: [],
cron: '',
timeout: 15,
usecases: ['placeholder'],
usecases: ['Messaging'],
runtimes: [
{
name: 'node-18.0',
Expand Down Expand Up @@ -574,13 +629,25 @@ export const marketplace = [
events: [],
cron: '',
timeout: 15,
usecases: ['placeholder'],
usecases: ['Utilities'],
runtimes: [
{
name: 'node-18.0',
commands: 'npm install',
entrypoint: 'src/main.js',
providerRootDirectory: 'node/email-contact-form'
},
{
name: 'python-3.9',
commands: 'pip install -r requirements.txt',
entrypoint: 'src/main.py',
providerRootDirectory: 'python/email_contact_form'
},
{
name: 'php-8.0',
commands: 'composer install',
entrypoint: 'src/index.php',
providerRootDirectory: 'php/email-contact-form'
}
],
instructions: `For documentation and instructions check out <a target="_blank" rel="noopener noreferrer" class="link" href="https://github.com/appwrite/templates/tree/main/node/email-contact-form">file</a>.`,
Expand Down