Dev Setup and Run
Clone the repository with the --recursive option to automatically clone submodules:
1 | git clone --recursive https://github.com/geosolutions-it/MapStore2.git |
If needed, install NodeJS >= 7.10.0 from here, then update npm to 3.x, using:
1 | npm install -g npm@3 |
Start the demo locally:
1 2 3 4 5 | npm cache clean # this is useful to prevent errors on Windows during install npm install npm start |
Then point your preferred browser to http://localhost:8081.
Other useful commands
1 2 3 4 5 6 7 8 | # Run tests npm test # run test with hot reload npm run continuoustest #generate test documentation npm run doctest |
Quick Build and Deploy
Install latest Maven, if needed, from here (version 3.1.0 is required).
Build the deployable war:
1 | ./build.sh [version_identifier] |
Where version_identifier is an optional identifier of the generated war that will be shown in the settings panel of the application.
Deploy the generated mapstore.war
file (in web/target) to your favourite J2EE container (e.g. Tomcat).
Here you can find how to setup the database.