How to build a full stack app with the Wix CLI

แชร์
ฝัง

ความคิดเห็น • 9

  • @aaratiparajuli2236
    @aaratiparajuli2236 หลายเดือนก่อน

    Great Video! In this tutorial you have imported the collection 'store' which already exists.
    Can you please give me a hint on how to create a new collection programmatically from the app?
    Would appreciate your help :)

    • @WixforDevelopers
      @WixforDevelopers  หลายเดือนก่อน

      Hey! Thanks for watching. And, yes here's how. You can use the "app installed event" and listen for that, then use the data SDK to create a new collection. Here's the relevant docs how to generate events from CLI:
      dev.wix.com/docs/build-apps/develop-your-app/frameworks/wix-cli/supported-[…]ons/backend-extensions/events/add-event-extensions-with-the-cli that's the event you want ("on app installed"):
      dev.wix.com/docs/sdk/backend-modules/app-management/app-instances/on-app-instance-installed and that's the sdk method to create a collection:
      dev.wix.com/docs/sdk/backend-modules/data/collections/create-data-collection

  • @DatHoangND
    @DatHoangND 20 วันที่ผ่านมา +1

    Can you share the final code? There are some parts in which you paste code, so I cannot follow along.

    • @manojtheyogi
      @manojtheyogi 17 วันที่ผ่านมา +1

      I agree. The final code should be in a github repo.

    • @WixforDevelopers
      @WixforDevelopers  17 วันที่ผ่านมา +2

      Asking this instructors, will follow up

  • @ckstudios-in
    @ckstudios-in 18 วันที่ผ่านมา

    Hi,
    I encountered the following error:
    "Oh no, it seems like the CLI encountered an unexpected error: Invalid URL."
    Could this be happening because I selected "Create a new Development Site" and the development site hasn’t been published yet?

    • @manojtheyogi
      @manojtheyogi 17 วันที่ผ่านมา

      I had the same problem. I fixed it with "npm i @wix/cli@latest @wix/cli-app@latest"

    • @WixforDevelopers
      @WixforDevelopers  17 วันที่ผ่านมา

      Hi, the best place to ask you be in Discord in the apps-with-cli channel so the team there can problem solve with you i fyou are still having issues discord.gg/gJ6nUBhw

    • @WixforDevelopers
      @WixforDevelopers  17 วันที่ผ่านมา

      yes! great tip - thanks for sharing