Boss Machine

Hello everyone :wave:t2:
I’ve finished Boss Machine project. It took me a few days. I did everything, checked with solution code. And my tests pass. But I can’t see anything on the front-end side. It says “Cannot GET /”. I decided to still practice conceptions that we were learning with get, put, post, delete and param. It seems like a problem might be in older version of exercise…

Here is my code on GitHub Boss Machine.

1 Like

Hi, check out this Tips for boss project.. There is a line you need to add.

1 Like

Thank you very much. I will try it :star_struck:

did you try? I followed the instructions from Tips for the Boss Machine project (Express.js): Installation, start local server, access index.html, and using Postman to test all the routes, however I cannot see anything in the front end. The instruction in the browser http://localhost:4001/api/minions actually return the array of minions, but it does not render in the front end.

I think this starter code is just broken; for instance, the initial list of 10 minions that gets generated on server start never renders in the browser, yet it comes up without issue if I hit the localhost/api/minions endpoint with Postman. My code exactly matches the solution so I have no idea what could be wrong.

1 Like

same problem here! at the end my solution was to develop all the routes for the minion Router API, then to test only for that one, and eventually the rendering start to happen. Good luck mate!

1 Like

Cheers, we need some luck here… I can also confirm that POST, PUT, GET by ID and DELETE all work properly when using Postman. Here’s a strange wrinkle: if I create a new minion in the browser and then delete him, suddenly the original list of random minions renders. I think the geriatric React Redux app packaged in the starter code doesn’t work properly with updated dependencies.

1 Like

i cant install this project, get the error message: i get this error message when i run npm install on a project: npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: [email protected]
npm ERR! Found: [email protected]
npm ERR! node_modules/redux
npm ERR! dev redux@“^3.7.2” from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer redux@“^4” from [email protected]
npm ERR! node_modules/redux-thunk
npm ERR! dev redux-thunk@“^2.2.0” from the root project
npm ERR!
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
npm ERR!
npm ERR!
npm ERR!

anyone know what to do?