Elrr services which provide a mechanism to synchronize the data in the ELRR with the data in the local learning systems
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
For building and running the elrrservices you need:
Java >=1.8
: Download and install Java from here
- Java.
Maven >=3.6
: Download and install Apache Maven from here
- Maven - Dependency Management.
Postgres >=11
: Download and install Postgres from here
Docker
: Download and install Docker from here
*Docker.
There are several ways to run a Spring Boot application on your local machine. One way is to execute the main method in the com.deloitte.elrr.DemoApplication class from your IDE
-
Clone the Github repository:
-
Open terminal at the root directory of the project.
example: ~/elrrexternalservices
-
Run command to install all the requirements from requirements.txt
mvn spring-boot:run
-
Once the installation and build are done, Once the server is up you can access API using below URL
http://localhost:8088/api/lrsdata?lastReadDate=
e.g 2021-01-10T00:00:00Z
The easiest way to deploy the sample application to Docker is to follow below steps:
-
mvn clean install -Dmaven.test.skip=false
-
mkdir -p target/dependency && (cd target/dependency; jar -xf ../*.jar)
-
docker build --build-arg JAR_FILE="./target/elrrservices-0.0.1-SNAPSHOT.jar" --file Dockerfile -t <docker_hub>/test:elrrservices-dck-img .
-
docker run -p Port:Port -t <docker_hub>/test:elrrservices-dck-img
- docker push <docker_hub>/test:elrrservices-dck-img