GithubHelp home page GithubHelp logo

Comments (3)

mlucas-NU avatar mlucas-NU commented on June 27, 2024

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 include expiration in document GET responses, do not allow users to modify expiration 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 the expiration 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.

mendoza avatar mendoza commented on June 27, 2024

@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.

syntaxlexx avatar syntaxlexx commented on June 27, 2024
  • 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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.