File tree Expand file tree Collapse file tree 1 file changed +30
-1
lines changed Expand file tree Collapse file tree 1 file changed +30
-1
lines changed Original file line number Diff line number Diff line change @@ -57,7 +57,36 @@ It also integrates with the [browser's extension](https://github.com/zalmoxisus/
57
57
This way you can monitor the application's state evolution and the action triggered by your application.
58
58
59
59
## Backend services debugging
60
- TBD
60
+
61
+ By default ` npm start ` runs a dev server connected to the mapstore 2 online demo as back-end.
62
+
63
+ If you want to use your own local test back-end you have to:
64
+ 1 . run ` mvn jetty:run ` - it makes run the mapstore back-end locally (port 8080), ìn memory db - By default 2 users
65
+ - ` admin ` password ` admin `
66
+ - ` user ` with password ` user `
67
+
68
+ 2 . Setup client to use the local back-end, apply this changes to webpack.config.js (at the devServer configuration)
69
+ ``` Javascript
70
+ devServer: {
71
+ proxy: {
72
+ ' /mapstore/rest/' : {
73
+ target: " http://localhost:8080" ,
74
+ pathRewrite: {' /mapstore/rest/' : ' /rest/' }
75
+ },
76
+ ' /mapstore/proxy' : {
77
+ target: " http://localhost:8080" ,
78
+ pathRewrite: {' /mapstore/proxy' : ' /proxy' }
79
+ },
80
+ ' /docs' : {
81
+ target: " http://localhost:8081" ,
82
+ pathRewrite: {' /docs' : ' /mapstore/docs' }
83
+ }
84
+ }
85
+ },
86
+ ```
87
+ 3 . You have to run npm start to run mapstore client on port 8081, that is now connected to the local test back-end
88
+
89
+ You can even run geostore and http-proxy separately and debug them with your own IDE. See the documentation about them in their own repositories.
61
90
62
91
## Frontend testing
63
92
To run the MapStore 2 frontend test suite you can use:
You can’t perform that action at this time.
0 commit comments