esausilva / example-create-react-app-express

Example on using create-react-app with a Node Express Backend
https://esausilva.com/2017/11/14/how-to-use-create-react-app-with-a-node-express-backend-api/
MIT License
374 stars 141 forks source link

Use with CodeSandBox #9

Closed writingdeveloper closed 4 years ago

writingdeveloper commented 4 years ago

I currently developing based on this repository. I wonder how to use this in Codesandbox.

When I use it in codesandbox it shows lots of errors.

It seems the error from scripts but I don't know where should I fix it.

Can you check it please?

https://codesandbox.io/s/github/esausilva/example-create-react-app-express

esausilva commented 4 years ago

Hi, I don't think it is possible to run this project (as-is) in CodeSandbox because the project is actually two apps, the Node app and the React app.

You could run the React app by itself in CodeSandbox (not directly from the repo) and then deploy the Node app to a cloud function somewhere else, then replace the API calls in React app to point to the cloud function.