Its quite a nice Tutorial, easy, simple and I Learn a lot, Now time to redoing it without watching the video
@RachidaBNYC4 жыл бұрын
Hi Chris, thanks for your tutorials and articles ! I am a freshly graduated engineer in electrical engineering from France and self-taught full-stack web developer, now focusing on front-end to start a new job as a junior FE developer :-) ! I just wanted to let you know that what you are doing really help me to better understand front-end development and grasp the different concepts ! Thanks again 💪👏
@ChrisBlakely4 жыл бұрын
Awesome, thanks for watching and good luck with your journey into front-end development!
@zerqPROSPIELER Жыл бұрын
Did you made it?
@rashenfernando539 Жыл бұрын
Your explanations are very clear. As a beginner to react I get to learn how the useState and useEffect hooks are used in a real application. Thank you so much for this video. Keep making good stuff. ❤🔥
@ChrisBlakely Жыл бұрын
Glad it was helpful!
@altravels74262 жыл бұрын
great vid, as a beginner in react this answered so many of my questions. keep it up
@leobardopineda1022 жыл бұрын
Your code and explanation is so clear and readable that as a beginner I hope to one day be able to write and explain as well as you! Please, keep it up! :)
@ulviazizli54807 ай бұрын
hi, are you able to code now?
@kacperkurek19474 жыл бұрын
Hello Chris! Thanks for your tutorials, you are doing a great job, keep it up, I know your yt channel will be huge someday.
@ChrisBlakely4 жыл бұрын
Thanks for the kind words and for the support 🙌
@shakirasalazar68723 жыл бұрын
I needed this, thank you for explaining so well!
@ChrisBlakely3 жыл бұрын
Thanks for watching ! 😃
@kirilltrubin48473 жыл бұрын
Thanks for such an IDEAL tutorial. I have a task to do for my job and it's very similar to this one. I learned a lot of new technologies and gained a huge amount of knowledge thanks to you, Chris. I wish you Health and Happiness!
@vamshikrishnareddy762 жыл бұрын
Hi Chris at 7:55 you added 2 bootstrap classes which aligned the movie posters by row className:'container-fluid' className:'row' It didn't work for me movies are still being displayed column wise I checked if bootstrap is working by adding few sample className it worked ...
@lakshna24102 жыл бұрын
Hi Vamshi, Same is the case for me. Did you get the solution ?
@vamshikrishnareddy762 жыл бұрын
@@lakshna2410 instead of using bootstrap i just used css
@vamshikrishnareddy762 жыл бұрын
@@lakshna2410 replicate the css code written after 7:55 for like 30-40 seconds and run the code it should work but it gave me some different styles and scrollbar which was not in the video.
@lakshna24102 жыл бұрын
@@vamshikrishnareddy76 let me also try
@lakshna24102 жыл бұрын
@@vamshikrishnareddy76 I replicated but still no changes 🙄
@dariusandone3636 Жыл бұрын
Hey Chris, when trying to add favorites (especially the part at 33:08) i get this error: "Cannot read properties of undefined (reading 'Poster')", and it points me to MovieList.js line 10 , if i put "movie?.Poster" i can avoid the error but the favorites category has no images, it somehow can't find the path to the images, even though the images appear in the normal movie list, can you help me? P.s this happens when i click the add to favorites overlay.
@ChrisBlakely11 ай бұрын
it could be that your favourites state value is null/empty etc, you can check this by using react dev tools or logging the state value out. If it is you'll have to fix the logic around the areas that set the state (sorry I can't remember the code for this one too well)
@renangaldino6538 Жыл бұрын
Thankyou bro You are the best, please keep up the good job
@MightyKingKala3 жыл бұрын
Thank you bro! I really like your content. Keep it up !
@mahesh2me4 жыл бұрын
Waiting for the next video! please upload one more video like shopping cart kind of application... Thanks!!!
@myytkn852611 ай бұрын
Great Chris!
@dineshshinde4691 Жыл бұрын
Thanks sir, i learnt a lot of things from this project 🙏
@masfooks352 жыл бұрын
This is the best react project and you explained it very well. As a beginner I really enjoyed doing this, you have cleared most of my doubts Thank you so much🙌. Love from India❤ :We can use a if statement in addtofavourites to avoid duplicate entries of movies.
@nwakakizito45724 жыл бұрын
Nice 😎 600th Subscriber ✌️
@sylvesterjengwa79414 жыл бұрын
hi Chris im having a problem with this piece of css code .movie-app > .row { overflow-x: auto; flex-wrap: nowrap; } it's not rendering any idea whats going on
@jld413 жыл бұрын
I had the same problem and for me the answer was this - in MovieList.js, inside the return statement, the outermost JSX elements should be not (because it is a React fragment) - when you look at Chris's MovieList.js in video just after we add this bit of CSS you can see what I mean. I had just missed this bit earlier in the video and set it up wrong, oops
@kristianwilley728910 ай бұрын
Having trouble with the movie posters in a row next to each other. They are too far apart in my project
@bewildfreak67279 ай бұрын
same problem
@saltycraig18659 ай бұрын
@@bewildfreak6727did any of you find a solution?
@dankorse3 жыл бұрын
Love the video! I've learnt a lot! Thank you very much for that. You've got a new subscriber now. Great content! Please, keep it up! :)
@mazwrld3 жыл бұрын
this is so cool!!!! What tips do have you if I wanted to add a description of each movie somewhere on the app?
@rishilahoti Жыл бұрын
bro in the sliding menu of movie there's too much gap in my movie posters I cant sort it out.
@orytzhakian93262 ай бұрын
me too did you managed to fix that since?
@atefbenbelgacem4023 жыл бұрын
why the application is not showing anything !? is it perhaps the javascript files are not loaded correctly !?
@sonalkhapre5716 Жыл бұрын
It's absolutely very interesting tutorial. It would be nice if you tell how to deploy it because the same movie search app is throwing error in my case.
@PavanSibal Жыл бұрын
Great tutorial!! Please do a tutorial which includes routing/ multi page application? Thanks in advance
@khushisuri49542 жыл бұрын
Amazing project thankyou so much for this
@abhaykamath2988 Жыл бұрын
This was awesome 👏🏻 Thank you
@ilhamsamudra12812 жыл бұрын
how can i run on mobile apps?thx
@MelodyMastiIndia2 жыл бұрын
When i run 1st time this app it is not working it gives me error... because when u run 1st time in your browser it has no favourites movie in the local storage...so favourite component gives an error because map can't use on null or undefined...plz fix this
@wintanmi3 жыл бұрын
hy Chris, thanks for this tutorial, very helpful, though the pace was something. great job
@adityagangurde2511 Жыл бұрын
I'm facing an issue while running this on VS Code. Could you please guide me step by step for running this project?
@danilsviridenko65653 жыл бұрын
How to make more restrictions in inuput there? Because if i write something not regarding the name of movie application give me the next error ' Unhandled Rejection (TypeError): props.contries.map is not a function'! Chris can u help me to fix this error?
@biswajitadhikary_08074 ай бұрын
The project is working fine in local host but when i deployed it using vercel or netlify the api is not working , when i am searching any movie it is not showing any movie, can anyone tell me what is the problem?
@r0ck3th763 жыл бұрын
Thanks alot just what i was searching
@ChrisBlakely3 жыл бұрын
You're welcome 😊
@chafikthewarrior3 жыл бұрын
You are the best bro! Please a tutorial about NodeJS Web Scraping would be awesome!
@prajwalkv11753 жыл бұрын
use puppeteer
@chafikthewarrior3 жыл бұрын
@@prajwalkv1175 yeah I started with python much easier but thank you bro!
@carlosl-f24332 жыл бұрын
Im hitting a completely different problem with Bootstrap 5...struggling to get it to work (new to bootstrap)
@muskanmittal91582 жыл бұрын
Sir I'm facing one issue during making that movie app.....when i put all the images in a single row then there will be a gap between two images...So how can i remove that gap
@muskanmittal91582 жыл бұрын
sir plzz help me out on this issue.......
@aravindlingala64742 жыл бұрын
.row * { width: auto; }
@veronikaturner34068 ай бұрын
@@aravindlingala6474 I know it's been a year since you wrote this but THANK YOU
@orytzhakian93262 ай бұрын
hey i love this video. just one question: right after you started displaying the movie posters they were side by side with no margins. when i wrote the same code as you are theey were really far one from each other. is there a solution for that? thanks
@samfallowfield30002 жыл бұрын
im about 15 minute through, following exactly as you have done but for some reason i'm getting this error, has anyone come up against this, Warning: Each child in a list should have a unique "key" prop. it then says check the render method of 'MovieList'
@masfooks352 жыл бұрын
add key={index} in main div of return method to prevent warning
@attinderpalsingh57452 жыл бұрын
but we can add same into favourites again and again, it must be added only once. What can I do to not add to favourites if it's already added. Thank you
@TheLoOPerMAN3 ай бұрын
Hi Chris, I am a complete begginer and I know you said you don't remember this project so good, but I would love for some guidance. When adding the 'container-fluid movie-app' The movies get sorted in a row- but there is a huge gap between them. Could it be due to bootstrap version? Or something else? Thanks!
@ChrisBlakely3 ай бұрын
Hey, you’re right this is an old ass video and it’s probably a bit out of date. The bootstrap docs might have some examples on how to arrange things. Alternatively, if you ask ChatGPT it might be able to tell you how it’s done using latest bootstrap. Good luck !
@Cocolo_TV Жыл бұрын
Would this also work if I wanted to create a film noir movie list app?
@dktran77993 жыл бұрын
Hi Chris, what IDE you're using, Could you please share + some useful plugins
@LINQI3 жыл бұрын
Vs code
@luisdomingues34694 жыл бұрын
Great video, just one suggestion, maybe it's better you slow down in some parts. But it's amazing what you have to share. Thank you :)
@ChrisBlakely4 жыл бұрын
Thanks for watching and for the feedback! very much appreciated :)
@tamjidhossain642 жыл бұрын
Whenever I install bootstrap and add in the bootstrap class names, it doesn't work, and the posters still display vertically rather than scrolling horizontally. Does anyone know why?
@tomasburian65502 жыл бұрын
Check the boostrap grid documentation. It has been changed since then.
@je25872 жыл бұрын
Code for it to work also adding "col": function MovieList(props) { return ( {props.movies.map((movie, index) => { return ( ) })} ) }
@shauryathakur8802 Жыл бұрын
I am not able to add a scroll effect. I have written the same code but it's still not working. Some are saying it is because of the version of the bootstrap. Can Someone please help me with this.
@sergiob36984 жыл бұрын
Nice tutorial. Very useful. Thank you
@ChrisBlakely4 жыл бұрын
Thank you for watching as always Sergio!
@ismoil57504 жыл бұрын
good content for beginners I liked it bro!!
@ChrisBlakely4 жыл бұрын
Thanks for watching ! I appreciate the comment 😄
@dsb54172 жыл бұрын
what do you do if you want to display the favorite movies on a separate page
@Street_Food_Adventuress3 жыл бұрын
Hi Chris, why you did not use the bootstrap d-flex flex-nowrap inside the element tag, instead of using CSS? Another question, why you did not use display:flex in css before using flex-wrap:nowrap? Thanks
@ChrisBlakely3 жыл бұрын
1) Didn't think of it at the time :) 2) Didn't need it - probably because the element was already a flexbox container. Can't exactly remember its been a while since I coded this lol
@deepanshuujjainia98052 жыл бұрын
PLEASE HELP !!!!!!! I am getting this warning with compiling "autoprefixer: Replace color-adjust to print-color-adjust. The color-adjust shorthand is currently deprecated. webpack compiled with 1 warning"
@WillSmith-qt7me2 жыл бұрын
Great tut, thanks!
@Ashwini2434 жыл бұрын
how to handle null for MoviesList.js ERROR: TypeError: Cannot read property 'map' of null
@ChrisBlakely4 жыл бұрын
see fix : github.com/chrisblakely01/react-movie-app/commit/14874dc2459caf7ead403e0048e8e2cd61d9d4f5
@Ashwini2434 жыл бұрын
@@ChrisBlakely thanks Chris for the solution and the app..It worked!
@MonikaSingh-ee6yv3 жыл бұрын
Sir , solutions didn't work
@danilsviridenko65653 жыл бұрын
Hi!I enjoyed your video 'React movie app tutorial' but can u make a video regarding how to make the same thing but without API please : )
@ChrisBlakely3 жыл бұрын
Thanks for the idea!
@whicencer88193 жыл бұрын
but.. what if I click on movie twice? It will be add twice to the favourites??
@sohamsarde2 жыл бұрын
after using your github code. the project is not working. please help
@woofcode33833 жыл бұрын
this is great! thanks so much
@sixteenthnotephotography14542 жыл бұрын
Any tips? I’m a newbie learning
@sportshome65042 жыл бұрын
Please is there a latest project you are working on?
@saurabhrana80403 жыл бұрын
Hey Chris ! My all movie Poster is not showing . Can anyone tell me how can i fix it?
@williamgehrke80252 жыл бұрын
Hey Chris, thanks for the great tutorial! Is there a way to display only one movie? Instead of all the movies that the api brings back?
@animeshjain6343 жыл бұрын
i installed bootstrap but there css classes are not working, what should i do??
@ChrisBlakely3 жыл бұрын
did you import the bootstrap stylesheet into your app? Its not enough to just install bootstrap
@animeshjain6343 жыл бұрын
@@ChrisBlakely Yes I did but still it didn't work.
@digigoliath3 жыл бұрын
Awesome!!! TQVM!!
@ChrisBlakely3 жыл бұрын
Thanks for watching!
@michealboluwatife71953 жыл бұрын
Thank you Chris the tutorial is overwhelming
@katherinescott33602 жыл бұрын
I would love some help. I did this tutorial and for some reason reason all my movies are really far apart... I have want through my CSS and don't understand what i did wrong...
@mithiljogi05 Жыл бұрын
Hello @Katherine Scott you will be having the latest version of bootstrap (may be >5), so just follow the command "npm i bootstrap@4.5.3" and it will work well. I was facing the same issue and it worked for me
@rockrock25874 жыл бұрын
Please make a tutorial about using NODE JS with React (Not class comp)
@ChrisBlakely4 жыл бұрын
Yep its on the list - keep an eye on my channel :)
@rockrock25874 жыл бұрын
@@ChrisBlakely Of course! I will 🙂
@jumbo9996143 жыл бұрын
Does it play the movie if you click on the poster?
@GhostRiderX72 жыл бұрын
Can the movies be played?
@dewanshanand1395 Жыл бұрын
how to import bootstrap? Mine is not working
@mounisri97973 жыл бұрын
Awesome sir
@emanueltejadacoste22503 жыл бұрын
Can you please let me know how the hell when you put overflow auto the scroll bars doesnt show up ? but you can still scroll to the side PLEAAASE LET ME KNOW
@ChrisBlakely3 жыл бұрын
if you look at the finished source code on GitHub you can see how its done. I also show it in the video
@emanueltejadacoste22503 жыл бұрын
@@ChrisBlakely thanks for your answer but on full screen (desktop) it shows the ugly chrome scroll bar... but when choose like mobile device on chrome it shows nicely like yours
@ChrisBlakely3 жыл бұрын
Maybe it’s the browser/OS dude, they all have they’re own way of handling scrolling
@trantin25702 жыл бұрын
Very good release, crack work, without problems
@axeldrax0073 жыл бұрын
Great tuto. tanks Chirs for share
@sonavijapure3 жыл бұрын
nonIterableSpread.js:2 Uncaught TypeError: Invalid attempt to spread non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method. i am getting this error when adding to favorites ..code is exact
@ChrisBlakely3 жыл бұрын
Looks like you're trying to spread something thats not an object/array. Can't help anymore unfortunately without seeing the code!
@rosarioscarlata41783 жыл бұрын
do you have overflow: hidden? I can't get it out and scrolling with the mouse
@ChrisBlakely3 жыл бұрын
I can't remember the CSS off hand, but I think you're right yes. Shouldn't be too much work to add a scroll bar to the row
@georgesword2012 Жыл бұрын
It would be nice to add error handling as well and also a function to remove favorite movie from localstorage to get updated list fav movies after refreshing the page, for a better UX Thanks for a video!
@J-mk1cg Жыл бұрын
he did include this it is at the end of the video 41:50
@seemaprasad29153 жыл бұрын
that really helpfull please make more video
@feriduncanselen90472 жыл бұрын
Can anyone send me the endpoint link ? the email thing does not work
@kauanmocelin4 жыл бұрын
Nice tutorial! Why don't use one movie List and check by attribute if this movie is favourite? I want to know because you used two lists separately.
@ChrisBlakely4 жыл бұрын
When you do a search the list gets updated and you would lose the attribute that was added. You would have to merge the next search list with your current search list, filtering out any duplicates. And it’s not performant In a ‘real app’ you would Save the favourite IDS on the server , the server would then go and get all the movies and return that list in an api But that’s too much for this simple react tutorial 😀
@SaiKumar-ru8wb2 жыл бұрын
When I host the website on netlify and trying to search the movie the error displaying as "failed to fetch " any solutions
@Zenx_shoaib2 жыл бұрын
I am facing same problem after deploying on netlify when I search the movie I get error failed to fetch error 401
@SaiKumar-ru8wb2 жыл бұрын
@@Zenx_shoaib while pasting the api url in the code make sure it is 'https' not just 'http' it will solve the issue
@tonybengue4 жыл бұрын
There is an error at the end if we have no favorites added to the localstorage when it is passed to the MovieList component
@Ashwini2434 жыл бұрын
I am getting the same error. MovieList gives the null ref error when movie list is null
@ChrisBlakely4 жыл бұрын
Ah! yeah, probs just want to check if there are any movies stored in localstorage before setting it into state. Check this fix: github.com/chrisblakely01/react-movie-app/commit/14874dc2459caf7ead403e0048e8e2cd61d9d4f5
@tonybengue4 жыл бұрын
@@ChrisBlakely I had understand the problem but I didn't know how to resolve it without you. Thanks
@tonybengue4 жыл бұрын
It is only a simple if 😪
@lakshna24102 жыл бұрын
My bootstrap is not working. Could you please help ?
@je25872 жыл бұрын
Code for it to work also adding "col": function MovieList(props) { return ( {props.movies.map((movie, index) => { return ( ) })} ) }
@codeaway97423 жыл бұрын
I get like this when i click the API link:{"Response":"False","Error":"Invalid API key!"} What to do?
@ChrisBlakely3 жыл бұрын
Have you verified your email? If so you might have to try getting another key
@codeaway97423 жыл бұрын
@@ChrisBlakely Okay!! Thank you
@azuboof Жыл бұрын
Wait... Can i a guide on the postman tho
@carljay2177 Жыл бұрын
can i watch movie with that?
@rosarioscarlata41783 жыл бұрын
Amazing, thanks
@ChrisBlakely3 жыл бұрын
Glad you liked it!
@piyushsingh63183 жыл бұрын
Why you used api from the site? Wasn't there any way of doing same thing ?
@ChrisBlakely3 жыл бұрын
sure: - Create your own server - Create a database (w/ relational tables) - Fill the database with 1000's of movie record details - movie details, images, meta data etc - Expose an API (including searching) But I wasn't about to do that for this tutorial :)
@piyushsingh63183 жыл бұрын
@@ChrisBlakely ok. Thanks for replying man. Great tutorial btw.🤗👏🤝
@ChrisBlakely3 жыл бұрын
No problem ! Thanks for watching and I’m glad it was helpful !
@Street_Food_Adventuress3 жыл бұрын
Hi Chris, when you added Toy Story in favourites, and refresh the page, the movies disappear which is fine. But if you research Toy story (which is now in favourite), will toy story button be diabled because we already clicked on it or it is a brand new Toy story to add ?
@ChrisBlakely3 жыл бұрын
Hey Aata, With the current setup, we are just taking a "copy" of the movie object that comes back from the search response and saving it ourselves. In a perfect world, the API would let us have an "isFavourited" property or something in the response for a given movie, which would help us identify if the movie is a favourite or not. Since we do not have control over the API, your only option is: - When rendering the list of movies that comes back from the search, check if the movie exists in the favourites - is YES, then disable the button, don't render it etc - if NO, go ahead and render the movie as usual Hope this helps!
@Street_Food_Adventuress3 жыл бұрын
@@ChrisBlakely Okay great thank you.
@santhoshsudhaan79573 жыл бұрын
@@ChrisBlakely How to check whether a movie is already present in the favourites or not...please help me with code snippet or exact idea!
@tomasburian65502 жыл бұрын
@@ChrisBlakely This is exactly the problem I'm facing right now. Instead of favorites, I'm actually giving each movie a rating, so that means that when dowloading the results, I need to check if the movie's been rated (based on the movie's ID and rating value that I stored in an array) and what that rating was, so I can render it along with the results. Right?
@abhinagarkoti86813 жыл бұрын
Is this responsive for mobile??
@siddharthjames70962 жыл бұрын
hi i am facing problem is setting up react on my laptop using node can anyone give me an alternate way of doing it?
@paraschauhan99782 жыл бұрын
what error or problem you are facing?
@siddharthjames70962 жыл бұрын
@@paraschauhan9978 hi i fixed the problem now by updating Node thanks for the replay btw
@juanmaluzzi54233 жыл бұрын
hi chris, i have a problem, when i tried to start the proyect, i have an error, i run the npm start command for that npm ERR! code ENOENT npm ERR! syscall open npm ERR! path C:\Users\Juanma\Desktop\AppMoviless\package.json npm ERR! errno -4058 npm ERR! enoent ENOENT: no such file or directory, open 'C:\Users\Juanma\Desktop\AppMoviless\package.json' npm ERR! enoent This is related to npm not being able to find a file. npm ERR! enoent u can help me ? thank you!!
@ChrisBlakely3 жыл бұрын
you mightt need to do npm install first. And make sure you are in the root directory of the project :)
@garysanderson32503 жыл бұрын
How to prevent from adding same movie 2 times to favourites?
@ChrisBlakely3 жыл бұрын
Hey Gary, Would have to look at the code again to familiarise myself but the basic idea would be: in the addFavouriteMovie(or whatever I've called it) function, you want to check the movie you're about to add doesn't exist in the favourite list before you run the code to add it. If I remember correctly each movie has an imdbId (or some identifier), so you could use this to check if a movie exists in the favourites array, using the filter() array method or something similar. If it doesn't exist, add it by running the existing code. Else, do nothing Hopefully this helps!
@prithabanerjee47053 жыл бұрын
superb !
@ChrisBlakely3 жыл бұрын
Thank you so much for watching 🙌
@prithabanerjee47053 жыл бұрын
@@ChrisBlakely next time expecting something with react routes
@kfc79684 жыл бұрын
Thanks for the great content! I
@ChrisBlakely4 жыл бұрын
Thanks for watching!
@kfc79684 жыл бұрын
@@ChrisBlakely Sure thing. I emailed you hello@jschris.com about an issue I am having 20 minutes into the video with updating state onchange. If you have a moment, can you look at my screen shots?
@AyollarKiyimlari Жыл бұрын
respect 💣💣💣💣💣💣💣💣
@qcmira20244 жыл бұрын
Great video ! Thanks !
@ezequielbento98662 жыл бұрын
well yeah if you wanna do it primarily
@ImamNurArifinHA3 жыл бұрын
very nice
@ishwarshelke1283 жыл бұрын
thank u so much
@sohamsarde2 жыл бұрын
bhai project barabar chal rha hai kya
@mintumanoj9132 жыл бұрын
sick of it!! !!!! anybody got any tips to help?? close on throwing my laptop out the window! got the Full package on soft feel its a waste of