Git Product home page Git Product logo

jag-pcss-criminal's Introduction

jag-pcss-criminal

Lifecycle:Stable Maintainability Test Coverage

Recommended Tools

  • Intellij
  • Docker
  • Docker Compose
  • Maven
  • Java 17
  • Lombok

Summary

Project Structure

Required Environmental Variables

BASIC_AUTH_PASS: The password for the basic authentication. This can be any value for local.

BASIC_AUTH_USER: The username for the basic authentication. This can be any value for local.

ORDS_HOST: The url for ords rest package.

ORDS_USERNAME: ORDS_HOST authentication.

DEMS_ORDS_PASSWORD: ORDS_HOST authentication.

DEMS_ORDS_USERNAME: ORDS_HOST authentication.

ORDS_PASSWORD: ORDS_HOST authentication.

ORDS_READ_TIMEOUT: Timeout in seconds which expects the response/result from ORDS.

SPLUNK_HTTP_URL: The url for the spluck hec. For local splunk this value should be 127.0.0.1:8088 for remote do not include /services/collector.

SPLUNK_TOKEN: The bearer token to authenticate the application.

SPLUNK_INDEX: The index that the application will push logs to. The index must be created in splunk

Building the Project

  1. Set intellij to use java 11 for the project modals and sdk
  2. Run mvn compile
  3. Make sure target/generated-sources/xjc folder in included in module path for pcss-models and pcss-secure-modals

Running the Project

Option A) Intellij

  1. Create intellij run configuration from PCSS Application
  2. Set env variables. See the .env-template
  3. Run the application

Option B) Jar

  1. Run mvn package
  2. Run java -jar ./target/pcss-application.jar

Option C) Docker

  1. Run mvn package
  2. Run docker build -t pcss-civil-api . from root folder
  3. Run docker run -p 8080:8080 pcss-civil-api

Option D) Docker Compose

  1. Run mvn package
  2. Run docker-compose up pcss-civil-api

Option D) Eclipse

  1. Clone the project into a local folder.
  2. Import the Maven project using the Maven Project Import Wizard.
  3. Set Variables either as Windows/Linux Environmental variables or POM goal Environment Variables:

BASIC_AUTH_PASS

BASIC_AUTH_USER

ORDS_HOST

DEMS_ORDS_HOST

ORDS_USERNAME

ORDS_PASSWORD

SPLUNK_HTTP_URL

SPLUNK_TOKEN

SPLUNK_INDEX

  1. Create POM goals: clean install, spring-boot:run (when running locally).

Pre Commit

  1. Do not commit \CRLF use unix line enders
  2. Run the linter mvn spotless:apply

JaCoCo Coverage Report

  1. Run mvn clean verify
  2. Open pcss-code-coverage/target/site/jacoco-aggregate/index.html in a browser

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.