Skip to content

Services for integrating with external interfaces (LRS, CaSS, ECC etc)

Notifications You must be signed in to change notification settings

US-ELRR/elrrexternalservices

Repository files navigation

elrrexternalservices API

Services for integrating with external interfaces (LRS, CaSS, ECC etc)

Getting Started

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.

Requirements

For building and running the elrrexternalservices you need:

Java >=1.8 : Download and install Java from here

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.

Running the application locally

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.ElrrExternalServicesApplication class from your IDE

  1. Clone the Github repository:

    GitHub-US-ELRR

  2. Open terminal at the root directory of the project.

    example: ~/elrrexternalservices

  3. Run command to install all the requirements from requirements.txt

    mvn spring-boot:run

  4. 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

Deploying the application to Docker

The easiest way to deploy the sample application to Docker is to follow below steps:

  1. mvn clean install -Dmaven.test.skip=false

  2. mkdir -p target/dependency && (cd target/dependency; jar -xf ../*.jar)

  3. docker build --build-arg JAR_FILE="./target/elrrexternalservices-0.0.1-SNAPSHOT.jar" --file Dockerfile -t <docker_hub>/newrepository:elrrexternalservices-dck-img .

  4. docker run -p 8088:8088 -t <docker_hub>/newrepository:elrrexternalservices-dck-img

Optional step

  1. docker push <docker_hub>/newrepository:elrrexternalservices-dck-img

About

Services for integrating with external interfaces (LRS, CaSS, ECC etc)

Resources

Stars

Watchers

Forks

Packages

No packages published