The service-layer for the KPMP Atlas Spatial Viewer
./gradlew test
If you have having troubles seeing changes during development, you can try to clear the gradle cache by running the following command:
./gradlew clean
./gradlew build docker
The default tag is the github branch name if no verison is provided
To pass a version when building the docker image execute
./gradlew build docker -Ptag=<tagNumber>
docker kill spring
cd ~/proj/heavens-docker/atlas/knowledge-environment
docker-compose -f docker-compose.dev.yml up -d
docker-compose -f docker-compose.dev.yml logs --f spring
- Update .env ENV_MYSQL_HOST to the IP address of QA KE
- Update .env ENV_MYSQL_PASSWORD to the password for QA KE
- Add your IP address to a new security group called sg-0597e054f11d2e31a (Developer to KE Mariadb)
- Restart your knowledge-environment (don't worry that you have your own copy of mariadb, it'll be ignored)
- Login to the KE Enterprise Search console (see https://docs.google.com/document/d/1uMb_ooDEU6PDkZOuFQGnPHo07UtnA-mrfwe3lpuEiho)
- Delete the “spatial-viewer” search engine
- Create a new “spatial-viewer” search engine
- SSH to the appropriate KE machine
- Execute:
curl -X GET http://localhost:3040/api/v1/spatial-viewer/load-search