DEV Community

Discussion on: Using Create-React-App with Express

Collapse
 
nickangtc profile image
Nick Ang

Thanks for the tutorial! I just followed it successfully to setup a new project that uses CRA and Express.

Just to be clear for anyone who is confused, what's not been stated explicitly is that you should just load localhost:3000 when you're developing because that's your single page app front end. As long as you configure the proxy in package.json and created the server.js according to this article, you should never need to think about the fact that localhost:8080 is the API server when developing.

Hope this helps!

Collapse
 
loujaybee profile image
Lou (🚀 Open Up The Cloud ☁️)

Hey Nick! Glad to hear it worked out for you. I imagine the article is a little bit out of date now since it was written some years ago. I think what you mention is what I tried to address in the conclusion: dev.to/loujaybee/using-create-reac.... But hopefully your re-wording will help someone else who stumbles upon the article!