How to Create a Flask + React Project | Python Backend + React Frontend

  Рет қаралды 418,261

Arpan Neupane

Arpan Neupane

2 жыл бұрын

Hey guys, welcome back. In this video, I will show you guys how to set up a project with a Flask backend and a React frontend. We will set up a backend API with Python that returns an array of members and in the frontend, we will fetch that backend and display the same members onto the frontend.
If you don't know what Flask is, Flask is a Python-based web framework that is used to create web applications. It is a microframework, which means that it does not provide many of the features that larger frameworks do. Flask is designed to be extended and customized, and it can be used for web development in both production and development environments.
If you don't know what React is, React is a JavaScript library for building user interfaces. It is maintained by Facebook and Instagram. React's declarative, efficient, and flexible nature make it an ideal choice for building user interfaces.
My Website: arpanneupane.com
My GitHub: github.com/arpanneupane19
Official Flask Documentation: flask.palletsprojects.com/en/...
Official React Documentation: reactjs.org/
My Programming Gear :
Keyboard: amzn.to/42vXkxh
Laptop: amzn.to/3CkAP3W
Laptop Stand: amzn.to/3X116Oi
Desk: amzn.to/43wmIEt
Monitor: amzn.to/42BAaFH
Monitor Arm: amzn.to/3NR0APS
Chair: amzn.to/42vvKAn
Desk Mat/Mousepad: amzn.to/43AhKqj
Microphone: amzn.to/45RuQ43
Headphones: amzn.to/445sf4R
#Coding // #Python // #React // #LearnToCode

Пікірлер: 304
@nathanseals4819
@nathanseals4819 2 жыл бұрын
Excellent content! As someone that loves using React but prefers Python for backend, this video is amazing. I did run into a CORS error when connecting the front and back-end. The fix was as simple as installing and importing Flask-CORS to my server.py. Thanks again!
@ArpanNeupaneProductions
@ArpanNeupaneProductions 2 жыл бұрын
Of course! Thank you so much for watching!
@renatox5288
@renatox5288 10 ай бұрын
mee too, i dont know why. but this can affect security no?
@xXHelsingGamingXx
@xXHelsingGamingXx 2 жыл бұрын
You are freaking awesome building and explaining react + flask as minimal as it gets!!!
@ArpanNeupaneProductions
@ArpanNeupaneProductions 2 жыл бұрын
Thank you so much!
@AM-nv4ol
@AM-nv4ol Жыл бұрын
one of the best tutorials i've ever watched in general. everything is broken down so well and your delivery is perfectly concise. well done.
@ArpanNeupaneProductions
@ArpanNeupaneProductions Жыл бұрын
Thank you!!
@cometolearn8598
@cometolearn8598 11 ай бұрын
@@ArpanNeupaneProductions Bro here You said arpan@Arpan-MBP React-Flask-Video % npx create react ct-app client. What do we replace 'arpan@Arpan-MBP' I replaced it with my user data like this 'MyUSER@MyUSERworks doesn't work I even put the '-MBP' in front of the second MyUser it still doesn't work. Can you please help me with this?
@ArpanNeupaneProductions
@ArpanNeupaneProductions 11 ай бұрын
@@cometolearn8598 you don’t have to do that. That’s just my computer stating that I am signed in as arpan on Arpan-MBP which is my laptop.
@cometolearn8598
@cometolearn8598 11 ай бұрын
@@ArpanNeupaneProductions in windows when I do: 'npx create ct-app client' it gives the error: npm ERR! could not determine executable to run npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\MyUser\AppData\Local pm-cache\_logs\2023-06-11T03_39_26_191Z-debug-0.log
@ArpanNeupaneProductions
@ArpanNeupaneProductions 11 ай бұрын
@@cometolearn8598 That is because create-react-app has been deprecated.
@mohajeramir
@mohajeramir 9 ай бұрын
Much appreciated. I have been thinking about this for a while. Really nice to see someone explaining it crisp.
@ashdotpy
@ashdotpy 5 ай бұрын
ive watched 3 or 4 other videos trying to get this to work and finally got it thanks to yours. well explained and walked through! thanks!!
@ArpanNeupaneProductions
@ArpanNeupaneProductions 5 ай бұрын
Glad it helped
@mitchell-conrad
@mitchell-conrad Жыл бұрын
Great video, this really helped me out. Python is new for me, and I wanted to jump into it by making a web app. This gave me a great start, it was so easy to follow
@amitrangwal7177
@amitrangwal7177 Жыл бұрын
Finally one Tutorial That connects the flask and react and it happens on my system thanks for the tutorial.
@matthew_kompel
@matthew_kompel 2 жыл бұрын
awesome video man! I'm new to this stuff and your content really helps me. I wish I new about your videos before I started a project as I would have progressed a lot more. Either way, I really appreciate the content you make. recently one of my best friends from high school passed away and I wanted to make something in memory of him and I thought that making a website would be the best for him. Your videos have really allowed me to accomplish my goal. He was like a brother to me and because of you I can become closer to him. Thank you!!!!!
@ArpanNeupaneProductions
@ArpanNeupaneProductions 2 жыл бұрын
Thank you so much for your support and taking the time to write that. I really appreciate it! Also, I'm very sorry for your loss.
@juliabuchko4204
@juliabuchko4204 2 жыл бұрын
so good, the best tutorial I managed to find for my project
@ArpanNeupaneProductions
@ArpanNeupaneProductions 2 жыл бұрын
Thanks for the great feedback!
@DRDR3ADSA
@DRDR3ADSA 5 ай бұрын
Man, so simple and easy. This is bang on! Love it
@shreehari2589
@shreehari2589 6 ай бұрын
This is the type of content no one makes and literally very important, keep up the good work, can you make a video on how to integrate flask with react native
@vatssv3006
@vatssv3006 2 жыл бұрын
Simple, to the point high quality content. Loved it!
@ArpanNeupaneProductions
@ArpanNeupaneProductions 2 жыл бұрын
Thank you!
@lakshaychauhan9190
@lakshaychauhan9190 2 жыл бұрын
Simple, good explanation! Thanks man really helpful :)
@ArpanNeupaneProductions
@ArpanNeupaneProductions 2 жыл бұрын
Appreciate it!
@shamsshaikh2887
@shamsshaikh2887 Жыл бұрын
thank you so much for such a precise video, that is efficient and succinct
@bekirkagankaraahmetoglu4343
@bekirkagankaraahmetoglu4343 Жыл бұрын
This is very useful in every way. Thanks for the video!
@mookjais
@mookjais 5 ай бұрын
Not too much, not too little. Fantastic tutorial, thanks!!
@jacobgoldenart
@jacobgoldenart Жыл бұрын
Thanks. Super helpful and clear!
@user-fj5eh5pz4o
@user-fj5eh5pz4o 11 ай бұрын
This is insane...! Thank you so much from Korea.
@Ananiascn
@Ananiascn Жыл бұрын
Thanks for the video! Your content really helped me.
@alireza2295
@alireza2295 2 ай бұрын
Short and sweet. thanks
@Juswahh
@Juswahh Жыл бұрын
huh python is pretty sweet I shouldve been using this for my backend a long time ago lol. awesome tutorial man simple and very quick
@ArpanNeupaneProductions
@ArpanNeupaneProductions Жыл бұрын
Thank you!
@XxxRay3
@XxxRay3 9 ай бұрын
Now this tutorial is one of my core memory All concepts got ingrained ♥️
@sthefanocarvalho2823
@sthefanocarvalho2823 Жыл бұрын
That was great! Really helped me. You've just got a sub! Keep it up :)
@ArpanNeupaneProductions
@ArpanNeupaneProductions Жыл бұрын
I’m glad and thank you!
@felipedepra2745
@felipedepra2745 19 күн бұрын
Amazing video, many thanks!!! Keep doing this great job.
@wojciechzarzecki1286
@wojciechzarzecki1286 2 жыл бұрын
great option to just understand basic seting up the projetc! thanks!
@ArpanNeupaneProductions
@ArpanNeupaneProductions 2 жыл бұрын
You’re welcome!
@santoshernandez5677
@santoshernandez5677 2 жыл бұрын
Excellent job. This video was very helpful. Thank you.
@ArpanNeupaneProductions
@ArpanNeupaneProductions 2 жыл бұрын
Thanks for the positive feedback!
@gemymohamed9334
@gemymohamed9334 5 ай бұрын
Short & concise
@barblehurgy
@barblehurgy 10 ай бұрын
Perfect explanations here.
@PaulThiongo-rv7so
@PaulThiongo-rv7so 23 күн бұрын
simple and clear .Thanks
@FadeStrategy
@FadeStrategy Жыл бұрын
This is perfect!
@maikelberbi5210
@maikelberbi5210 Жыл бұрын
simply perfect.
@JorgeBlancoPhotography
@JorgeBlancoPhotography 2 жыл бұрын
This was an awesome tutorial thank you very much!
@ArpanNeupaneProductions
@ArpanNeupaneProductions 2 жыл бұрын
Thanks!
@JorgeBlancoPhotography
@JorgeBlancoPhotography 2 жыл бұрын
@@ArpanNeupaneProductions would be cool to see how to deploy a project like this, I like the python react combo, seems to be a clean and clear environment.
@ArpanNeupaneProductions
@ArpanNeupaneProductions 2 жыл бұрын
@@JorgeBlancoPhotography I see, I haven't done a video on deployment because I've been busy with some personal projects. However, I would recommend that you check this video out to learn how to deploy a Flask + React App to Heroku: kzbin.info/www/bejne/nmqZfINpf7KLbbM
@liamlindy
@liamlindy Жыл бұрын
What an incredible video!!!
@anonymousk5899
@anonymousk5899 2 жыл бұрын
Love this videos ❤💯
@lachlancroll2386
@lachlancroll2386 Жыл бұрын
thanks man, huge help.
@wohu1
@wohu1 Жыл бұрын
Hi thanks for the video. I wonder how you install the autocomplete? I tried snippet installed but it seems not working thank you.
@MauricioMartinez0707
@MauricioMartinez0707 4 ай бұрын
perfect vid, thanks
@heitormbonfim
@heitormbonfim Жыл бұрын
In only 10 minutes, impressive!
@ArpanNeupaneProductions
@ArpanNeupaneProductions Жыл бұрын
Thanks!
@Covalent5
@Covalent5 Жыл бұрын
Excellent tutorial. One question: If I wanna deploy it, what do I put in the proxy? My APIs public IP?
@dinulkithsara2580
@dinulkithsara2580 9 ай бұрын
thank you so much bro
@judevector
@judevector 10 ай бұрын
Wow wow this is awesome
@CodeMastersChannel
@CodeMastersChannel 12 күн бұрын
thanks for creating this video
@andrewzolensky9807
@andrewzolensky9807 10 ай бұрын
This was a great video! Would you be willing to do one on how to host it using a cloud provider like AWS or GCP?
@sahilsharma2867
@sahilsharma2867 4 ай бұрын
Straight to the point. Noice.
@srb.11
@srb.11 7 ай бұрын
Here proxy has been set for localhost. But if I want to deploy it, what should I replace it with?
@koriv6329
@koriv6329 2 жыл бұрын
Awesome! Thanks!
@ArpanNeupaneProductions
@ArpanNeupaneProductions 2 жыл бұрын
You're welcome! Thanks for watching.
@chakibbounoun2349
@chakibbounoun2349 11 ай бұрын
To the point, big thanks
@arxrushgamestv5773
@arxrushgamestv5773 2 жыл бұрын
You're really fast in typing...I'm impressed..Anyway, great content!
@ArpanNeupaneProductions
@ArpanNeupaneProductions 2 жыл бұрын
Thank you!
@user-gi9ee7kp6j
@user-gi9ee7kp6j 5 ай бұрын
Very informative and easy to understand. Thanks
@ArpanNeupaneProductions
@ArpanNeupaneProductions 5 ай бұрын
Glad it was helpful!
@poojittummalapalli7634
@poojittummalapalli7634 10 ай бұрын
thanks arpan!
@wesleyjcr
@wesleyjcr 2 жыл бұрын
Thank you for this video
@ArpanNeupaneProductions
@ArpanNeupaneProductions 2 жыл бұрын
You’re welcome!
@ljrahn5619
@ljrahn5619 2 жыл бұрын
Keep creating awesome videos like this! You'll reach a lot of viewership in no time. Thanks very much!
@ArpanNeupaneProductions
@ArpanNeupaneProductions 2 жыл бұрын
Thank you for the support!
@lilburtonboy7489
@lilburtonboy7489 Жыл бұрын
Do routes need to be registered or something? I have the exact same thing you have here at the4 beginning, but I get a 404 when I go to /members.
@agustintisera6992
@agustintisera6992 Жыл бұрын
Hey Arpan! I'm looking for the next step on this tutorial, basically trying to define a sqlite3 db to have a simple CRUD for users. I'd appreciate that knowledge, not necessary has to be recorded with a video. Any github/reference is welcome!
@OshadhaWijerathne2000
@OshadhaWijerathne2000 7 ай бұрын
🔥
@millpreetk1406
@millpreetk1406 18 күн бұрын
what's the plugin you're using that shows you the size of the react import or whatever? as well as the one that allowed the quick sample upload? I tried and those features didn't work for me. But tutorial is overall good and concise, love it
@noir371
@noir371 Жыл бұрын
Your keyboard sounds amazing
@luisgranados2006
@luisgranados2006 2 жыл бұрын
Hi Arpan, thank so much for your tutorial, it will help me a lot in my projects :D. But, I have a question, what should we do if we want to deploy the project? Will they have to be separated? for example, flask in "pyhtonAnyWhere" and react in "Versel"? Or, can we keep them together? for example, together in "Vercel"?
@ArpanNeupaneProductions
@ArpanNeupaneProductions 2 жыл бұрын
Thank you for liking the video! I haven’t done a video on deployment because I’ve been really busy with school, but if you’d like to deploy a project like this, I’d recommend checking Miguel Grinberg’s video on it: kzbin.info/www/bejne/nmqZfINpf7KLbbM
@luisgranados2006
@luisgranados2006 2 жыл бұрын
@@ArpanNeupaneProductions :o Dont worry. Thank so much, I will check that tutorial
@ArpanNeupaneProductions
@ArpanNeupaneProductions 2 жыл бұрын
@@luisgranados2006 👍
@animeshmishra4282
@animeshmishra4282 2 жыл бұрын
I am having the same doubt Like if i deploy an api and app at two different domains or something else
@anirudhsuri6034
@anirudhsuri6034 Жыл бұрын
Hello. But how will be get the url parameters from backend... e.g. in flask route and how can be reflet that in axios...?? thanks.
@milesthomas3317
@milesthomas3317 2 жыл бұрын
Thank you so much :)
@ArpanNeupaneProductions
@ArpanNeupaneProductions 2 жыл бұрын
You’re welcome :)
@millerbento9785
@millerbento9785 Жыл бұрын
Do you have to do something specific to deploy it? I mean, have the Python back end and Flask front end running in the server.
@emars0
@emars0 11 ай бұрын
If i wanted to return an img url, how would i do that? Im new to python and I cant find any tutorials on how to do this. Btw, amazing video, explains things perfectly, had problems with CORS but fixed that easily.
@mohammedaltaf4316
@mohammedaltaf4316 Жыл бұрын
Simple incredible
@TitaniumTronic
@TitaniumTronic 2 жыл бұрын
Hello, this is the most useful video I found, but please make a video on how to setup a group project, like one person does backend and one does frontend
@ArpanNeupaneProductions
@ArpanNeupaneProductions 2 жыл бұрын
Thanks and stay tuned!
@sanukjoseph
@sanukjoseph 2 жыл бұрын
Good Explanation.
@ArpanNeupaneProductions
@ArpanNeupaneProductions 2 жыл бұрын
Thanks!
@millpreetk1406
@millpreetk1406 18 күн бұрын
venv is just for consistency of environment?
@programmingholic
@programmingholic 10 ай бұрын
You have to make playlist for all , so we can book mark it, thanks for sharing. i have seen you don't have any playlist
@roboticproccessautomationr9200
@roboticproccessautomationr9200 2 жыл бұрын
Thank you very much for your video ... But I have a question ... how do you deploy the project? above all I would like to know how to do in windows server for example .... greetings.
@ArpanNeupaneProductions
@ArpanNeupaneProductions 2 жыл бұрын
You're welcome! I haven't deployed to a Windows server before so I'm not sure. Maybe try looking up documentation for it or finding some videos that may provide you with information?
@vulcanhd1649
@vulcanhd1649 Жыл бұрын
How would you "build" the app and launch it on the web, as it is right now for example, for example to Heroku
@camilovillalobos2711
@camilovillalobos2711 2 жыл бұрын
excelent!
@ArpanNeupaneProductions
@ArpanNeupaneProductions 2 жыл бұрын
Thank you!
@5enox
@5enox 2 ай бұрын
Really amazing and easy to follow, just one question, If a user uses the network developer tool, The backend API can be exploited and scraped, How can We hide it, or avoid this situation
@BoltAtlas
@BoltAtlas 8 ай бұрын
Do we *Have* to create a virtual environment in order to make a connection between the front and the back end? That's the only step I omitted, and I'm getting this error in the terminal when I run the React app : Proxy Error: Could not proxy request /members from localhost:3000 to htttp://localhost:5000/ and on the browser itself, it gives the following error: JSON.parse: unexpected character at line 1 column 1 of the JSON data any help?
@levivolkart126
@levivolkart126 2 ай бұрын
That video helped me solve the issue: kzbin.info/www/bejne/hGXchpyHnrmprbc
@DevlogBill
@DevlogBill Жыл бұрын
Pretty good video, I haven't reached that level yet. I know the fundamentals with JavaScript now I started to learn again Python. Python I learned some of the fundamentals, was my first language which introduced me into programming. Anyways, is Flask easier to learn versus Django? Not sure but I think I may want to learn how to become full stack with JavaScript and Python. But I think you see Django more in the market for jobs over Flask.
@ArpanNeupaneProductions
@ArpanNeupaneProductions Жыл бұрын
Flask is easier to learn than Django
@DevlogBill
@DevlogBill Жыл бұрын
@@ArpanNeupaneProductions ok thank you
@ArpanNeupaneProductions
@ArpanNeupaneProductions Жыл бұрын
@@DevlogBill anytime :)
@direshanphillips1812
@direshanphillips1812 2 жыл бұрын
Hi Arpan, thank you for the great tutorial. I am using a Mac just to familiarise myself with this OS. Two questions please. 1) I can only find debug console. I can't seem to see the Console where the object can be printed. Secondly I am not entirely sure why the app only shows Loading.... I don't understand why it is undefined. The browser returns results but something is missing. import React, {useState, useEffect } from 'react' function App() { const [data, setData] = useState([{}]) useEffect(() => { fetch("/members").then( res => res.json() ).then( data => { setData(data) console.log(data) } ) }, []) return ( {(typeof data.members === 'undefined') ? ( Loading... ) : ( data.members.map((member, i) => ( {member} )) )} ) } export default App
@ArpanNeupaneProductions
@ArpanNeupaneProductions 2 жыл бұрын
Can you share the code in your Python file?
@jikarnajmal-din6221
@jikarnajmal-din6221 Жыл бұрын
The front end port might be taken by another task. free up the port and it will work.
@tiger7858
@tiger7858 Жыл бұрын
Perfect video 🤑🤑
@Khhghhfd5755
@Khhghhfd5755 2 жыл бұрын
So great logic to get the API, but how to use it to make a application? Thank you. Can I should normal react application to use this API? Thank you. It's like, if I'm gonna make some input, how can I make sure the input data that will use the API to go to be in the database? Thank you so much.
@ArpanNeupaneProductions
@ArpanNeupaneProductions 2 жыл бұрын
Yes! This API can be used in a real application. If you want to receive input to a database, you can make forms in React to type input into. Then, you can store the value of each input form in a variable and send that variable through a post request to the backend using Axios. In the backend, you’ll just have to set up routes for that post request and you can access the data that was sent from the frontend and use it however you’d like.
@RocknRollDina
@RocknRollDina Жыл бұрын
amaing!
@vinit.khandelwal
@vinit.khandelwal 2 жыл бұрын
Awesome
@ArpanNeupaneProductions
@ArpanNeupaneProductions 2 жыл бұрын
Thank you!
@xXHelsingGamingXx
@xXHelsingGamingXx 2 жыл бұрын
Hi, Could you mention the theme which you are using in VS Code, cause its awesome!
@ArpanNeupaneProductions
@ArpanNeupaneProductions 2 жыл бұрын
I was using the Panda Theme in this video
@Grinwa
@Grinwa Жыл бұрын
Please am completely new to js i want to make gui for my API it is basically a webview that will load a website with custom cookie's, i have no idea how to do it with js, is it even possible. Do u recommend any documentation
@kikevanegazz325
@kikevanegazz325 Жыл бұрын
Pretty cool!
@rhz8446
@rhz8446 2 ай бұрын
thankyou sir
@tiyashaghosal183
@tiyashaghosal183 Жыл бұрын
Hey, I needed a little help. Even though the members array is showing in my console, but in the web page it is still showing "loading..." Can anyone help me with this? Thanks a lot!
@manpt123
@manpt123 11 ай бұрын
This is my first time as a backend dev understand how frontend gonna use my data in reactjs ... thank you
@antoniomatos5540
@antoniomatos5540 2 жыл бұрын
The video was awesome! Could you tell me how react knew that the port of Flask was 5000?
@ArpanNeupaneProductions
@ArpanNeupaneProductions 2 жыл бұрын
Thanks! React knows that the port was 5000 because of the proxy that was set in the package.json file in the frontend.
@antoniomatos5540
@antoniomatos5540 2 жыл бұрын
@@ArpanNeupaneProductions Thanks for the fast response! Have a nice day
@ArpanNeupaneProductions
@ArpanNeupaneProductions 2 жыл бұрын
@@antoniomatos5540 You too!
@purushothamanpalanichamy6542
@purushothamanpalanichamy6542 11 ай бұрын
please help me with this error im stuck for ine day " JSON.parse: unexpected character at line 1 column 1 of the JSON data"
@l.e.nichols9382
@l.e.nichols9382 5 ай бұрын
Awesome vid. Can you follow this up with how to dockerize it?
@powerfulcreations
@powerfulcreations Жыл бұрын
Thanks a lot
@drain1635
@drain1635 2 ай бұрын
Thank you
@fanir2661
@fanir2661 2 жыл бұрын
Hi, great tutorial Thank you! There's just one problem I'm having - I get an error in my localhost:3000 "Uncaught (in promise) SyntaxError: Unexpected token < in JSON at position 0" and don't see the json that was sent. Do you have any idea how to solve this?
@ArpanNeupaneProductions
@ArpanNeupaneProductions 2 жыл бұрын
Hmm, do you have a link to your code? If it’s a SyntaxError then can you please check your code on the frontend side to make sure that it is the same as the code in the video?
@radhesaini9689
@radhesaini9689 2 жыл бұрын
Stop react and restart again problem will be resolved
@nathanseals4819
@nathanseals4819 2 жыл бұрын
I ran into a similar issue. The request to the server was refused because of CORS. In your server, run "pip3 install flask_cors", then in your server.py import the cors (from flask_cors import CORS), lastly insert "CORS(app)" under the app declaration. This will allow your react project to make Cross-Origin requests.
@ur_4180
@ur_4180 2 жыл бұрын
@@nathanseals4819 i had a similar problem, i tried to follow your suggestion and apparently it works. Thank you for helping me sorry i'm not fluent in english
@harshvpatel1542
@harshvpatel1542 Жыл бұрын
@@radhesaini9689 Thank you bro. I spent 2 hours solving this issue and then just restarted server work for me
@lenovok4note298
@lenovok4note298 5 ай бұрын
Hello bro i need to contacts on some flask issue , for most commands it is showing object not found and commandnotfoundexception , i think you can help this
@karimpanacci
@karimpanacci Жыл бұрын
Basically there are 2 servers right? The nodejs server and then the python server? Or am I wrong?
@bryngoldman7373
@bryngoldman7373 10 ай бұрын
Hey, removing the logo and index files is creating a compile error. When I do not remove them, my app has a logo in the background. How do I fix this?
@pshr2447
@pshr2447 2 жыл бұрын
Thanks for the tutorial.... But my python code needs input when you call it, which I'll be obtaining from the frontend...so how can i make the call to the api which needs an input to output data... Also if i have my project on say pythonanywhere or heroku, should i follow the same steps shown here ?
@ArpanNeupaneProductions
@ArpanNeupaneProductions 2 жыл бұрын
Can you further specify what you're trying to do so that I can better assist you? Are you trying to get data from the frontend such as the input entered in forms and receive that same input in the backend?
@pshr2447
@pshr2447 2 жыл бұрын
@@ArpanNeupaneProductions Yeah mate, basically I'm making a youtube analytics website, like getting playlist length etc... I'm working on my frontend with react js, so I'll be getting some input from the user such as the playlist id, etc.. then i want to take all that arguments and call my python api which will have different classes for fetching different data from the youtube api...so basically i just needed to know how can i pass those arguments to the python api from the frontend. (When I'm going to push it in production, I'm going to host my frontend on vercel and on my Python api on heroku)
@ArpanNeupaneProductions
@ArpanNeupaneProductions 2 жыл бұрын
@@pshr2447 I see, in your frontend with React, you can send those input values to the backend with Axios by sending POST requests. Your backend will then catch those POST requests and then get the request body with the input values and you can use them however you’d like :) Hope this helps!
@pshr2447
@pshr2447 2 жыл бұрын
@@ArpanNeupaneProductions thanks for the suggestion, I'll check out axios right now
@ArpanNeupaneProductions
@ArpanNeupaneProductions 2 жыл бұрын
@@pshr2447 No problem!
@Randomredditvids_
@Randomredditvids_ Жыл бұрын
hello, can someone help, I added proxy to package.json, but my react app still points to localhost 3000 and cannot find data
@stumpydes
@stumpydes 2 жыл бұрын
Can they all work on single server, i am looking for running a landing page using flask itself
@ArpanNeupaneProductions
@ArpanNeupaneProductions 2 жыл бұрын
Are you trying to have just Flask and HTML ?
@techandgaming17
@techandgaming17 2 жыл бұрын
Woow!
@ReactFli
@ReactFli 2 жыл бұрын
so how to deploy that to netlify?
@corretorortografico5534
@corretorortografico5534 Жыл бұрын
Excellent video! Really helpful. I just have some questions. How do we call this: " {useState, useEffect} "? I recon there's a name for it, but I don't recall. I really want to understand what does it mean.
@joonbae8136
@joonbae8136 Жыл бұрын
i think you are talking about react hooks
@sh44ko58
@sh44ko58 Жыл бұрын
with useState ur getting data from inputs or arrays.. And useEffect is basicly to this one or multiple times
@Cdxvfx
@Cdxvfx 2 жыл бұрын
Bro demand of react + python ?? From company side. Is it worth learning in 2021
@ArpanNeupaneProductions
@ArpanNeupaneProductions 2 жыл бұрын
React is the most popular frontend library and is used a lot. Python is great as well and is great in machine learning, data science, AI, and web development and they can both be used to create great applications. Now, I don't know about companies since I haven't worked at any because I'm only 13, but I'm sure some companies do use them. Larger companies might also use them along with other languages.
7 better ways to create a React app
7:08
Fireship
Рет қаралды 511 М.
Buy Feastables, Win Unlimited Money
00:51
MrBeast 2
Рет қаралды 77 МЛН
Follow @karina-kola please 🙏🥺
00:21
Andrey Grechka
Рет қаралды 7 МЛН
Make A Python Website As Fast As Possible!
22:21
Tech With Tim
Рет қаралды 652 М.
Create A Python API in 12 Minutes
12:05
Tech With Tim
Рет қаралды 521 М.
How to Build a Weather App with React
18:20
Arpan Neupane
Рет қаралды 23 М.
3 PYTHON AUTOMATION PROJECTS FOR BEGINNERS
17:00
Internet Made Coder
Рет қаралды 1,4 МЛН
Web Developer Roadmap (2024) - Everything is Changing
25:02
ByteGrad
Рет қаралды 226 М.
Django + React JS - How To Integrate React Into Your Django Project
10:46
Android top🔥
0:12
ARGEN
Рет қаралды 832 М.
СЛОМАЛСЯ ПК ЗА 2000$🤬
0:59
Корнеич
Рет қаралды 2,1 МЛН
Пленка или защитное стекло: что лучше?
0:52
Слава 100пудово!
Рет қаралды 1,4 МЛН