Create React App + Express server

Опубликовано: 17 Ноябрь 2018
на канале: Rushing Labs
24,247
420

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...


Смотрите видео Create React App + Express server онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь Rushing Labs 17 Ноябрь 2018, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 24,247 раз и оно понравилось 420 людям.