Giter Club home page Giter Club logo

voucher-storage-service's Introduction

voucher-storage-service Build Status

A microservice developed during "Kyma meets CCV2 Hackathon" at SAP Labs in Gliwice, Poland. It is responsible for providing and using promotional vouchers. This app is a small part of a bigger solution developed by the whole team during the hackathon. You can also read related blog post about this project and event.

Tech Stack

  • application: JVM, Kotlin, Gradle, Dagger, Javalin, Docker
  • tests: JUnit, JUnit Params, Truth, Mockito, REST Assured

building and running the app

  • building app: ./gradlew clean build
  • running app: java -jar build/libs/app-1.0-all.jar

tests

  • running unit tests: ./gradlew test
  • running integration (rest api) tests: ./gradlew test -Dtest.profile=integration

rest api

GET localhost:7000/voucher           # gets all available vouchers
GET localhost:7000/voucher/click10   # gets and deactivates voucher for 10% discount
GET localhost:7000/voucher/click15   # gets and deactivates voucher for 15% discount
GET localhost:7000/voucher/click20   # gets and deactivates voucher for 20% discount
GET localhost:7000/health            # gets information about health check

docker

  • building docker container: ./dockerw.sh --build
  • running docker container: ./dockerw.sh --run
  • pushing docker container: ./dockerw.sh --push
  • pulling docker container: ./dockerw.sh --pull
  • removing docker container: ./dockerw.sh --remove
  • displaying help for docker wrapper script: ./dockerw.sh --help
  • docker image is available at https://hub.docker.com/r/pwittchen/voucher-storage-service/

voucher-storage-service's People

Contributors

pwittchen avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

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