
Appwrite Functions Has a Free API: Run Serverless Code with Any Language on Your Own Server
What is Appwrite Functions? Appwrite is an open-source Backend-as-a-Service, and Appwrite Functions lets you run serverless functions in Node.js, Python, PHP, Ruby, Dart, Swift, Kotlin, Java, .NET, Bun, Deno — self-hosted or on Appwrite Cloud. Free tier: 750K executions/month. Quick Start npm install -g appwrite-cli appwrite login appwrite init function Create a Function // src/main.js export default async ({ req , res , log , error }) => { if ( req . method === " GET " ) { const name = req . query . name || " World " ; return res . json ({ message : `Hello ${ name } !` }); } if ( req . method === " POST " ) { const body = JSON . parse ( req . body ); log ( `Received: ${ JSON . stringify ( body )} ` ); // Process data const result = await processOrder ( body ); return res . json ( result ); } return res . json ({ error : " Method not allowed " }, 405 ); }; Deploy appwrite deploy function The REST API export APPWRITE_URL = "https://cloud.appwrite.io/v1" export APPWRITE_KEY = "your-api-k
Continue reading on Dev.to Tutorial
Opens in a new tab



