What did you think of this video? 💰 FREE Software Dev Intro Course - calcur.tech/free-dev-course 💯 FREE Courses (100+ hours) - calcur.tech/free-courses Timestamps: 00:00:00 - Intro 00:01:20 - What is Elixir Phoenix 00:03:38 - MVC Pattern 00:05:49 - Installation 00:08:25 - Project Structure 00:10:03 - Main files 00:11:08 - Other Folders 00:12:12 - Create a Repo 00:13:59 - Basic Application Architecture 00:16:12 - Adding a New Page with Mock Data 00:22:24 - Creating an API 00:22:49 - Working with the Database 00:31:53 - Routes 00:32:48 - Updating a Resource 00:34:45 - Delete 00:35:23 - Users and Relationships 00:36:01 - Update the Model 00:37:23 - Making the association in models 00:40:25 - Nested Data in API Calls 00:43:17 - Get a User’s Posts 00:48:21 - Conclusion
Earned a like a subscription from me. Things to add -> Intermediate to Advanced. There's tons of material for new programmers... and most of it does not adequately address, if at all, TDD.
Can not wait to view whole video and then appreciate your effort and time. Thank you Caleb. Keep up your good content and please continue more Elixir and Phoenix. 👍👍👍👍👍
00:01 Introduction to Phoenix and Elixir web framework 01:59 Web applications are split into front end and back end components 05:58 Setting up a new Phoenix application and configuring the database. 08:11 Configuring the Phoenix application 12:15 Commit everything into a repo to have a fresh initial application. 14:15 Understanding the structure of Phoenix framework web paths. 18:20 Creating mock data and passing it to the view in Phoenix Framework 20:40 Using Elixir code to generate HTML on the back end 24:21 Setting up Phoenix framework API for table creation and migrations 26:22 Using Postman for sending POST requests to an API 30:36 Handling response preparation and rendering in Phoenix Framework 32:36 Understanding the difference between Patch and Put methods for updating in REST API 36:29 Creating user migration and associating with post 38:36 Adding user ID column to alter database structure 42:41 Understanding structuring view and schema in Phoenix REST API 44:31 Modifying the view to display posts alongside user data 48:34 Users can register, log in, and create posts
Hey Caleb, I've gotta say this is the first time I've understood an elixir tutorial 😅, you explained how Phoenix works on a high level that I can relate to how I'd do things using nodejs😊. Thank you so much!! Can't wait you learn more from you
This is a very beginner-friendly video. I have a decent background in NestJS, so I was almost instantly able to map my existing knowledge to this new Phoenix framework with the help of this. Almost everything maps perfectly and the video was on-point. No repetition just points. Love it. Thanks a lot!
Yes, I absolutely love how once you learn one framework, it’s just a matter of learning the differences between them! Too many people worry about starting with the wrong thing. Just pick something and learn.
Thank you very much, I'm starting to learn elixir recently and I've been looking for a tutorial for Rest-APi in elixir for days but I could only find previous versions and I didn't know how to orient myself, thanks to you I understood how to move!
maybe you can bring a full course about phoenix liveview, i really think thats the future of web developer, bring us some project, should be really awesome.
*Hi! I am new to phoenix and elixir in general and your video is first i've found. Thanks for the video, it is really helps to get into things!* I have a question: at 14:43 we can see :home in render(...) call. Is this a page we would render? If so, what does :home at 14:37, where we define route? I guessing that rout pointing to 'def home', and inside render(conn, :home, ...) :home is page name. Correct? (this is pretty confusing since all of this named home). And one more q about file and references (aka name concention): at router we have PageController, and in controllers we have page_controller.ex inside 'controllers' dir. 1) At router: changing PageController to Pagecontroller or page_controller would break the things? 2) Renaming 'controllers' dir would break the things? 3) At 'controllers' dir: renaming page_controller.ex into PageController.ex would break the things?
Hey Caleb, really appreciate the things you are doing with Elixir, would it be possible to make an explainer on how Elixir differs from other programming languages? Also, could you explain the Schema and Contexts here? I heard that Elixir really shows its features once they are deployed in production
Great tutorial, I learned a lot. I am disappointed that we're using Postman instead of learning how to make these requests in app. Now I'm trying to use forms and am entirely lost.
I downloaded Postman but am having trouble get the screen you show at 26:55. IO started the application, but am unsure which option you selected to generate that screen.
You did not show us how to display the list of users but without the posts and now it's crashing :( protocol Enumerable not implemented for #Ecto.Association.NotLoaded of type Ecto.Association.NotLoaded (a struct)
I don't understand how this guy knows all the languages of the computer. Every person has a specialization in a certain field. Even in the university, we have only one teacher for a subject, But here on RUclips, some practically useless clever people, take the study material from the internet, then make some changes to it, make it their own, and upload it again.
To be honest, it probably takes a week of learning something to be able to create beginner-targeted courses and tutorials like this one. Most of the tech content creators are not experts in a thing they are teaching. It's like when ChatGPT initially came out and then week later you had "ChatGPT experts" selling books and courses about ChatGPT :)
When you master the concepts , you can learn any language in very short time. If you want to master programing languages read programming language design and implementation by pratt
I dont understand how you came to that conclusion, Are you trying to discredit the man? He is teaching the basic to intermediate stuff it is totally possible to try tens of technologies, common dev may have to dable with at least 3! Specialization only comes once you want to delve deeper with a product already months in the market. But as a dev in this era you should be able to pick up a techstack in a few weeks as some stacks my offer advances not yet present in others
What did you think of this video?
💰 FREE Software Dev Intro Course - calcur.tech/free-dev-course
💯 FREE Courses (100+ hours) - calcur.tech/free-courses
Timestamps:
00:00:00 - Intro
00:01:20 - What is Elixir Phoenix
00:03:38 - MVC Pattern
00:05:49 - Installation
00:08:25 - Project Structure
00:10:03 - Main files
00:11:08 - Other Folders
00:12:12 - Create a Repo
00:13:59 - Basic Application Architecture
00:16:12 - Adding a New Page with Mock Data
00:22:24 - Creating an API
00:22:49 - Working with the Database
00:31:53 - Routes
00:32:48 - Updating a Resource
00:34:45 - Delete
00:35:23 - Users and Relationships
00:36:01 - Update the Model
00:37:23 - Making the association in models
00:40:25 - Nested Data in API Calls
00:43:17 - Get a User’s Posts
00:48:21 - Conclusion
Earned a like a subscription from me. Things to add -> Intermediate to Advanced. There's tons of material for new programmers... and most of it does not adequately address, if at all, TDD.
I started my Elixir journey with your first Elixir vid, and I just finished this one. I have learned a lot. thanks
This is the Best tutorial... other tubers are just reading blog posts and screaming CTA... +1 Sub...
Man you have changed so much in 8 years. When I started out you were teaching databases. Somehow after years I found this channel.
this is a spectacular presentation, very clear, easy to follow, even for someone barely familiar with Elixir.
Can not wait to view whole video and then appreciate your effort and time.
Thank you Caleb. Keep up your good content and please continue more Elixir and Phoenix.
👍👍👍👍👍
Most of what I know about programming is thanks 2 u man, can't thank you enough
00:01 Introduction to Phoenix and Elixir web framework
01:59 Web applications are split into front end and back end components
05:58 Setting up a new Phoenix application and configuring the database.
08:11 Configuring the Phoenix application
12:15 Commit everything into a repo to have a fresh initial application.
14:15 Understanding the structure of Phoenix framework web paths.
18:20 Creating mock data and passing it to the view in Phoenix Framework
20:40 Using Elixir code to generate HTML on the back end
24:21 Setting up Phoenix framework API for table creation and migrations
26:22 Using Postman for sending POST requests to an API
30:36 Handling response preparation and rendering in Phoenix Framework
32:36 Understanding the difference between Patch and Put methods for updating in REST API
36:29 Creating user migration and associating with post
38:36 Adding user ID column to alter database structure
42:41 Understanding structuring view and schema in Phoenix REST API
44:31 Modifying the view to display posts alongside user data
48:34 Users can register, log in, and create posts
Hey Caleb, I've gotta say this is the first time I've understood an elixir tutorial 😅, you explained how Phoenix works on a high level that I can relate to how I'd do things using nodejs😊. Thank you so much!! Can't wait you learn more from you
This is so true!
This is a very beginner-friendly video. I have a decent background in NestJS, so I was almost instantly able to map my existing knowledge to this new Phoenix framework with the help of this. Almost everything maps perfectly and the video was on-point. No repetition just points. Love it. Thanks a lot!
Yes, I absolutely love how once you learn one framework, it’s just a matter of learning the differences between them! Too many people worry about starting with the wrong thing. Just pick something and learn.
Thank you very much, I'm starting to learn elixir recently and I've been looking for a tutorial for Rest-APi in elixir for days but I could only find previous versions and I didn't know how to orient myself, thanks to you I understood how to move!
excellent lesson for beginner... i have learned a lot from this tutorial ..thank you Mr.Curry
maybe you can bring a full course about phoenix liveview, i really think thats the future of web developer, bring us some project, should be really awesome.
We need more of these videos on Elixir and Phoenix as this is the best on the internet, others are either outdated or not easy to understand.
Just started my elixir journey, would be nice to see you do more with elixir
I don't develop web with elixir I use Django..but your clear explanation will makes me want to give it a try
explanatory.
compared to others.
(that [your saying] "don't worry", gives strength to go ahead)
subscribed
Thanks man. Need more with production ready project example.
I like your wall color, nice pick.
Thank you for this. I wished to understand Phoenix in depth.
Thanks bro. For some reason, Phoenix seems very similar to ruby on rails for me.
awesome, thanks!!
Make a course on laravel it is also an amazing framework with lot of functionalities inbuild
*Hi! I am new to phoenix and elixir in general and your video is first i've found. Thanks for the video, it is really helps to get into things!*
I have a question: at 14:43 we can see :home in render(...) call. Is this a page we would render? If so, what does :home at 14:37, where we define route? I guessing that rout pointing to 'def home', and inside render(conn, :home, ...) :home is page name. Correct? (this is pretty confusing since all of this named home).
And one more q about file and references (aka name concention): at router we have PageController, and in controllers we have page_controller.ex inside 'controllers' dir.
1) At router: changing PageController to Pagecontroller or page_controller would break the things?
2) Renaming 'controllers' dir would break the things?
3) At 'controllers' dir: renaming page_controller.ex into PageController.ex would break the things?
It would be great to have a phoenix and phoenix liveview course and maybe making a realtime app
Hey Caleb, really appreciate the things you are doing with Elixir, would it be possible to make an explainer on how Elixir differs from other programming languages? Also, could you explain the Schema and Contexts here? I heard that Elixir really shows its features once they are deployed in production
I'm running into this error when returning /api/posts
no "index" json template defined for ForumWeb.PostJSON (the module does not exist)
Great tutorial, I learned a lot. I am disappointed that we're using Postman instead of learning how to make these requests in app. Now I'm trying to use forms and am entirely lost.
what are your vs code extensions and settings for html.heex code highlighting?
excellent!
Could you please create more Phoenix tutorials with authentication, jwt token & event driven scenarios?
I downloaded Postman but am having trouble get the screen you show at 26:55. IO started the application, but am unsure which option you selected to generate that screen.
Solved the prob le myself
You did not show us how to display the list of users but without the posts and now it's crashing :(
protocol Enumerable not implemented for #Ecto.Association.NotLoaded of type Ecto.Association.NotLoaded (a struct)
21:37
It is very friendly with single page application if you use HTMX
Could you kindly making another one. But focus on building DB, RESTfulAPI, front end, and maybe Authentication. Ill even pay for it !!!
more elixir vids!
Liveview templates are actually friendly for single page apps though. The part about full page refreshes is not true.
Phoenix feels very Rails-like.
First view 😅❤…gonna be very interesting
Is there any paid video for this where one can learn to advanced?
I don't understand how this guy knows all the languages of the computer. Every person has a specialization in a certain field. Even in the university, we have only one teacher for a subject, But here on RUclips, some practically useless clever people, take the study material from the internet, then make some changes to it, make it their own, and upload it again.
To be honest, it probably takes a week of learning something to be able to create beginner-targeted courses and tutorials like this one. Most of the tech content creators are not experts in a thing they are teaching. It's like when ChatGPT initially came out and then week later you had "ChatGPT experts" selling books and courses about ChatGPT :)
Thats why he is the goat teacher.
When you master the concepts , you can learn any language in very short time.
If you want to master programing languages read programming language design and implementation by pratt
I dont understand how you came to that conclusion, Are you trying to discredit the man?
He is teaching the basic to intermediate stuff it is totally possible to try tens of technologies, common dev may have to dable with at least 3! Specialization only comes once you want to delve deeper with a product already months in the market. But as a dev in this era you should be able to pick up a techstack in a few weeks as some stacks my offer advances not yet present in others
😊
❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤
Test file, not gonna need that.. 🚩 skip video
Thank You, Mr. Curry! You just helped me 10x, and land a fulltime backend dev job in 2 months.
You are, AMAZING!!! :)🔥😱📉