Tuesday, 12 November 2019

There has to be a better way to connect front-end to back-end?

Hello to all! Dipping my toes into the backend world. I’m using axios to fetch data from my Express backend routes, connected by a proxy in the package.json file, server running on port 5000. I’m using React-Router to navigate through the the front end, redux for state management, etc. etc. Frontend running on port 3000.Each axios request from the front end goes something like...axios.get(‘http://localhost:5000/routes-here’)...there has to be a better way to make requests, no?ive looked everyone online, figured I’d ask for some helpThanks to anyone that might help or lead me in the right direction!

Submitted November 13, 2019 at 02:06AM by kingducasse

No comments:

Post a Comment