Phoenix Framework REST API Crash Course - Introduction + Full Elixir API Tutorial

Поделиться
HTML-код
  • Опубликовано: 16 июл 2024
  • Elixir Programming Introduction - • Elixir Programming Int...
    💰 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
    🏆 C++ Mastery Course - cppmastery.com
    ⚛️ FREE React Course (20 hours) - calcur.tech/free-react-course
    ✅ Data Structures & Algorithms - calcur.tech/dsa-youtube
    ~~~~~~~~~~~~~~~ CONNECT ~~~~~~~~~~~~~~~
    ✉️ Newsletter - calcur.tech/newsletter
    📸 Instagram - / calebcurry
    🐦 Twitter - / calebcurry
    🔗 LinkedIn - / calebcurry
    ▶️ Subscribe - calcur.tech/subscribe
    👨🏻‍🎓 Courses - www.codebreakthrough.com
    ~~~~~~~~~~~~~~ SUPPORT ME ~~~~~~~~~~~~~~
    ↪ My Amazon Store - www.amazon.com/shop/calebcurry
    🅿 Patreon - calcur.tech/patreon-calebcurry
    🅖 GitHub Sponsors - github.com/sponsors/CalebCurry
    Ⓟ Paypal - paypal.me/calcur
  • НаукаНаука

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

  • @codebreakthrough
    @codebreakthrough  7 месяцев назад +6

    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

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

      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.

  • @user-zm4lx1ml5d
    @user-zm4lx1ml5d 6 месяцев назад +9

    I started my Elixir journey with your first Elixir vid, and I just finished this one. I have learned a lot. thanks

  • @RAZR_Channel
    @RAZR_Channel 25 дней назад

    This is the Best tutorial... other tubers are just reading blog posts and screaming CTA... +1 Sub...

  • @felipe-rodriguees
    @felipe-rodriguees 7 месяцев назад +6

    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.

  • @ArashAkbarpour
    @ArashAkbarpour 7 месяцев назад +7

    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.
    👍👍👍👍👍

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

    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!

  • @Shabab-iz8ml
    @Shabab-iz8ml Месяц назад

    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

  • @danielarmenta8127
    @danielarmenta8127 7 месяцев назад +3

    Most of what I know about programming is thanks 2 u man, can't thank you enough

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

    Man you have changed so much in 8 years. When I started out you were teaching databases. Somehow after years I found this channel.

  • @mruizcamauer
    @mruizcamauer 6 месяцев назад +2

    this is a spectacular presentation, very clear, easy to follow, even for someone barely familiar with Elixir.

  • @rukshanj.senanayaka1467
    @rukshanj.senanayaka1467 2 месяца назад

    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!

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

      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.

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

    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

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

    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.

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

    Thanks man. Need more with production ready project example.

  • @alissonprimo
    @alissonprimo 7 месяцев назад +1

    awesome, thanks!!

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

    Just started my elixir journey, would be nice to see you do more with elixir

  • @ajaniyeseer5947
    @ajaniyeseer5947 7 месяцев назад +2

    I don't develop web with elixir I use Django..but your clear explanation will makes me want to give it a try

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

    explanatory.
    compared to others.
    (that [your saying] "don't worry", gives strength to go ahead)
    subscribed

  • @gordonbaird4072
    @gordonbaird4072 24 дня назад

    excellent!

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

    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

  • @codex8797
    @codex8797 5 месяцев назад +1

    Thanks bro. For some reason, Phoenix seems very similar to ruby on rails for me.

  • @Harshadswe123
    @Harshadswe123 7 месяцев назад +3

    Make a course on laravel it is also an amazing framework with lot of functionalities inbuild

  • @alexkazakov7114
    @alexkazakov7114 3 дня назад

    *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?

  • @harisharasu3424
    @harisharasu3424 7 месяцев назад +2

    First view 😅❤…gonna be very interesting

  • @iftakharhusan
    @iftakharhusan 6 месяцев назад +2

    It would be great to have a phoenix and phoenix liveview course and maybe making a realtime app

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

    I'm running into this error when returning /api/posts
    no "index" json template defined for ForumWeb.PostJSON (the module does not exist)

  • @HartleySan
    @HartleySan 5 месяцев назад +1

    Phoenix feels very Rails-like.

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

    😊

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

    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.

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

    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)

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

    Is there any paid video for this where one can learn to advanced?

  • @ericbroun4657
    @ericbroun4657 7 месяцев назад +2

    ❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤

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

    Test file, not gonna need that.. 🚩 skip video

  • @oracle_professor
    @oracle_professor 7 месяцев назад +6

    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.

    • @IvanRandomDude
      @IvanRandomDude 7 месяцев назад +1

      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 :)

    • @prashlovessamosa
      @prashlovessamosa 7 месяцев назад

      Thats why he is the goat teacher.

    • @ferylj3694
      @ferylj3694 Месяц назад +1

      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

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

      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