RiceComp413-Fall2022 / Jukebox

0 stars 0 forks source link

Can start backend with npm and added a proxy for api calls #47

Closed rhg1 closed 1 year ago

rhg1 commented 1 year ago

You can start the backend using "npm run backend" You can also now start both the front end and backend at the same time using "npm run all" API calls to the backend will be redirected through a proxy now so any api calls can simply use /api/{api route} instead of having to type the whole http://localhost:5000/{api route} or whatever we change the backend server address to be. This will also allow us to change the server address in one place and have it be updated for the whole front end.