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

  Рет қаралды 1,605

The Wix Wiz

The Wix Wiz

Күн бұрын

#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
@Zoe-xo6op
@Zoe-xo6op 4 ай бұрын
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 4 ай бұрын
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 4 ай бұрын
It needs to be installed as an npm package
@ralphjustus2489
@ralphjustus2489 4 ай бұрын
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?
@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.
@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 ай бұрын
Encountered a similar issue with Blocks... Thanks for sharing 🙏
@tonydaian8036
@tonydaian8036 6 ай бұрын
like allways great video
@AnthonyAllioo
@AnthonyAllioo 6 ай бұрын
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 ай бұрын
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 ай бұрын
@@thewixwizyea I’m going to ask them again.
@thewixwiz
@thewixwiz 6 ай бұрын
@@AnthonyAllioo cool, please let us know 🙏
@AnthonyAllioo
@AnthonyAllioo 6 ай бұрын
@@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 ай бұрын
@@AnthonyAllioo Oh interesting! Thanks for sharing!
@AliAbbas-d9t
@AliAbbas-d9t 6 ай бұрын
Can we use it in Wix blocks?
@thewixwiz
@thewixwiz 6 ай бұрын
Yup!
@Wasil.developer
@Wasil.developer 6 ай бұрын
Nice
@bgmieditscy
@bgmieditscy 3 ай бұрын
its becoming next js 😭 the reason i came to wix was next js. i loved react, hate next js
@thewixwiz
@thewixwiz 2 ай бұрын
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 5 ай бұрын
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 ай бұрын
Thanks for the suggestion!
@servantof1truelivingGOD-JESUS
@servantof1truelivingGOD-JESUS 6 ай бұрын
getting ready to shut YOU all down....unless you go along...
@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 ай бұрын
Unless there are some hidden benefits I tend to agree. It was more of a constraint due to the new IDE.
@diptimondal16
@diptimondal16 6 ай бұрын
kzbin.info/www/bejne/nJfNYayZfMxgo5I 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 :)
@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
5 Ways to Avoid Writing Amateur Code (on Wix)
28:57
The Wix Wiz
Рет қаралды 608
Секрет фокусника! #shorts
00:15
Роман Magic
Рет қаралды 97 МЛН
Новый уровень твоей сосиски
00:33
Кушать Хочу
Рет қаралды 3,8 МЛН
Electric Flying Bird with Hanging Wire Automatic for Ceiling Parrot
00:15
How to Speed up Data Queries in Wix with Indexes
36:49
The Wix Wiz
Рет қаралды 513
How to Make Custom Member Profiles in Wix with (almost) No Code
1:17:24
Glassmorphism in Power Platform Canvas Apps
18:01
Colin Kelly-Cook (Novalogix)
Рет қаралды 2,7 М.
Does the Figma to Wix Studio plugin work? And do we need it?
30:55
The Wix Wiz
Рет қаралды 1,3 М.
Exploring how your Backend Code is Executed
36:52
Wix for Developers
Рет қаралды 364
Wix Studio | Webinar: Meet the dev environment
52:06
Wix Studio
Рет қаралды 1,4 М.
What are Wix Blocks? - Full Tutorial
1:55:43
The Wix Wiz
Рет қаралды 6 М.
Please stop using px for font-size.
15:18
Coder Coder
Рет қаралды 157 М.
How to Roll Your Own Auth
13:05
Ben Awad
Рет қаралды 109 М.
Секрет фокусника! #shorts
00:15
Роман Magic
Рет қаралды 97 МЛН