Skip to content

Commit

Permalink
Added build script, fixed windows build using mkdirp, improved README
Browse files Browse the repository at this point in the history
  • Loading branch information
mbarto committed Jul 23, 2015
1 parent 34c92eb commit 410f4b8
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 12 deletions.
25 changes: 16 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,24 @@ MapStore 2 has several example applications:

MapStore 2 is based on OpenLayers 3, Leaflet and ReactJS, and is licensed under the GPLv3 license.

Clone:
Quick Start:
------------

Remember to clone with --recursive option to automatically clone submodules.

i.e. git clone --recursive https://github.com/geosolutions-it/MapStore2.git
Clone the repository with --the recursive option to automatically clone submodules:

Build:
`git clone --recursive https://github.com/geosolutions-it/MapStore2.git`

mvn clean install -Pgeostore,extjs,postgres,h2_disk
Install NodeJS, if needed, from [here](https://nodejs.org/).

Develop:
Start the demo locally:

npm install
npm start
`npm install`
`npm start`

Install latest Maven, if needed, from [here](https://maven.apache.org/download.cgi) (version 3.1.0 is required).

Build the deployable war:

`./build.sh`

Deploy the generated mapstore.war file (in web/target) to your favourite J2EE container (e.g. Tomcat).
2 changes: 2 additions & 0 deletions build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#!/bin/bash
mvn clean install -Pgeostore,extjs,postgres,h2_disk
8 changes: 5 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"name": "mapstore2",
"version": "0.0.1",
"description": "MapStore 2",
"repository": "https://github.com/geosolutions-it/MapStore2",
"main": "index.js",
"devDependencies": {
"expect": "^1.6.0",
Expand All @@ -20,17 +21,18 @@
"karma-sourcemap-loader": "^0.3.3",
"karma-webpack": "^1.5.0",
"karma-junit-reporter": "^0.3.1",
"webpack": "^1.5.3"
"webpack": "^1.5.3",
"mkdirp": "^0.5.1"
},
"dependencies": {
"jquery" : "^1.11.3",
"leaflet" : "^0.7.3",
"react": "^0.13.3"
},
"scripts": {
"watch": "mkdir -p ./web/dist && watchify -t babelify ./web/examples/viewer/app.jsx -o ./web/dist/viewer.js -v -d",
"watch": "mkdirp ./web/dist && watchify -t babelify ./web/examples/viewer/app.jsx -o ./web/dist/viewer.js -v -d",
"clean": "rm -Rf ./web/dist",
"compile": "npm run clean && cd web && mkdir dist && cd .. && browserify -t babelify web/examples/viewer/app.jsx -o web/dist/viewer.js",
"compile": "npm run clean && mkdirp ./web/dist && browserify -t babelify web/examples/viewer/app.jsx -o web/dist/viewer.js",
"server:reload": "live-server --port=8081 --open=web/index.html",
"start": "parallelshell \"npm run watch\" \"npm run server:reload\"",
"test": "karma start",
Expand Down

0 comments on commit 410f4b8

Please sign in to comment.