LWC Project - Part 1 | Build a Movie Search App with Lightning Web Components

Поділитися
Вставка
  • Опубліковано 30 вер 2024
  • Topmate Link for One to One Connect
    topmate.io/tec...
    Salesforce Interview Questions and Answers
    • Salesforce Interview Q...
    LWC Bootcamp
    • LWC Bootcamp Free | Li...
    Salesforce Integration
    • Salesforce Integration...
    Salesforce Advanced Flows
    • Advanced Salesforce Fl...
    Salesforce Projects
    • LWC Projects
    🎬 Movie Search Using LWC - Part 1
    ⭐ If you find this project helpful, please consider giving it a like.
    📝 Description:
    In this project, we'll create a Movie Search web application using Salesforce's Lightning Web Components (LWC). This web component allows users to search for movies using the Open API. We'll walk through the entire development process, from setting up a Salesforce environment to fetching and displaying movie results. Whether you're a beginner or an experienced developer, you'll find valuable insights in this tutorial.
    🚀 Key Features:
    - Integration with Public API
    - Real-time movie search functionality.
    - Dynamic results displayed using Lightning Web Components.
    - Easy-to-follow step-by-step tutorial.
    📚 Resources:
    - Remote Site Setting and CSP Trusted Site for this project
    ⭐ m.media-amazon...
    ⭐ www.omdbapi.com
    - Public API Documentation:
    ⭐ www.omdbapi.com/
    🔧 Technologies Used:
    - Salesforce Lightning Web Components (LWC)
    - JavaScript
    - HTML/CSS
    🤝 Support:
    If you have any questions, suggestions, or encounter issues during this project, please leave a comment below. I'll do my best to assist you.
    🤝 Learning from this project
    👉 Use of Fetch API
    👉 Parent to Child Communication - @api
    👉 Child to Parent Communication - customEvents
    👉 Independent Component Communication - Message Channel
    👉 External CSS
    👉 Use Component on LWR Sites
    👉 Template Looping and Conditional Rendering
    👉 Getter methods
    👍 Don't forget to like this video, subscribe to the channel, and ring the notification bell to stay updated with more tutorials like this one!
    #salesforce #lwc #lwcproject #lwcminiproject #lwcadvanced #lwcbasics #lightningwebcomponent #lwr

КОМЕНТАРІ • 69

  • @user-jb6cn9ej5m
    @user-jb6cn9ej5m Місяць тому +1

    Hello, could you please provide a more detailed explanation? I am having difficulty understanding, as it seems you are only presenting the code. I would appreciate it if you could elaborate on the concept in your response.
    Thank you."

  • @sn14110
    @sn14110 18 днів тому

    Thanks for the video .I have a doubt
    You mentioned about debouncing..Does debouncing and throttling is the same and if not then can you let m know what is the difference?

  • @ashishkurundkar8543
    @ashishkurundkar8543 5 днів тому

    Hello Sir, I am getting error as {Response: 'False', Error: "Incorrect syntax near 'this'

    • @TechJourneyWithAnkit
      @TechJourneyWithAnkit  4 дні тому

      Recheck if url endpoint is created correctly and there are no typos in property name

  • @JyotiSingh-ff5zp
    @JyotiSingh-ff5zp 4 місяці тому

    For movies and series it is working but how can we search for "type 3" Episodes?. How to put the name?

  • @DSA_Javascript
    @DSA_Javascript 5 місяців тому

    I am getting a pop error as A Component Error has occurred! "Cannot read properties of undefined (reading 'Poster')".but when I close the pop then do search the movie everything working fine

    • @TechJourneyWithAnkit
      @TechJourneyWithAnkit  5 місяців тому

      do the debug and please try to check line by line , where it is failing

  • @TheCandidTrader
    @TheCandidTrader 4 місяці тому

    hello sir, i was stuck on tile component. It is not rendering the tiles. There is no error in code but on UI it is showing only black background. Please help me with it.

  • @suhasshenoy1283
    @suhasshenoy1283 7 місяців тому

    Sir during compilation I am not getting any errors. but I am getting "Cannot read properties of undefined (reading 'length')" error in the component

  • @rajking69
    @rajking69 7 місяців тому

    Hello sir i I am looking for a job in salesforce development as a fresher for a long time so please help if any reference
    Thank you

    • @TechJourneyWithAnkit
      @TechJourneyWithAnkit  7 місяців тому +1

      I don't have any openings. Will let you know if there is any

  • @sushmitamandal942
    @sushmitamandal942 8 місяців тому

    Can we not make the child component (movie tile) communicate with the other component(movie Detail) making it a child component of (movie tile)

    • @TechJourneyWithAnkit
      @TechJourneyWithAnkit  8 місяців тому

      yes it is possible by keeping both movie tile and movie detail under another component ( let's say master component) , but again for this project i want to explore all types of communication

  • @SFDCWEB
    @SFDCWEB 10 місяців тому

    Hello Sir I am getting this error
    {Response: 'False', Error: 'Incorrect IMDb ID.'}Error: "Incorrect IMDb ID."Response: "False"[[Prototype]]: Object

    • @TechJourneyWithAnkit
      @TechJourneyWithAnkit  10 місяців тому

      Double check your api key. Check if url is formed correctly

    • @SFDCWEB
      @SFDCWEB 10 місяців тому

      @@TechJourneyWithAnkit solved 😊 thanks for your reply 😊

  • @sarcasticmind1676
    @sarcasticmind1676 9 місяців тому

    56:00 why to do it unnecesarry. passing data to parent and then again passing the same data from parent to the same child

  • @Shaik_Abdul_01
    @Shaik_Abdul_01 9 місяців тому

    Hi @Ankit I unable to solve this error: "{Response: 'False', Error: 'Incorrect IMDb ID.'}Error: "Incorrect IMDb ID."Response: "False"[[Prototype]]: Object".
    I tired by double checking my apikey and i checked URL also which is in correct form. What could be the reason? And pls guide me to reslove it.

    • @TechJourneyWithAnkit
      @TechJourneyWithAnkit  9 місяців тому

      Check if message service sending the imbd I'd correctly

    • @sundichaithanyareddy
      @sundichaithanyareddy 9 місяців тому

      Hi have you found what was the reason for that error because I am also getting the same error. Tell me if you know what is the mistake

    • @JShorts511
      @JShorts511 4 місяці тому +1

      @@sundichaithanyareddy In my case ,I forgot to add onchange property to one of the ligthning-input

  • @prathamkunjeer
    @prathamkunjeer 2 місяці тому

    Getting an error like : Movie Search Output {Response: 'False', Error: 'Invalid API key!'} . I have formed the URL correctly also I have authorized the API key. Still getting this error ! Can you please help ?

    • @TechJourneyWithAnkit
      @TechJourneyWithAnkit  2 місяці тому

      Recheck if you are using https or http while making any fetch request and accordingly configure remote site setting and CSP as well

    • @prathamkunjeer
      @prathamkunjeer 2 місяці тому

      @@TechJourneyWithAnkit I have checked everything. It's as per your Video 🥲. The problem still persists 🫡 . Do you have any other Solutions?

    • @himanshubansal6809
      @himanshubansal6809 Місяць тому

      @@prathamkunjeer any update on your problem?
      I am also facing same issue

    • @user-jb6cn9ej5m
      @user-jb6cn9ej5m Місяць тому

      @@prathamkunjeer same Error i am also getting

  • @HemlataAamod
    @HemlataAamod 3 місяці тому

    When i am searching movie name then any image are not showing

    • @TechJourneyWithAnkit
      @TechJourneyWithAnkit  3 місяці тому

      Check logs and make sure you are using the correct node from json. Note it is case sensitive

  • @lucifer2099
    @lucifer2099 7 місяців тому

    Hi sir can you provide code for the movie search?

  • @sushma6058
    @sushma6058 8 місяців тому

    In video 8:41 i am unable to find that page in my security tab
    Can you please how should I find that csp trusted sites

    • @TechJourneyWithAnkit
      @TechJourneyWithAnkit  8 місяців тому +1

      help.salesforce.com/s/articleView?id=sf.security_trusted_urls_manage.htm&type=5

    • @BalajiBalaji-jv1gt
      @BalajiBalaji-jv1gt 8 місяців тому

      In the spring 24 csp trusted site place came up with -----> Trusted URLs once search with this name Trusted URLs.

  • @Dante-yd9ou
    @Dante-yd9ou 8 місяців тому

    I have already set up the CSP and Remote Site settings but still I am getting this error when I try to fetch the results, would really appreciate your help.
    *because it violates the following Content Security Policy directive: "connect-src 'self'*

    • @Dante-yd9ou
      @Dante-yd9ou 8 місяців тому

      Finally, it works, but I have to deploy the component to the experience site and it worked fine. I don't know why it is not working in the org itself although the settings are unchanged (CSP and Remote Site)

    • @TechJourneyWithAnkit
      @TechJourneyWithAnkit  8 місяців тому

      Check url it should be http or HTTPS at all places

    • @thotaupendra901
      @thotaupendra901 5 місяців тому

      @@Dante-yd9ou even im getting same error, how did you rectify that?

    • @Dante-yd9ou
      @Dante-yd9ou 5 місяців тому

      @@thotaupendra901 I have already mentioned my method in the above reply

  • @AnirudhBargur
    @AnirudhBargur 8 місяців тому

    The Movie Details tab does not show up at all.
    The code executes without any error.
    The component goes invisible in the 'Edit Page' as well.
    what might be the problem?

    • @Dante-yd9ou
      @Dante-yd9ou 8 місяців тому

      I have yet to reached at your step so can't help with your issue right now, just curious after making the first call to the API did you get any error like this - because it violates the following Content Security Policy directive: "connect-src 'self'
      FYI, I have already setup remote site and CSP according to the video tried in edge and chrome also but getting same error. Would really appreciate if you can help on this

    • @TechJourneyWithAnkit
      @TechJourneyWithAnkit  8 місяців тому

      Check in console if you are getting value using Message Channel

    • @TechJourneyWithAnkit
      @TechJourneyWithAnkit  8 місяців тому

      Check the used url and configured URL, both most have http. It should not be http and https at different places

    • @AnirudhBargur
      @AnirudhBargur 7 місяців тому

      Thank you@@TechJourneyWithAnkit

  • @kumareshghosh5593
    @kumareshghosh5593 6 місяців тому

    Just tested the key in postman, it says invalid API key.

  • @sumeetyadav1817
    @sumeetyadav1817 8 місяців тому

    Thanks Ankit, It is really helpful.
    Please keep on creating such videos.

  • @akshaymahajan7160
    @akshaymahajan7160 8 місяців тому

    Hi, I need help actions not available on record list arrow tab

  • @awesomekj5812
    @awesomekj5812 11 місяців тому

    Thank you for sharing your knowledge. I subscribed and looking forward to part 2 of this video.

  • @aswinselvaraj6171
    @aswinselvaraj6171 10 місяців тому

    Trusted sites not showing in my org (in the quick find)

    • @TechJourneyWithAnkit
      @TechJourneyWithAnkit  10 місяців тому +2

      From Setup, in the Quick Find box, enter Trusted URLs, and then select Trusted URLs.

  • @akashdhargave3314
    @akashdhargave3314 10 місяців тому

    not showing in my org CSP Trusted site so what can I do

  • @Islamic_7841
    @Islamic_7841 6 місяців тому

    Good explanation ❤

  • @avinashgosavi844
    @avinashgosavi844 10 місяців тому

    Hello sir I am getting error like - incorrect IMDb ID.

    • @TechJourneyWithAnkit
      @TechJourneyWithAnkit  10 місяців тому

      If you are getting an error on page load, validate Api key is correct and url is also formed correctly