Git Product home page Git Product logo

money-tracker's Introduction

Money Tracker

The Money Tracker is an application to track your monthly expenses. It provides a true RESTful HTTP API, which is documented using Spring Rest Docs.

Visit http://localhost:8080 to use the application.

Visit http://localhost:8080/docs/api-guide.html to view the documentation.

Build and Run Locally Build Status

mvn package
java -jar target/*.jar

Run in Docker

docker-compose up -d

Visit http://localhost:8080.

Run in OpenShift

oc new-app --template=postgresql-persistent -p=POSTGRESQL_DATABASE=moneytracker
oc new-app dstritzke/money-tracker:1.0.2
oc patch dc money-tracker -p '{
  "spec": {
    "template": {
      "spec": {
        "containers": [{
          "name":"money-tracker",
          "resources": {
            "limits": {
              "memory": "512Mi"
            },
            "requests": {
              "memory": "256Mi"
            }
          },
          "readinessProbe": {
            "httpGet": {
              "path": "/health",
              "port": 8080,
              "scheme": "HTTP"
            }
          },
          "env": [{
              "name":"SPRING_DATASOURCE_URL",
              "value":"jdbc:postgresql://postgresql:5432/moneytracker"
            }, {
              "name":"SPRING_DATASOURCE_USERNAME",
              "valueFrom": {
                "secretKeyRef": {
                  "key": "database-user",
                  "name":"postgresql"}}
            }, {
              "name":"SPRING_DATASOURCE_PASSWORD",
              "valueFrom": {
                "secretKeyRef": {
                  "key": "database-password",
                  "name":"postgresql"}}
            }, {
              "name":"SPRING_JPA_HIBERNATE_DDL_AUTO",
              "value":"update"
            }]}]}}}}'
oc create route edge --service=money-tracker --insecure-policy=Redirect
echo "Visit https://$(oc get route money-tracker -o jsonpath='{.spec.host}')"

Known Vulnerability Scan

Within the pom.xml the OWASP dependency check is added. To execute the dependency scan, execute mvn dependency-check:aggregate.

money-tracker's People

Contributors

dashrathmundkar avatar dennisstritzke avatar

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.