Add an 'express' web server behind your create-react-app project!
I walk through adding a web server to a basic create-react-app project via a proxy. The Node.js package, express, is a great choice for this as we can get started with minimal overhead. I also cover a couple of common pitfalls and mistakes so you can see how I walk through them.
Time Stamps
00:35 -- Intro/Article
01:13 -- Run create-react-app
01:50 -- Move frontend code to /client
03:29 -- Create package.json (for server)
05:09 -- Install nodemon
05:29 -- Create server.js
08:41 -- Validate server works
09:45 -- Add proxy to client
10:22 -- Proxy explanation
11:55 -- Add GET to client
15:45 -- Markup for displaying data
18:12 -- Run client + server
Get the code
https://github.com/meddlin/create-rea...
Tutorial by Esau Silva
https://medium.freecodecamp.org/how-t...
Support Me via BuyMeACoffee!
https://www.buymeacoffee.com/IqgJiZ2RN
What Am I Using?
Mouse -- Logitech MX Master 2S: https://amzn.to/2zf7KGL
Monitor -- Acer G247HYU (1440p): https://amzn.to/2FtQumI
Mat -- Corsair MM300: https://amzn.to/2Tnk2FC
Follow me for more stuff!
linktr.ee - https://linktr.ee/rushinglabs
Website - https://rushinglabs.com/
Github - https://github.com/meddlin
Twitter - / meddlin_dev
Instagram - / rushinglabs
TikTok - https://www.tiktok.com/@rushinglabs?l...
Watch video Create React App + Express server online without registration, duration hours minute second in high quality. This video was added by user Rushing Labs 17 November 2018, don't forget to share it with your friends and acquaintances, it has been viewed on our site 24,247 once and liked it 420 people.