Skip to content

Quick Setup and Run

Clone the repository:

1
git clone https://github.com/geosolutions-it/MapStore2.git

If needed, install NodeJS version >= 8 from here, then update npm to version >= 5, using:

1
npm install -g npm

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.

note: This running demo uses https://dev-mapstore.geosolutionsgroup.com/mapstore/ as back-end.

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.