Code Monkey home page Code Monkey logo

Comments (21)

RV784 avatar RV784 commented on May 24, 2024 2

I've started working on this feature today. Will keep this thread updated about the progress and ask here whenever I'll need help. @Haimantika

from templates.

RV784 avatar RV784 commented on May 24, 2024

I'd like to work on this issue, please assign!

from templates.

Haimantika avatar Haimantika commented on May 24, 2024

I'd like to work on this issue, please assign!

Hi @RV784 have assigned the issue to you! Thank you for showing interest in contributing to Appwrite! Happy Hacktoberfest πŸŽƒ

Notes:

  1. Please update us with your progress every 3 days, so that we know that you are working on it.
  2. Join us on Discord - https://appwrite.io/discord to chat about Hacktoberfest and Appwrite!

from templates.

sdroyc avatar sdroyc commented on May 24, 2024

Hey I would also love to work on this

from templates.

Haimantika avatar Haimantika commented on May 24, 2024

Hey I would also love to work on this

Hi, we are assigning issues on a first-come, first-serve basis, if the other user decides to drop off, we will assign it to you.

from templates.

RV784 avatar RV784 commented on May 24, 2024

Hi, as I was going through understanding templates and Appwrite functions, I noticed a couple of things in the starter function that is already Implemented

  • I was getting the following build error at my end
Screenshot 2023-10-04 at 8 18 04 PM
  • This went away after changing the location of index.swift like mentioned in the below screenShot.
Screenshot 2023-10-04 at 8 15 30 PM

Do let me know if I'm not building it correctly in this case. I'm on Xcode-15.
@Haimantika @gewenyu99

from templates.

gewenyu99 avatar gewenyu99 commented on May 24, 2024

Hi, as I was going through understanding templates and Appwrite functions, I noticed a couple of things in the starter function that is already Implemented

  • I was getting the following build error at my end
Screenshot 2023-10-04 at 8 18 04 PM * This went away after changing the location of index.swift like mentioned in the below screenShot. Screenshot 2023-10-04 at 8 15 30 PM Do let me know if I'm not building it correctly in this case. I'm on Xcode-15. @Haimantika @gewenyu99

I don't think you can build Appwrite functions locally :) They're a file depended upon by the Appwrite Functions runtimes

from templates.

RV784 avatar RV784 commented on May 24, 2024

Hey, just wanted to ask that between these two approaches of saving the variables (vonage secret keys, whatsApp number etc).
Should I go with .env file or .plist file for storing them?

First I'll go with .env file but wanted to clear this doubt.

from templates.

RV784 avatar RV784 commented on May 24, 2024

Hi, I’m done with the Implementation of this function

Here is the progress of what I’ve done

  • Created a Swift Package named ”whatsApp-with-vonage”
  • Completed the implementation of all the things that I understood in the Node’s implementation of the function
  • Used Swift-JWT package.
  • The code is pushed in my forked repository

Things remaining

  • Testing at my end

Also it would be very helpful if you could checkout the code I pushed and tell me things that can be improved.

@Haimantika @gewenyu99

from templates.

RV784 avatar RV784 commented on May 24, 2024

Hi, I saw that Swift-runtime is not available in cloud.
Can you please guide me how to test it? Testing is somewhere that I got stuck.

If it goes well then I may've completed this feature implementation.

from templates.

gewenyu99 avatar gewenyu99 commented on May 24, 2024

Hi, I saw that Swift-runtime is not available in cloud. Can you please guide me how to test it? Testing is somewhere that I got stuck.

If it goes well then I may've completed this feature implementation.

You can self-host and add deploy manually to test:
https://appwrite.io/docs/advanced/self-hosting
https://appwrite.io/docs/products/functions/deployment#manual

from templates.

RV784 avatar RV784 commented on May 24, 2024

Hi, I've successfully self-hosted Appwrite locally. Will update how the functions goes after I deploy it.

from templates.

RV784 avatar RV784 commented on May 24, 2024

I’m having a little trouble with Add deploy procedure.

  • So first I’ve to package the whole swift WhatsApp with voyage function in a tar GZ file
  • Then I’ve to go to my Appwrite console that is locally hosted and upload this archived file
    I’m not sure where I’ve to upload my archived function file in the console.
  • Also can I use CLI or is it only for cloud functions?

Edit -> Found this article (https://dev.to/appwrite/clean-your-storage-using-appwrites-swift-cloud-functions-1h4f). First will go through this then get back here if still stuck

from templates.

Haimantika avatar Haimantika commented on May 24, 2024

I’m having a little trouble with Add deploy procedure.

  • So first I’ve to package the whole swift WhatsApp with voyage function in a tar GZ file
  • Then I’ve to go to my Appwrite console that is locally hosted and upload this archived file
    I’m not sure where I’ve to upload my archived function file in the console.
  • Also can I use CLI or is it only for cloud functions?

Edit -> Found this article (https://dev.to/appwrite/clean-your-storage-using-appwrites-swift-cloud-functions-1h4f). First will go through this then get back here if still stuck

Thanks for the update. Even after the documentation if you have any questions, you can ask us on Discord

from templates.

gewenyu99 avatar gewenyu99 commented on May 24, 2024

Hey, just wanted to ask that between these two approaches of saving the variables (vonage secret keys, whatsApp number etc). Should I go with .env file or .plist file for storing them?

First I'll go with .env file but wanted to clear this doubt.

So they are passed in as environment variables through the function :)

from templates.

gewenyu99 avatar gewenyu99 commented on May 24, 2024

I’m having a little trouble with Add deploy procedure.

  • So first I’ve to package the whole swift WhatsApp with voyage function in a tar GZ file
  • Then I’ve to go to my Appwrite console that is locally hosted and upload this archived file
    I’m not sure where I’ve to upload my archived function file in the console.
  • Also can I use CLI or is it only for cloud functions?

Edit -> Found this article (https://dev.to/appwrite/clean-your-storage-using-appwrites-swift-cloud-functions-1h4f). First will go through this then get back here if still stuck

You should be using the CLI, but it would be even better if you setup GitHub integration instead :P

from templates.

RV784 avatar RV784 commented on May 24, 2024

Hi, so I manually deployed my function on self hosted Appwrite but I faced errors like shown in screenshot attached

Now most of them are syntactical but I want to ask
Screenshot 2023-10-21 at 11 11 10 PM
that since Xcode cannot infer the RuntimeContext/RuntimeOutput types that are mentioned in this function-Development guide -> https://appwrite.io/docs/products/functions/development#response

So can you tell in which environment should I like code the function in? Or like how do I set up this environment?

I also faced some JWT Authorisation errors but first I want to solve the above facing issues.

from templates.

RV784 avatar RV784 commented on May 24, 2024

Hi, I'm facing this error while Building a function with runtime Swift-5.8. This is according to this documentation regarding development for Swift Runtime -> https://appwrite.io/docs/products/functions/development#request
Screenshot 2023-10-23 at 12 20 31 PM

from templates.

RV784 avatar RV784 commented on May 24, 2024

So I was able to deploy the function. and I got this error no matter what I execute regardless of request method -> "An internal curl error has occurred within the executor! Error Msg: Connection reset by peer\nError Code: 500"
Currently debugging this but if you know then do help here.

from templates.

RV784 avatar RV784 commented on May 24, 2024

Currently I'm trying my router's ip instead of localhost to see if it works or not.

from templates.

tessamero avatar tessamero commented on May 24, 2024

Closing issue due to inactivity and hacktoberfest being over, thank you for taking the time to be part of hacktoberfest this year :)

from templates.

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.