DEV Community

Combine React js with Node Js ?

NardjesBen on May 12, 2021

I am a beginner and I would like to make an application with : Front-end : React js Back-end : Node js my interface will contain 2 buttons : Dow...
Collapse
 
kamalhossain profile image
Kamal Hossain

Hey there, did you created the nodejs and react part separately?

Collapse
 
nardjes profile image
NardjesBen

Yes, i do that

Collapse
 
kamalhossain profile image
Kamal Hossain

Create two route at nodejs ,

One GET route for download , another POST route for upload the files from frontend.
Use "axios" at frontend to consume those API or endpoints.

Thread Thread
 
nardjes profile image
NardjesBen

thank you for your answer it will help me

Thread Thread
 
icecoffee profile image
Atulit Anand

But you do need to configure web pack right. Or is there any boiler plate you know of.

Thread Thread
 
nardjes profile image
NardjesBen

No, I'm just a new and I don't know where to start

Thread Thread
 
icecoffee profile image
Atulit Anand

Ditto my friend this question have been on my mind since forever.

Collapse
 
ps173 profile image
Pratham Sharma • Edited

So well firstly create client folder and add your react front end there.. then to server folder add backend code. And that's how you get started. Everything else depends on app.

Collapse
 
nardjes profile image
NardjesBen

OK, thank you for your answer.