Comments (3)
Here are some ideas to get the conversation started. Ultimately, they're meant to target granular questions someone might ask, so a bunch could be combined to make up one demo. Come to think of it, what type of demos are you imagining?
- The simplest cronjob, like logging "hello world."
- The simplest endpoint, like returning the current server time.
- Basic examples that explain how to interact with each of appwrite's services.
- An explanation of endpoint security. E.g. can we create endpoints that can be accessed without authentication? Can we restrict endpoints to certain users/teams?
- Endpoints with required/optional parameters.
- Formatting endpoint responses as popular MIME content types (e.g. text, application/xml, text/json, text/csv).
- Custom wrappers for REST functions. For example, add an
expiration
timestamp field equal to 5 days in the future on document PUTs, do not includeexpiration
in document GET responses, do not allow users to modifyexpiration
through any tricky means (either through these Cloud Functions or appwrite's default routes for these documents), and do not allow users to interact with the document at all after theexpiration
date has passed. - An example of interacting with an external API that appwrite users are likely to use (e.g. cloud hosting, social media). It would be nice to use an API that has its own beginner-friendly explanation (e.g. Google Adwords' basic API) just in case the user wants to understand that API as well, but there's a risk that the explanation changes over time or is moved/deleted. In particular, I'd be interested to know how to securely store API keys in appwrite (this may be a challenge without superadmin accounts) and see a code snippet that retrieves these keys, authenticates with the external API, and does a thing.
- Code Function best practices. Can appwrite containers ingest a directory of Code Functions as a volume when deployed? This would be incredibly useful for source control and continuous deployment/scaling. If so, how should the directory be structured? How does a developer specify to appwrite that a function is an endpoint or a cronjob? Are there any other recommendations for teams making maintainable Cloud Functions?
from demos-for-functions.
@Glide7 What do you think about
- Server heartbeat (same as server time on @mlucas-NU)
- Getting weather on a specific Geolocation with coordinates or even with a city name!
from demos-for-functions.
- targetting specific collections when their documents get added/updated
- A direct comparison/mapping of "here's how you did it in firebase" > "here's how you do it in appwrite" (not sure how best to word that)
from demos-for-functions.
Related Issues (20)
- Demos for Functions Progress not updated HOT 5
- Add GitHub Issue Forms and PR template HOT 1
- Translate backup function to Node JS
- Create a new user profile in "users" collection when a new account is created HOT 4
- 🚀 Feature: Demo function in Python to calculate user rankings based on their activities
- 📚 Documentation: Using variables HOT 1
- 📚 Documentation: more info about command HOT 1
- 📚 Documentation: HOT 2
- Console HOT 1
- 🐛 Bug Report: Demo Function (add updated at) running in loop HOT 2
- 🐛 Bug Report: [dart] new functions use different entry point then current demos.
- 🐛 Bug Report: Bug template doesnt have newer Appwrite versions in Appwrite version dropdown.
- [Help wanted] Translate 'storage-cleaner' function from .NET to Python 🐍 HOT 2
- [Help wanted] Translate 'storage-cleaner' function from .NET to Ruby
- [Help wanted] Translate 'storage-cleaner' function from .NET to Dart HOT 2
- [Help wanted] Translate 'file-backup' function from Python to Dart 🏹 HOT 1
- [Help wanted] Translate 'file-backup' function from Python to .NET HOT 1
- [Help wanted] Translate 'object-detection' function from Python to Dart 🏹 HOT 1
- [Help wanted] Translate 'object-detection' function from Python to .NET 🌐 HOT 1
- [Help wanted] Translate 'hello-world' function from Python to .NET 🌐 HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from demos-for-functions.