Skip to content

Commit 7c04014

Browse files
authored
add some back-end documentation (#2312)
1 parent 37b21ff commit 7c04014

File tree

1 file changed

+30
-1
lines changed

1 file changed

+30
-1
lines changed

docs/developer-guide/developing.md

Lines changed: 30 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,36 @@ It also integrates with the [browser's extension](https://github.com/zalmoxisus/
5757
This way you can monitor the application's state evolution and the action triggered by your application.
5858

5959
## 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.
6190

6291
## Frontend testing
6392
To run the MapStore 2 frontend test suite you can use:

0 commit comments

Comments
 (0)