React.js + backend local development setup from easy to advanced

ngrok http 3000
  },
"proxy": "http://localhost:5000"

}
brew install nginx
server {  listen       8080;                   # Ngrok
server_name localhost;
location /api {
proxy_set_header Host $host;
proxy_pass http://localhost:5000; # Backend 1: Flask Dev Server
}
location / {
proxy_set_header Host $host;
proxy_pass http://localhost:3000; # Backend 2: React Dev Server
}
}
nginx
ngrok http 8080

--

--

--

Writing on SaaS entrepreneurship, building a SaaS business

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

How to Create a Live IfFeatureFlag Directive

Using ES6 Proxy to meta-program in Javascript (implement caching, logging, etc.)

Testing front-end applications with Cypress

Vue.js Emit props & Sync modifier

Tips on Unit Testing Vue Components with Jest

Talk about across, over, and through

React-Native Letter casing (Uppercase, Lowercase)

How to reduce docker image size

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Alexander Hupfer

Alexander Hupfer

Writing on SaaS entrepreneurship, building a SaaS business

More from Medium

Data Structures and How To Build It From Scratch Series #0

Authentication using the Auth0 to an React application

Day07 - #100DaysOfCode - Redux

Using Routing in React to Filter Data