Skip to content

Instantly share code, notes, and snippets.

@marisnb
Last active March 5, 2019 10:37
Show Gist options
  • Save marisnb/ea0c6e70c595fd3eafdb8c1b4727eb38 to your computer and use it in GitHub Desktop.
Save marisnb/ea0c6e70c595fd3eafdb8c1b4727eb38 to your computer and use it in GitHub Desktop.
Package.json set up a React app with a Spring Boot Micro Service server proxy
{
"name": "example-app",
"version": "0.1.0",
"private": true,
"dependencies": {
"axios": "^0.18.0",
"mobx": "^4.1.1",
"mobx-react": "^5.0.0",
"react": "^16.3.1",
"react-app-rewire-mobx": "^1.0.8",
"react-app-rewired": "^1.5.0",
"react-dom": "^16.3.1",
"react-router-dom": "^4.2.2",
"react-scripts-ts": "2.14.0",
"bootstrap": "4.0.0"
},
"scripts": {
"start": "react-scripts-ts start",
"build": "react-scripts-ts build",
"test": "react-scripts-ts test --env=jsdom",
"eject": "react-scripts-ts eject"
},
"devDependencies": {
"@types/jest": "^22.2.2",
"@types/node": "^9.6.2",
"@types/react": "^16.3.6",
"@types/react-dom": "^16.0.4",
"@types/react-router-dom": "^4.2.6",
"typescript": "^2.8.1"
},
"proxy": {
"/auth": {
"target": "http://localhost:9990",
"changeOrigin": true
},
"/orders/*": {
"target": "http://localhost:9991",
"changeOrigin": true
},
"/api/*": {
"target": "http://localhost:9992",
"changeOrigin": true
},
"/search/*": {
"target": "http://localhost:9993",
"changeOrigin": true
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment