see also t-books info here: GeoNode/geonode#5034 (comment)
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?