Thanks I'm curious how many hours did this video take to create? Your production quality is superb. Would like to see a mirror of this in Go - Perhaps a production-tier course?
@dreamsofcode Жыл бұрын
Thank you so much! I really appreciate that. It probably took around 30 hours total. My script initially wasn't that great so I had to re-record a bunch of audio! That's a great idea! I'll add it to my backlog.
@codetothemoon Жыл бұрын
@@dreamsofcodethe idea that you are able to acheive this level of quality in only 30 hours is incredible. Quite in awe of your channel in general, well done! 🚀
@dreamsofcode Жыл бұрын
@@codetothemoon Thank you! I'm a huge fan of yours as well!
@AnthonyBullard Жыл бұрын
@dreamsofcode @codetothemoon I love both of your channels, and love seeing the mutual respect. Cheers to you both!
@scaffus Жыл бұрын
Love your work!
@dreamsofcode Жыл бұрын
Thank you so much! I appreciate your support a lot!
@ekekw930 Жыл бұрын
Woud love to see pagination and filtering
@logicweaver7152 Жыл бұрын
This please!
@avishjha4030 Жыл бұрын
Yes please!
@DK-yz9sk Жыл бұрын
+1
@atrocitus777 Жыл бұрын
yes and also how you would handle authorization you probably don't just want anybody update/deleting entries in the database
@dreamsofcode Жыл бұрын
Absolutely!
@_manne Жыл бұрын
Would love to see a full course on this
@yasser_khouader Жыл бұрын
i would love to see the production ready version of this and a detailed video of all the steps implemented in here
@PeterNirschl Жыл бұрын
thank you!
@dreamsofcode Жыл бұрын
Thank you so much! I really appreciate the support.
@swoopertr Жыл бұрын
This is insane. everthing is in one. Keep up the good work.
@lagcisco Жыл бұрын
densely packed with knowledge and great pacing of the video
@petertillemans2231 Жыл бұрын
Love to see a series diving deeper into production ready features
@danielbolivar9134 Жыл бұрын
Loved the foundation reference! Such a great book and loving the series
@dreamsofcode Жыл бұрын
It's so good!
@thegrumpydeveloper Жыл бұрын
Learnt more about rust here than so many other “intro” to rust.
@DeviantFox Жыл бұрын
This was so well done... I'd love to see you do something like this with svelte and maybe some of the more advanced tpoics too.
@AZisk Жыл бұрын
loved the video. really quality stuff here. ❤
@dreamsofcode Жыл бұрын
Thank you!
@user-xp4mm1zu2y Жыл бұрын
best flow ad ive seen so far, the video was good too
@wackytheshaggy Жыл бұрын
I like the tech stack, but honestly I’m most impressed with the sponsor. That looks sick. And the pricing seems decent too.
@mr.togrul--9383 Жыл бұрын
congratz on 50K subs, soon it will be 100K, your content is good and insightful
@SandwichMitGurke Жыл бұрын
recently wrote a CRUD app with the same stack except using diesel instead of sqlx. But after a while diesel was slowing me down and made things overly complicated, so I started using sqlx for new functions (am planning to replace everything with sqlx at some point).
@kalasmournrex1470 Жыл бұрын
If you use mongodb you can write straight up queries in rust. Rust is the best language for mongodb and vice versa.
@3luizcunha Жыл бұрын
Another excellent video of yours! Thank you very much for all the effort you put on your videos. Answering one question you made at the beginning of your video, I'd love to see how you deploy your applications to a custom home lab machine
@dreamsofcode Жыл бұрын
Thank you! I appreciate the kind words. I'm planning on starting another channel very soon which will be more focused on Homelab. I'll make sure to do an announcement when my first video goes live 😁
@derekallred725110 ай бұрын
Love your videos! Id love to see your setup for writing elixir apps! Sad it wasn’t chosen here 😂
@polyglotusamericanus4163 Жыл бұрын
Loved the Foundation reference. Great book!
@MegaPacoquinha Жыл бұрын
Awesome video! Helped me solve a lot of problems I was making while building a crud with axum. Would like to see a production ready one
@RyanBreaker Жыл бұрын
Excellent video. One important bit missed that's also missing in your repo, the `cargo chef cook` also requires a `--release` flag for the Docker caching to work. Without that, it'll still do a full release build every time on the `cargo build`.
@dreamsofcode Жыл бұрын
Good catch!
@Alan910127 Жыл бұрын
The `--release` flag should also be added to the `cargo chef cook` command if you're building your app in release mode!
@HenrikKleist Жыл бұрын
It didn't work out for me. The build failed due to --release flag in cargo chef cook
@1oglop1 Жыл бұрын
Personally I find RUST web frameworks lacking in basic functionality for any non-trivial apps. We had to write a lot of code to make the developmen more efficient. I'd say that the current status of Rust in production requires writing a lot of helper code to solve problems that were solved by other frameworks. So if time to market is what interests you, I'd use another language and framework.
@IvanRandomDude Жыл бұрын
Same as GO. "Just use standard library" bros are always there to tell you that you don't need anything, write your own. As if time is not important in business. As If I can tell my PMs that I need 3 times more time to develop something that it can be done in a week in Laravel, Django or NextJS. But hey, at least our final product that is late to the market will be faster. Nobody will use it but hey, look at how performant it is.
@mintx1720 Жыл бұрын
There is some truth to this, but the real reason you write a lot of "helper code" is because rust does not allow you to get away with not handling errors. Especially in Axum where you have to return a response and not a anyhow::Error. In the long term you will have to do this in other languages and rust will shine in due time.
@leonardeuler4 Жыл бұрын
Examples?
@avalagum7957 Жыл бұрын
Thank you very much for this video. It's really REALLY cool. In the next videos, could you show us: - how to use a logging facade + implementation - how to write tests for this CRUD app using something like @Testcontainers (in Java world) - how to return the id from the insert statement if the id is from a db sequence. For example, my insert statement is like this: insert into my_table ( id, column_name) values (nextval('my_sequence'), 'some name') - how to call another web service, how to generate traceId, spanId and have them written in logging messages - how to use micrometer in Rust - how to use OpenId, OAuth2 in Rust FL0 looks really nice. However, the free tier gives us only 256 MB of memory (it might be ok for a Rust app. I'm coming from the Java world, so 256 MB is very little for me). An alternative solution is Oracle Cloud. Its free tier gives you 4 ARM cpu cores, 24 GB of memory, 200 GB hard disk, a free Oracle db which doesn't use those cpu, memory and hard disk (not sure if Rust can work with Oracle db). I can run docker containers there for a Postgres db, a Jenkins server, a Elasticsearch + Fluentd + Kibana for viewing logs.
@dreamsofcode Жыл бұрын
These are some awesome suggestions! Thank you! Testcontainers are amazing, I use them for rust projects as well 😁. That's a great idea for a video. Oracle cloud sounds interesting as well, I'll check it out for another video! Thank you again
@falkkon9488 Жыл бұрын
INSERT INTO my_table () values ( RETURNING id; you can return more columns, or * , as you want
@TarasShabatin Жыл бұрын
I would love to see the production ready version.
@wlockuz4467 Жыл бұрын
I wish the real world requirements were always this precise.
@mantra578 Жыл бұрын
Your channel is amazing, Please keep up this great work
@smarterlife7331 Жыл бұрын
Awesome content! Thanks.
@LukasSkywalker_ Жыл бұрын
AWS provides free tier for a lot of things and I'm using it with my projects for years
@AlexGhoro Жыл бұрын
Your vid is so asthetic that I keep watching it even I don't know Rust xD
@dreamsofcode Жыл бұрын
Thank you! That's such nice feedback!
@Augustine_354 Жыл бұрын
Axum with sqlx is my currently favourite tech stack as 4 now.
@Kama-n8n Жыл бұрын
The path to success is to take massive, determined action.
@acloudmonk Жыл бұрын
cool. keep learning and keep growing :)
@livghit Жыл бұрын
Techstack deez
@joseph0x45 Жыл бұрын
nutzzzz
@cyanide5188 Жыл бұрын
Deez what
@joseph0x45 Жыл бұрын
@@cyanide5188 🥜
@oz4549 Жыл бұрын
I subbed. I'm waiting for that video 😂
@lucasvieira6783 Жыл бұрын
Hi, you could do a video that goes through all the process of arch linux installation with your setup?
@Bliss467 Жыл бұрын
I feel like CRUD should conceptually be replaced by "SSR", or Save, Search, Remove, because there’s no point in having separate create and update endpoints anymore over a single Save method that recognizes by whether an id exists in the body whether the operation is create or update, while get by id and get all are rarely sufficient, and a get with query parameters is generally necessary, and finally remove includes soft deletes (which I hate, btw, so I’d rather not). But hey, SSR is already taken by Server-Side Rendering so nvm who cares…
@RatchetXJ0461 Жыл бұрын
Great video, when is part two talking about front-end? 😂
@dreamsofcode Жыл бұрын
This is a great idea! My front end skills have gotten rusty recently so I need to sharpen them up 😉
@iippari7 Жыл бұрын
@@dreamsofcode You could, of course, write the front-end in Rust with something like Leptos ;)
@AnthonyBullard Жыл бұрын
I will be trying out your sponsor for my new app real soon
@maxterrain Жыл бұрын
This channel is a gem!
@dreadmondays Жыл бұрын
Excellent video, well structured, and the audio is perfect👌 I would like to say though, having entire lines of code flash in make it VERY hard to follow along. Having your cursor spit out the characters, even when sped up, which you do at times, is much more readable. Also, Phoenix+Liveview when? 🤩
@dreamsofcode Жыл бұрын
Thanks for the feedback! It's a real balancing act trying to keep a good pace for entertainment, whilst also allowing people to follow along. I'll try and do better in the future! I've added to the backlog ;)
@CristianHeredia0 Жыл бұрын
Thanks for the video. Are you using a Neovim distro or is this all custom?
@AbdullahKhadimGo Жыл бұрын
Great video!! BTW I'm thinking about switching to a Linux distro, particularly the one you have, but I really wanna have it look like your UI which is sick.. A tutorial on this would be great!! Great videos as always.
@FarhadOmid Жыл бұрын
This is MacOS…
@AbdullahKhadimGo Жыл бұрын
@@FarhadOmid it's not, it's Arch Linux.
@dargkkast6469 Жыл бұрын
@@AbdullahKhadimGothose windows look just like in MacOS tho
@AbdullahKhadimGo Жыл бұрын
kzbin.info/www/bejne/eYemc3t-e72KhKc @@FarhadOmid
@AbdullahKhadimGo Жыл бұрын
@@dargkkast6469 I am wondering how does he minimize those windows, there's literally just one button on the window bar...
@falkkon9488 Жыл бұрын
Hi, I really enjoy your videos ! I'd love to see more production-"ready" content and more Rust backends. Yes pagination and filtering please
@reed6514 Жыл бұрын
Pagination is so annoying to do.
@kodosunofficial7 ай бұрын
Would love to see template engine and htmx integration
@davidleslie5415 Жыл бұрын
Would love to see a full course
@bashtinator Жыл бұрын
I'd love to see more production-"ready" content and more Rust backends.
@autohmae Жыл бұрын
Important missing feature/thing to do: make it so that it does a database migration before deployment. And why is it not using the database to generate the timestamps ?
@lebahsaham9947 Жыл бұрын
nice video editing... i want all udemy video like this!!!!!!!
@dreamsofcode Жыл бұрын
Thank you! I'm working on my own courses in the future. Is there one you'd like to see in particular?
@adworksout7 Жыл бұрын
Elixer never heard of it till this point
@AnnasVirtual Жыл бұрын
look at the c# behind rust mmmm i love it
@hmmmza Жыл бұрын
Would you please teach us the necessary concepts to develop a mindset like yours...
@heartly4u Жыл бұрын
why wasnt a Result return in case of update , but was returned in case of create and read ??? @op
@andrecavaco8321 Жыл бұрын
Would love to see a full production app using go
@codeman99-dev Жыл бұрын
3:25 Why `.unwrap()`...? The return type is already a result. Seems like the question mark operator is more correct. (This is a genuine question... I'm learning too!)
@eddebrock Жыл бұрын
HOLD ON!! You can make the sub button RGB for the push? What sorcery is this??
@Dev-Siri Жыл бұрын
lets get him to 75k boys! we forcing him to try out the dreaded.
@Hobbitstomper Жыл бұрын
If only your discord server wouldn't be run by power hungry abusive toxic mods.
@nopenope6486 Жыл бұрын
Same poor experience here. I asked a question about Neovim and I got several helpful replies. A day later a mod tells me wrong channel (General instead of Neovim help). I politely apologized and thanked him for pointing me to the right channel. Mod continues the conversation by telling me not to do it again. (I didn't) but I apologized again anyway, saying I won't do it again and I know where to post now. Then he keeps pushing for the conversation to go on, and how I should have known better. Not really sure on why he kept pushing for it since I haven't written a single word other than apologizing. So I apologize again and ended the sentence with a smiley face. I was nothing but polite. One minute later he bans me for 24 hours saying that a "smiley face" is considered extremely passive aggressive and he doesn't need such an attitude. I PM him and then he goes on and on how a smiley face is passive-aggressive. He eventually unbanned me. But I gotta say, a person that is so hypersensitive who gets triggered by a genuine smiley face and reads into things that aren't there, and is passive-aggressive himself while accusing others of exactly that, should not moderate your server.
@arjix8738 Жыл бұрын
@@nopenope6486 sighs, I have had the same experience in other discord servers, sending a smiley face is somehow "toxic", you should prob send :^), as it is kinda playful and leaves no room for misunderstandings (I hope)
@yos2413 Жыл бұрын
thanks
@AnthonyR007 Жыл бұрын
Subbing to see most despised tech stack
@AnthonyR007 Жыл бұрын
Really though, it’s because I just realized I wasn’t already subscribed
@dreamsofcode Жыл бұрын
Haha. I'm scared to do it.
@larsondavis81554 ай бұрын
you mentioned, not until 75k subs. this aged super well. XD
@Simiaaaa Жыл бұрын
Very nice video thanks
@brencancer Жыл бұрын
what is the plugin for toml to know latest version? thank you for the content 🤙
@rafaelgomes3054 Жыл бұрын
I like your channel. I think you're really good at explaining things. And this one was a good video. The thing is that I watch your channel to try and be a better developer. A LOT of your latest videos has focused heavily on the sponsor, and sometimes the sponsor is not mainstream at all. I'm left with the feeling that I just learned something useless. Again, this doesn't fully apply to this video. Only to a minor extent. I understand the need to monetize the content, and I hope you keep approaching that balance, but please take this into consideration.
@dreamsofcode Жыл бұрын
Hey! Thanks for the feedback. I hear you. Sponsorships are a hard one to balance. I try to match sponsors to content that I already have planned and am trying to get better at making them complimentary to the video itself (rather than being the sole focus). In this video, the product complimented well for getting the app deployed, otherwise I probably would have just ran it locally or on my homelab. The video content itself other than that was pretty much untouched. As I start producing more content, the ratio of sponsored content should decline, but that's not for a few more months. Thank you for sticking with me as I try to get better with everything! I'm still pretty new to making content!
@AdityaSinha-k5m Жыл бұрын
What editor are using?
@popplestones886 Жыл бұрын
I really like the video and trying to follow along. Just stuck with an error compiling after adding the create_quote handler. Is the code available on github?
@colbyberger1881 Жыл бұрын
I use Golang and Elixir....enjoy it all. Idk about rust tbh. The complexity of the language doesn't help with fast modifications to existing code bases.
@dreamsofcode Жыл бұрын
Big fan of all three languages, and for different use cases. Normally I'd go with Golang for a CRUD api, but the survey gods decided!
@nan0ponk Жыл бұрын
Production!
@mysterry2000 Жыл бұрын
Tempted to subscribe now!
@kshyr811 Жыл бұрын
such a nice and cheap to run on cloud stack
@adamszalkowski8226 Жыл бұрын
Why are you including a whole Rust toolchain in the deployed container?
@dreamsofcode Жыл бұрын
Yeah, there's no need to do so. I was just copying the example on the fl0 website. I probably wouldn't use the chef base image either in a personal project but wanted to make it as easy to follow as possible.
@weeb0. Жыл бұрын
For the update handler, shouldn't it be sensible to use PATCH instead of PUT?
@weeb0. Жыл бұрын
PUT is where you can add a resource with the properties without failing as in "already exists". PATCH is to update a resource's properties
@dreamsofcode Жыл бұрын
A great question! I typically prefer PUT to PATCH for updating. PATCH is used for partial updates, rather than replacing the resource in its entirety.
@epicmap Жыл бұрын
I like Rust, but I'm afraid of starting a real production project using it, because I don't want to shoot myself in the foot. I've heard async Rust have a lot of complicated stuff which makes it extremely easy to shoot yourself in the foot instead of getting BLAZING FAST™ performance. A ssuming I need something a bit more complicated than just a CRUD API (or some easy CRUD project at first will grow into something complex).
@epicmap Жыл бұрын
That's why I stick with Go and TypeScript for real world applications. And also Rust developers are still rare on the job market.
@principleshipcoleoid8095 Жыл бұрын
Join the Bevy Rust cult! I mean movement
@LinuxForLife Жыл бұрын
. Nice! But I think you miss the cargo watch, to automatically build and run you code. 😉 Anyway, good video as always. 👍
@emmanuelezeagwula7436 Жыл бұрын
what's that font tho ?
@naptimusnapolyus1227 Жыл бұрын
bro can spawn code out of nowhere 💀
@swyktrodeherrera31 Жыл бұрын
Delete should return 204 in case of success
@Debby-z3r Жыл бұрын
Time changes everything except something within us which is always surprised by change.
@comedyclub333 Жыл бұрын
Why the heck does that Dockerfile consist of FOUR stages that almost do nothing? I mean, one build stage is for providing a base for two other build stages, which look like they could do their stuff in one build stage. Is this necessary in rust or why is the "cargo chef prepare" in a different build stage than the "cargo chef cook" and "cargo build"? Seems overcomplicated to create a new build stage for every command but copying everything over from the previous stage. The only thing I could think of is optimizing container build time by making better use of layer caching, although this doesn't seem that significant here.
@dreamsofcode Жыл бұрын
Agreed. It's not how I would normally write a dockerfile. I also don't believe you need to use their reference one either (I tried it out on another project and it worked fine). You should be good with a more concise dockerfile.
@nevokrien95 Жыл бұрын
Can u so 1 for deploying a phinix app?
@dreamsofcode Жыл бұрын
This is a great idea
@nevokrien95 Жыл бұрын
@dreamsofcode Thx. I am just working on 1 rn and I asked for what I needed
@codingdestro Жыл бұрын
bro i'm waiting for next video in flutter setup on nvchad please make make make .......!!!!!
@dreamsofcode Жыл бұрын
Deal. I've added it as the next one in the series.
@thedelanyo Жыл бұрын
Mine could be Zig, Sveltekit, supabase
@wondays654 Жыл бұрын
I like zig but the documentation of the standard library is horrible. Better documentation imo would make it more attractive.
@leonardeuler4 Жыл бұрын
CRUD in language with possible use after free? No way
@cringowylovesong Жыл бұрын
What's that font?
@krtirtho Жыл бұрын
Gigachads uses the most hated stack in production
@darkogrozdanovski Жыл бұрын
Where are the tests?
@dreamsofcode Жыл бұрын
They're in the 60 minute video 🤣
@Shogoeu Жыл бұрын
Actually JS is most loved (desired).
@adrymateoramon708711 ай бұрын
12:50 ❣❣❣❣❣❣❣❣
@marcusflaviusGS Жыл бұрын
Man I would love to see you build on Elixir... There is already lots of Rust content. Even though I love Rust, It would be nice to see Elixir + Phoenix on your channel.
@derekallred725110 ай бұрын
Agreed!! 🎉
@NexusGamingRadical Жыл бұрын
I personally hate docker with a passion. As soon as a I see shit that doesn't touch the file system and is compiled with it's deps using docker, I blow a fuse.
@dreamsofcode Жыл бұрын
What do you hate about it?
@sunofabeach9424 Жыл бұрын
@@dreamsofcode the fact that every docker user thinks that they are Google?
@mintx1720 Жыл бұрын
Cobol on wheelchair!
@raduking11 ай бұрын
Gotta love SQL injection ;)
@JarppaGuru Жыл бұрын
2:16 yes gotcha. you give your fiules to someone else computer free
@gaxkiller Жыл бұрын
Who the fk put python that high in language they love???
@ismaelabogabal6041 Жыл бұрын
nestjs js would do all of this in single line comand in terminal 🤣🤣🤣🤣
@Andre-z2v Жыл бұрын
You may be deceived if you trust too much, but you will live in torment if you don't trust enough.
@GladTidingsToTheStrangers Жыл бұрын
why were my comments deleted?
@dreamsofcode Жыл бұрын
Are you posting a URL? KZbin automatically deletes comments with URLs.