Build and start the service.
Not yet available, but planned.
In order to build the Typed PID Maker, you’ll need:
After obtaining the sources change to the folder where the sources are located perform the following steps:
user@localhost:/home/user/typed-pid-maker$ ./gradlew build
> Configure project :
Using release profile for building notification-service
<-------------> 0% EXECUTING [0s]
[...]
user@localhost:/home/user/typed-pid-maker$
The Gradle wrapper will now take care of downloading the configured version of Gradle and finally build the Typed PID Maker microservice.
As a result, a jar file containing the entire service is created at build/libs/TypedPIDMaker-$(version).jar
.
Before you are able to start the microservice, you have to modify the file ‘application.properties’ according to your local setup.
Therefor, copy the file conf/application.properties
to your project folder and customize it.
For the Collection API you just have to adapt the properties of spring.datasource
and you may change the server.port
property.
All other properties can be ignored for the time being.
As soon as you finished modifying ‘application.properties’, you may start the service by executing the following command inside the project folder, e.g. where the service has been built before:
user@localhost:/home/user/typed-pid-maker$ ./build/libs/TypedPIDMaker-$(version).jar
. ____ _ __ _ _
/\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \
( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
\\/ ___)| |_)| | | | | || (_| | ) ) ) )
' |____| .__|_| |_|_| |_\__, | / / / /
=========|_|==============|___/=/_/_/_/
:: Spring Boot :: (v2.0.5.RELEASE)
[...]
1970-01-01 00:00:00.000 INFO 56918 --- [ main] o.s.b.w.embedded.tomcat.TomcatWebServer : Tomcat started on port(s): 8070 (http) with context path ''
As soon as the microservice is started, you can browse to
http://localhost:8060/swagger-ui.html
in order to see available RESTful endpoints and their documentation.
The port may vary depending on the configuration.properties
file
You may have to adapt the port according to your local settings.
Furthermore, you can use this Web interface to test single API calls in order to get familiar with the service.
--spring.config.location=config/application.properties
set the configuration files location to be used. Not required if the file is in the same directory as the jar file.bootstrap all-pids-from-prefix
starts the service and bootstraps all PIDs. This means:
bootstrap known-pids
same as above, but:
write-file all-pids-from-prefix
writes all PIDs of the configured PID prefix to a CSV file (one PID per line).write-file known-pids
same as above but: