Developer: How to run SESAR REST API app - GeoSamples/sesar-rest-api GitHub Wiki
There are three methods to run the SESAR REST API app
Run it as Spring Boot app within Spring Tool Suite 4
Right click on the project name 'sesar-rest-app', the submenu will popup, click 'Run as', then click 'Spring Boot app'. The application will run with embedded tomcat plugin for STS on the port 8080 by default.
Select SesarRestApiApplication on the popup window,then click 'Ok'.
You can see a lot print outs on the console window. See below. From the messages, you can see tomcat is started on port 8080.
Run it as Docker container
docker images | grep sesar-rest-api --> make sure sesar-rest-api-0.0.9 is created.
cd where_the_sesar_rest_api_source_code_directory
ls docker-compose.yml --> make sure this file exists
docker-compose up
If you are using Windows OS, you will need to change the $PWD within the docker-compose.yml to the sesar-rest-api directory or your preferred volume location
Run it in a standalone tomcat server
assume tomcat is installed on $TOMCAT_DIR
cd where_the_sesar_rest_api_source_code_directory
cp sesar-rest-api-0.0.9.war $TOMCAT_DIR/webapps
cd $TOMCAT_DIR/bin
./startup.sh