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 : Download and Send, I would like to download csv files from a sftp server and when we click on download files will be displayed in the interface and the send button allows to send files from my local machine to the sftp server.
How can I combine the react and node part, I was able to connect and upload files in nodejs but I don't know how to combine that with React?
Top comments (9)
Hey there, did you created the nodejs and react part separately?
Yes, i do that
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.
thank you for your answer it will help me
But you do need to configure web pack right. Or is there any boiler plate you know of.
No, I'm just a new and I don't know where to start
Ditto my friend this question have been on my mind since forever.
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.
OK, thank you for your answer.