Simpl Service
Provides a client API and other resources to support simpl.press frontend
From the root directory of this codebase:
- Run
mvn clean compile
to compile the application. - Run
mvn exec:java
to start the server. The server will use theconfig/local.yml
configuration file. - Visit URL
http://localhost:9000
in your browser for the service homepage.
Alternatively:
- Run
mvn clean install
to build your application. - Start application with
java -jar target/checkout-service-X-Y.jar server config/local.yml
. - Visit URL
http://localhost:9000
in your browser for the service homepage.
Within your IDE:
- See
Build
section below for notes on required annotation processing when running the service within an IDE. - Run the service as a regular Java application: the main class is
SimplPressServiceApplication
. Provide the argumentsserver config/local.yml
(or specify another configuration file).
The port the service runs on is configured within the configuration file passed to the application.
Intellij IDEA
To enable annotation processing (correct for version 15):
- Open preferences dialog.
- Navigate to
Build, Execution, Deployment
section. - Navigate to
Compiler
subsection. - Navigate to
Annotation Processors
subsection. - Tick
Enable annotation processing
. - Make sure
Obtain processors from classpath
is selected.
Optional Dagger support: