-
Notifications
You must be signed in to change notification settings - Fork 122
Description
Appwrite Functions allow you to extend and customize your Appwrite server functionality by executing your custom code. 🤩 You can learn more at our official Appwrite Functions docs.
What you’re building
Your task is to implement the storage cleaner template in Node.js.
Storage cleaner integrates with Appwrite Storage and removes all files from the buckets older than X number of days, as configured by the RETENTION_PERIOD_DAYS environment variable. The Storage cleaner should be scheduled using CRON, defaulting to running at 1:00 AM daily.
This could be used in services like PDF converters and caption generators, where file retention is periodic with high number of uploads.
Your function’s implementation should be similar to other Node.js function templates in code format and style. Make sure to follow our contributing guide.
Tasks summary:
- Fork & clone Appwrite's templates repository
- Create a branch
feat-implement-storage-cleaner-node - Write code for the function in folder
node/storage-cleaner/. - Test the function using Appwrite, provide a video.
- Write a
README.mdexplaining what the function does, how to use it, and customize it. Here is an example. - Submit a pull request to our templates repository
If you need any help, contact us on our Discord server.
Are you ready to work on this issue? 🤔 Let us know, and we will assign it to you 😊
Happy coding!