mars / heroku-cra-node

⚛️ How to use create-react-app with a custom Node server on Heroku
MIT License
927 stars 226 forks source link

API call failed: fresh install #31

Closed marclundgren closed 6 years ago

marclundgren commented 6 years ago
  1. fresh clone & install & start
    
    hub clone mars/heroku-cra-node
    cd heroku-cra-node/
    npm install && npm start

in a new tab

cd heroku-cra-node/react-ui npm install && npm start



2. load localhost:3000

3. assert the api request to `/api` fails as 404

<img width="1381" alt="screen shot 2018-10-06 at 5 04 26 pm" src="https://user-images.githubusercontent.com/1154834/46576851-22b8b400-c98a-11e8-9cb4-98a82c01b999.png">

## question
Did I miss a step somewhere?
mars commented 6 years ago

Does the server start-up successfully?

What is logged in the terminal from the server process as it starts and then during those failing requests?

marclundgren commented 6 years ago

@mars yup. the server was down - sorry i forgot to check that