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

Поделиться
HTML-код
  • Опубликовано: 1 дек 2024

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

  • @codebreakthrough
    @codebreakthrough  Год назад +7

    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 11 месяцев назад

      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.

  • @emetonjosolomon
    @emetonjosolomon 10 месяцев назад +13

    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 5 месяцев назад +3

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

  • @taggosaurus
    @taggosaurus 10 месяцев назад +3

    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 10 месяцев назад +6

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

  • @ArashAkbarpour
    @ArashAkbarpour Год назад +8

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

  • @danielarmenta8127
    @danielarmenta8127 Год назад +3

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

  • @Shabab-iz8ml
    @Shabab-iz8ml 5 месяцев назад +3

    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

  • @ashraf3053
    @ashraf3053 10 месяцев назад +2

    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

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

    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  7 месяцев назад +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.

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

    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!

  • @passangdorji388
    @passangdorji388 4 месяца назад +1

    excellent lesson for beginner... i have learned a lot from this tutorial ..thank you Mr.Curry

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

    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.

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

    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.

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

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

  • @ajaniyeseer5947
    @ajaniyeseer5947 Год назад +2

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

  • @sifr-in
    @sifr-in 6 месяцев назад

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

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

    Thanks man. Need more with production ready project example.

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

    I like your wall color, nice pick.

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

    Thank you for this. I wished to understand Phoenix in depth.

  • @codex8797
    @codex8797 9 месяцев назад +2

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

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

    awesome, thanks!!

  • @Harshadswe123
    @Harshadswe123 Год назад +3

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

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

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

  • @iftakharhusan
    @iftakharhusan 11 месяцев назад +4

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

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

    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

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

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

  • @zombieallen
    @zombieallen 28 дней назад

    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.

  • @mra-f3x
    @mra-f3x 4 месяца назад

    what are your vs code extensions and settings for html.heex code highlighting?

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

    excellent!

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

    Could you please create more Phoenix tutorials with authentication, jwt token & event driven scenarios?

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

    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 6 месяцев назад

    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)

  • @TechnoTIK-2024
    @TechnoTIK-2024 2 месяца назад

    21:37
    It is very friendly with single page application if you use HTMX

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

    Could you kindly making another one. But focus on building DB, RESTfulAPI, front end, and maybe Authentication. Ill even pay for it !!!

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

    more elixir vids!

  • @jg9193
    @jg9193 3 месяца назад

    Liveview templates are actually friendly for single page apps though. The part about full page refreshes is not true.

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

    Phoenix feels very Rails-like.

  • @harisharasu24
    @harisharasu24 Год назад +2

    First view 😅❤…gonna be very interesting

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

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

  • @oracle_professor
    @oracle_professor Год назад +9

    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 Год назад +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 11 месяцев назад +1

      Thats why he is the goat teacher.

    • @ferylj3694
      @ferylj3694 5 месяцев назад +3

      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 5 месяцев назад

      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

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

    😊

  • @ericbroun4657
    @ericbroun4657 Год назад +2

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

  • @squdge
    @squdge 11 месяцев назад +1

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

  • @_jeh.k
    @_jeh.k Месяц назад

    Thank You, Mr. Curry! You just helped me 10x, and land a fulltime backend dev job in 2 months.
    You are, AMAZING!!! :)🔥😱📉