#✅ - New to app development

9 messages · Page 1 of 1 (latest)

elder tangle
#

Hi, I am a junior Computer Science major and I am trying to develop an ios app for a local food truck because they are such a friendly family, and I do not know how to connect aws amplify to my xcode project. I have made a functioning app on xcode that can determine if the food truck is open, what is sold out, and if somebody wants to order something. However, I need a backend do to store this data obviously, and I don't really know where to begin. I created a new app in amplify, and when I copy the amplify pull command in terminal in my root directory I receive an error. Are there simple things I must set up first? Is there a simple easy way to connect the app I developed in scode to an aws backend server using amplify that I'm unaware of? sorry for being such a novice but I thought this would be a good place to ask a question.

mild snow
#

Can you share the error please

elder tangle
#

Edit your schema at /Users/josepalacios/Desktop/testingAmp/AwsTest/amplify/backend/api/Backend/schema.graphql or place .graphql files in a directory at /Users/josepalacios/Desktop/testingAmp/AwsTest/amplify/backend/api/Backend/schema
✔ Successfully pulled backend environment staging from the cloud.

✅ Successfully pulled backend environment staging from the cloud.
Run 'amplify pull' to sync future upstream changes.

Updating Xcode project:
-- Amplify project found.
-- Amplify config files found.
-- Successfully updated project /Users/josepalacios/Desktop/testingAmp/AwsTest.
🚫 folderNotFound: Amplify generated models not found at /Users/josepalacios/Desktop/testingAmp/AwsTest/amplify/generated/models
-- Recovery suggestion: Run amplify codegen models.
🛑 Command failed with exit code 1: /Users/josepalacios/.amplify/lib/aws-amplify-amplify-frontend-ios/resources/amplify-xcode import-models --path=/Users/josepalacios/Desktop/testingAmp/AwsTest
I tried to manually move the files into xcode because I checked stack overflow and noticed the files were not in my project, but when I run the command again with the amplify folder in the project it still does not work. I then I tried to add the files by pressing the + sign in the bottom left corner of xcode to add the generated folder with the models folder, but I do not see that folder existing within my amplify folder.

mild snow
elder tangle
#

Yes now I did and I got it all to work thank you so much!

#

This is an app for a foodtruck to let customers know what is the menu and if the food truck is open. I created a model in data with a bool isOpen and added it to my xcode project. Then I went to the content tab and created a foodtruck. Is this enough to allow myself to switch this one foodtruck from open to closed and have that change registered by an xcode file that changes the contentview, or do i need to make an updateForm in the UI library? To summarize my goal I want to be able to do is to switch between the foodtruck being open and closed in my amplify project and have that boolean determine the contentview of my app. Thanks so much for your help starting this from scratch has been a little overwhelming

mild snow
#

You're welcome. I know amplify is kinda "big" and can be overwhelming.
Just make sure you go through the documentation and you'll be good.

#

I believe you are going to need some sort of updateform to change the isOpen boolean.

If I understand correctly what youre trying to achieve is to have multiple food trucks either open or close with different menus for each.

Whatever youre registration process for a food truck is in the end you are going to create a "FoodTruck" entity from datastore models. https://docs.amplify.aws/lib/datastore/data-access/q/platform/ios/

Then from the admin panel or foodtruck app (UpdateUI) or depends on you, you will "update" the isOpen boolean for a specific truck. You can also make a lambda that switches the isOpen automatically depending on the times of each truck.

On the frontend app, you will fetch the foodtrucks and if its open show its menu.

pearl kayakBOT
#

✅ - New to app development