dude your organizational skills are outstanding, every reference on description with all explained in the video. I must say I need nothing more to use rust in my freelance right now
You're missing .dockerignore file to ignore the locally built binaries 😉 it shall speed up the docker build a bit as it will minimize the docker context to be copied.
The smooth animation and the way everything is explained makes watching your content such a fun experience! Thank you so much for this awesomeness sir :)
I realise this is an old-ish video but FYI, you can use multi-step builds to have a docker image that contains none of the build dependencies, this would reduce the size of the final image. That said this was an interesting video, very informative!
@@dratir You're right, I'm used to seeing all 'From's finish with an 'AS something' which provides a build target. Because of that It didn't look to me like a multi-step build to me, re-watching clarified that.
I don't know if this video covers it - but please release some kind of video targeting authentication, especially with OAuth and OIDC. That's been something that's been a pain in my backside for way too long, and your videos are really high quality.
It doesn’t - and I do plan to make one on auth. I began researching but kept running into snags - seems like this is definitely a pain point for the community.
Good video - it would be nice if you had one for debugging the backend awa frontend while they are in Docker i.e. the host is not used to compile but the dev container is, and from there push to prod after solving the bug(s)
nice yeah i'd love to do that, I'm actually currently looking into Railway, where apparently you can just point it to a GitHub repo with a Dockerfile and it takes care of the entire build and deployment for you (amazing). Then you can customize with Github Actions if needed. Will report back after I try it!
Really helpful! Do you already have the deployment video? Maybe to additional questions: For changes to the app, what would be your process? (automation?) What would you recommend for a platform development?
I like it a lot, too, but I have a hard time justifying its use in a world where Svelte exists. Svelte is both faster and easier to use. Still, I love Rust and am hopeful we’ll get something similarly simple in the future.
I think one of the appealing aspects of Docker that is still relevant even when dependencies and portability aren't issues, as in the scenario you refer to - is "sandboxing" - ensuring that one application won't affect others that might be running on the same physical machine
there is nothing to install in `wasm-bindgen v0.2.81`, because it has no binaries `cargo install` is only for installing programs, and can't be used with libraries.
thanks yeah I think I made a mistake here, I think I was looking at the Yew getting started instructions which references `cargo install wasm-bindgen-cli`, thought I'm not even sure if that is necessary anymore.
When I create a new project, all I get is a "Hello, world!" function. Could you show how to set up the project so that I can also follow along all that code you have which I don't have?
Hi Mathias - there are two other videos that are sort of prerequisites to this one - "Build A Rust Frontend" and "Build A Rust Backend", both on my channel. Check those out and let me know if you have any questions!
Thanks! I think if you have separate pages served from separate files, instead of SPA you'd probably use actix_files and specify each file as a service (or maybe an entire directory). But it's important to note that SPA doesn't necessarily mean your entire app is "one page" or even that all of your source comes from one file. Modern frontend frameworks like Yew, React, Angular etc generally handle page navigation by making it appear to the browser that the user is staying on the same page for their entire session. But under the hood the "single page" is making AJAX requests to the server to replace the page contents with a different page.
I didn't, was planning on iterating on it from video to video but sort of left it hanging after this one. Is that something you'd be interested in seeing?
No serious frontend application could be built with rust. Building a frontend app with Yew must be like going back a decade and a half or more in frontend technology to the early days of php. You must be a serious masochist to want to do that to yourself.
You are right to a certain extent as of now, yes the rust front end is still not mature as the js front ends, but to balance the entire pros and cons, there are benefits, i.e. WASM, and unified code for both the back end and front end. throughout a couple of years, I believe rust will be the master for both the front and back ends, especially with WASM shining. even in embedded, it is going great even with esp32 which needs C/C++, now you can develop with rust and the vendor is investing in rust. For me what I gain, is more than what I lose when I use rust for full-stack development.
Does anybody else keep getting "No such file or directory (os error 2)". Cant use sudo cargo run so I'm doing cargo build and sudo ./target/debug/backend
dude your organizational skills are outstanding, every reference on description with all explained in the video. I must say I need nothing more to use rust in my freelance right now
thank you for the kind words! are you clients generally open to using Rust?
You're missing .dockerignore file to ignore the locally built binaries 😉 it shall speed up the docker build a bit as it will minimize the docker context to be copied.
oh nice thanks for pointing this out Marek!
And reduce layer cache invalidation.
Though it can be faster to cross compile to the container target outside the container.
The smooth animation and the way everything is explained makes watching your content such a fun experience!
Thank you so much for this awesomeness sir :)
thanks for the kind words, really happy you got something out of the video!
I realise this is an old-ish video but FYI, you can use multi-step builds to have a docker image that contains none of the build dependencies, this would reduce the size of the final image. That said this was an interesting video, very informative!
... that's exactly what he does in the video?
@@dratir You're right, I'm used to seeing all 'From's finish with an 'AS something' which provides a build target. Because of that It didn't look to me like a multi-step build to me, re-watching clarified that.
Your videos are outstanding. Thank you so much for the time and effort you have invested into them.
Thanks Cody! Glad you're getting some value out of them 😎
I don't know if this video covers it - but please release some kind of video targeting authentication, especially with OAuth and OIDC. That's been something that's been a pain in my backside for way too long, and your videos are really high quality.
It doesn’t - and I do plan to make one on auth. I began researching but kept running into snags - seems like this is definitely a pain point for the community.
@@codetothemoon would it be easier to use something like Auth0? I’m very new to it but it seems like it can plug into anything
Just store the usernames and passwords in plaintext in your database. It’s pretty simple lol
Good video - it would be nice if you had one for debugging the backend awa frontend while they are in Docker i.e. the host is not used to compile but the dev container is, and from there push to prod after solving the bug(s)
thanks, and good idea, maybe I'll cover that!
so glad i found this channel! so much info!
So glad to have you onboard Eran!
It would be great with CI/CD follow up
nice yeah i'd love to do that, I'm actually currently looking into Railway, where apparently you can just point it to a GitHub repo with a Dockerfile and it takes care of the entire build and deployment for you (amazing). Then you can customize with Github Actions if needed. Will report back after I try it!
I've been watching your videos recently, I really like them. Very nice, clear, concise explanations. Keep it up, man! :)
That was awesome! Could you show us how to deploy it to Github pages
Really helpful!
Do you already have the deployment video?
Maybe to additional questions:
For changes to the app, what would be your process? (automation?)
What would you recommend for a platform development?
Friend, your content is fantastic. Thank tou 👍👍👊👊👊
thank you and thanks for watching!
Yew is a fantastic framework.
I agree!
I like it a lot, too, but I have a hard time justifying its use in a world where Svelte exists. Svelte is both faster and easier to use. Still, I love Rust and am hopeful we’ll get something similarly simple in the future.
I'd like to see github actions actually
Nice, I'll put this on the roadmap!
soft would be the sun... Or maybe the earth? Fuck nvm. Point is I can't thank you enoughfor these tutorials. I've been playing guitar for
thanks for watching!
Very nicely done Sir!
Thanks Iron Hammer, glad you found it valuable!
Why do we need Docker when we can compile to a self-dependant binary?
I think one of the appealing aspects of Docker that is still relevant even when dependencies and portability aren't issues, as in the scenario you refer to - is "sandboxing" - ensuring that one application won't affect others that might be running on the same physical machine
super incredible video
Thanks so much for the kind words!
Thanks, very helpful!
Nice, very happy you found it valuable!
Great video!. I really like it
Thanks for the kind words and thanks for watching!
maybe show us how to deploy it to AWS Fargate?
Yeah that's something I could definitely do, I've added it to the video idea list. Thanks!
does rust have a future in backend development?
I'm fairly confident that it does, but we will see! 😎
Thank u so much. I've been so confused, but tNice tutorials video helped a lot.
🔥
there is nothing to install in `wasm-bindgen v0.2.81`, because it has no binaries
`cargo install` is only for installing programs, and can't be used with libraries.
thanks yeah I think I made a mistake here, I think I was looking at the Yew getting started instructions which references `cargo install wasm-bindgen-cli`, thought I'm not even sure if that is necessary anymore.
Can you please create vscode devcontainer too? This is very cool, makes me excited about webdev again
thanks for putting these on my radar - i'll take a look!
Great content…
Do we need an EC2 instance separately to run the docker on AWS?
I’d recommend trying ECS / ECR for deploying Docker images. EKS should work too but I’ve never used it.
When I create a new project, all I get is a "Hello, world!" function. Could you show how to set up the project so that I can also follow along all that code you have which I don't have?
Hi Mathias - there are two other videos that are sort of prerequisites to this one - "Build A Rust Frontend" and "Build A Rust Backend", both on my channel. Check those out and let me know if you have any questions!
How different would this be for a multi page application? Great video
Thanks! I think if you have separate pages served from separate files, instead of SPA you'd probably use actix_files and specify each file as a service (or maybe an entire directory). But it's important to note that SPA doesn't necessarily mean your entire app is "one page" or even that all of your source comes from one file. Modern frontend frameworks like Yew, React, Angular etc generally handle page navigation by making it appear to the browser that the user is staying on the same page for their entire session. But under the hood the "single page" is making AJAX requests to the server to replace the page contents with a different page.
Did you make a separate video for the task manager?
I didn't, was planning on iterating on it from video to video but sort of left it hanging after this one. Is that something you'd be interested in seeing?
@@codetothemoon absolutely, thank you for the quality content !
How would you implement tests into this?
good question - i think each package would have unit tests, then there would be a separate package with Cypress tests for E2E
Github Actions
☹️ p̲r̲o̲m̲o̲s̲m̲
?
No serious frontend application could be built with rust. Building a frontend app with Yew must be like going back a decade and a half or more in frontend technology to the early days of php. You must be a serious masochist to want to do that to yourself.
You are right to a certain extent as of now, yes the rust front end is still not mature as the js front ends, but to balance the entire pros and cons, there are benefits, i.e. WASM, and unified code for both the back end and front end. throughout a couple of years, I believe rust will be the master for both the front and back ends, especially with WASM shining. even in embedded, it is going great even with esp32 which needs C/C++, now you can develop with rust and the vendor is investing in rust.
For me what I gain, is more than what I lose when I use rust for full-stack development.
Does anybody else keep getting "No such file or directory (os error 2)". Cant use sudo cargo run so I'm doing cargo build and sudo ./target/debug/backend
You need to run the executable from the backend directory to avoid the error turns out. Only for people who cant sudo cargo run.
nice glad you got it sorted out!