Wix Backend is Changing - everything you need to know about the new .web.js files.

Поделиться
HTML-код
  • Опубликовано: 5 сен 2024
  • #wix #wixwebsite #wixtutorial #website #webdesign #webdev
    Timeline:
    00:25 Transition from .jsw to .web.js
    01:57 Understanding backend code in Wix
    02:49 Transition timeline
    03:04 Example of old .jsw file function
    04:01 Importance of backend operations
    04:41 Managing permissions in backend files
    05:49 Permission error demonstration
    06:32 Adjusting permissions
    07:56 Introduction to .web.js files
    08:50 Defining permissions in .web.js
    09:57 Converting function to .web.js format
    11:11 Permission error on live site
    12:47 Reason for the transition to .web.js
    14:59 Limitations of web method permissions
    16:18 Conclusion and final thoughts
    New to Velo? Try my new Velo for Beginners course now on Udemy!
    www.udemy.com/...
    Have an idea for a video? suggest it here:
    www.thewixwiz....
    Have questions? Join the discussion:
    www.thewixwiz....
    Want to have joint coding session? Book one now:
    www.thewixwiz....
    Have questions? Need some magic done on your website ASAP?
    www.thewixwiz....
    Follow along on Twitter @thewixwiz
    Facebook page: / thewixwiz
    Facebook community: / thewixwiz

Комментарии • 35

  • @ralphjustus2489
    @ralphjustus2489 4 месяца назад +1

    Good video; I intend to watch again. BTW - I tried for ten minutes to sign up on your web site but could not get it done.

    • @thewixwiz
      @thewixwiz  4 месяца назад

      Thanks! What were you trying to sign up for?

  • @donewithprecision785
    @donewithprecision785 6 месяцев назад

    I literally just dealt with this change too and I’m still having some issues with the front end saying the backend doesn’t exist. Kinda buggy with blocks but I do understand the change.

    • @thewixwiz
      @thewixwiz  6 месяцев назад +1

      Encountered a similar issue with Blocks... Thanks for sharing 🙏

  • @Zoe-xo6op
    @Zoe-xo6op 3 месяца назад

    May I my code is
    export const queryBookings = webMethod(Permissions.Anyone, () => {
    return bookings.queryBookings()
    .hasSome("status", ["PENDING_CHECKOUT", "CONFIRMED", "CANCELED", "PENDING", "PENDING_APPROVAL", "DECLINED"])
    .find()
    But I am still with the Permission error.
    What should I do?
    Thank you so much!

    • @thewixwiz
      @thewixwiz  3 месяца назад

      Hi, please post code questions on the Wix Wiz forum.

  • @joshuahaewardii8540
    @joshuahaewardii8540 4 месяца назад

    I have a question, is axios included in velo by default? meaning we don't need to install it in the npm modules?

    • @thewixwiz
      @thewixwiz  3 месяца назад +1

      It needs to be installed as an npm package

  • @AnthonyAllioo
    @AnthonyAllioo 6 месяцев назад +1

    Damn, a Wix dev told me about this and said that it would be backwards compatible. Hope I’m able to figure out how to convert my current code without too much pain.

    • @thewixwiz
      @thewixwiz  6 месяцев назад +1

      They may know something I don't! I'm just working off the official announcements but maybe Wix realized this isn't such a good idea and will backtrack 🤷

    • @AnthonyAllioo
      @AnthonyAllioo 6 месяцев назад +1

      @@thewixwizyea I’m going to ask them again.

    • @thewixwiz
      @thewixwiz  6 месяцев назад +1

      @@AnthonyAllioo cool, please let us know 🙏

    • @AnthonyAllioo
      @AnthonyAllioo 6 месяцев назад +1

      @@thewixwiz “Yes, it will continue to work but for new projects, I would reccomend switching bc we are updating all the documentation to .web.js for the examples”

    • @thewixwiz
      @thewixwiz  6 месяцев назад +1

      @@AnthonyAllioo Oh interesting! Thanks for sharing!

  • @Goldenstpro
    @Goldenstpro Месяц назад

    Thank you for your helpful video. when i try to run this code in my wix IDE, i always get this error: Uncaught Error Error [ERR_MODULE_NOT_FOUND]: Cannot find package 'wix-web-module' imported from /user-code/src/backend/, pretty much for any import module im getting this this type of error. is that normal? or i shouldnt run it?

    • @thewixwiz
      @thewixwiz  Месяц назад

      I would double check your import statements and make sure you are exporting the modules with the 'export' keyword.

  • @tonydaian8036
    @tonydaian8036 6 месяцев назад

    like allways great video

  • @Wasil.developer
    @Wasil.developer 6 месяцев назад

    Nice

  • @user-re3ho4fd9d
    @user-re3ho4fd9d 6 месяцев назад

    Can we use it in Wix blocks?

  • @bgmieditscy
    @bgmieditscy 2 месяца назад

    its becoming next js 😭 the reason i came to wix was next js. i loved react, hate next js

    • @thewixwiz
      @thewixwiz  2 месяца назад +1

      I don't mind next.js just they change it every 5 minutes so it's hard to keep track lol

    • @bgmieditscy
      @bgmieditscy 2 месяца назад

      @@thewixwiz Yupp thats why i came to wix & i found out almost 90% of real life apps booking or ecom or any data management apps can be easily built on wix. velo is good, however i prefer using my own apis as setting up express with mongoDB is my fav

  • @sadiqpasha6622
    @sadiqpasha6622 5 месяцев назад

    Link to the wix discord please

    • @thewixwiz
      @thewixwiz  4 месяца назад

      discord.gg/bDzFny8p

  • @RolexP90
    @RolexP90 6 месяцев назад

    Hey dear Please make a tutorials on Wix booking.atleast 5 o 6 different videos 😅 on Wix booking.

    • @thewixwiz
      @thewixwiz  6 месяцев назад +1

      Thanks for the suggestion!

  • @diptimondal16
    @diptimondal16 6 месяцев назад

    ruclips.net/video/ffj0ycGg-m0/видео.html This isnt working its saying the app is no longer available

    • @thewixwiz
      @thewixwiz  6 месяцев назад

      Thanks, I'm currently working on making this available on the Wix App Marketplace. I will notify everyone on the mailing list when it is :)

  • @bubbles581
    @bubbles581 6 месяцев назад

    this seems pretty objectively worse (?) unless I'm missing something it just seems like there would have been so many better ways to do this :-(

    • @thewixwiz
      @thewixwiz  6 месяцев назад +1

      Unless there are some hidden benefits I tend to agree. It was more of a constraint due to the new IDE.

  • @servantof1truelivingGOD-JESUS
    @servantof1truelivingGOD-JESUS 6 месяцев назад

    getting ready to shut YOU all down....unless you go along...

  • @tartaria936
    @tartaria936 6 месяцев назад

    this sux

    • @bergonius
      @bergonius 6 месяцев назад

      why?

    • @tartaria936
      @tartaria936 6 месяцев назад

      coz i have like 1000 backend functions to change???? im still hoping that WIX AI will solve this for us in forward@@bergonius