Skip to content

Instantly share code, notes, and snippets.

@gannebamm
Last active January 14, 2020 10:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gannebamm/80d000398f413624f7ed8a1aa338bfd7 to your computer and use it in GitHub Desktop.
Save gannebamm/80d000398f413624f7ed8a1aa338bfd7 to your computer and use it in GitHub Desktop.
GettingStarted: Developing for the MapStore2 GeoNode client

Developing for the MapStore2 GeoNode client

see also t-books info here: GeoNode/geonode#5034 (comment)

Ubuntu 18.04 LTS

install geonode like stated here: http://docs.geonode.org/en/2.10.x/install/core/index.html#ubuntu-18-04 run

paver setup
paver sync
paver start

to check if it is working. Stop it again.

paver stop

install NodeJS:

curl -sL https://deb.nodesource.com/setup_13.x | sudo -E bash -
sudo apt-get install -y nodejs

clone and install mapstore2 client

git clone https://github.com/GeoNode/geonode-mapstore-client.git --recursive

cd ~/geonode_mapstore_client/client/

npm install
npm run compile
npm run start

verify that mapstore is running. There should be output like:

[...]
Project is running at http://localhost:8081/
webpack output is served from http://localhost:8081/dist/
Content not from webpack is served from /home/geonode/PycharmProjects/geonode-mapstore-client/geonode_mapstore_client/client
[...]
webpack: Compiled successfully.

change the following variable in settings.py

FROM    MAPSTORE_DEBUG = False
TO    	MAPSTORE_DEBUG = True

start GeoNode again with paver start

__ QUESTIONS __

To modify mapstore2 in GeoNode I would have to change the code, than compile it, than do a pip install -e . inside ~/geonode-mapstore-client (the git root folder). This will install my updated 'version' of geonode-mapstore-client.

after this you should go to geonode and do a python manage.py collectstatic to collect the new mapstore code, right?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment