Giter Club home page Giter Club logo

rewards's Introduction

Rewards

This is a SOA (Service Oriented Architecture) example application.

The requirement's specifications are defined in the Scenario.

The project leverages on:

  • Groovy

  • Gradle

  • Springframework

  • Camel

  • CXF

Open a Linux console and go to the project home.

Type gradle test you will test it.

Type gradle run you will run it (with development setup). After that you may test the up and running application typing curl -v http://localhost:8080/rewards/account/234234 -X GET -d '{"portfolio":{"channels":["SPORTS"]}}'

Type gradle distZip you will obtain a complete deliverable zip file which contains an executable launcher

Configuration

Available on src/main/resources

RewardService: src/main/groovy/com/gfrison/services/RewardService.groovy

Gradle

Dependencies and build management is delegated to Gradle.

Install it from http://gradle.org not from apt-get install gradle. More recent version, more better

If you want to run it simply type: gradle run. Other tasks:

  • compile java -- gradle compileJava

  • compile groovy -- gradle compileGroovy

  • test -- gradle test

  • run -- gradle run

  • create launch script -- gradle installApp

  • create distribution (zip) -- gradle distZip it creates a zip file according to the build.gradle's projectName and version

Spring

The project makes use of Springframework through the Grails based DSL.

It's a very concise way to handle Spring configuration. For more information (http://www.grails.org/doc/latest/guide/spring.html#springdsl).

Eclipse

In order to get the project dependencies in Eclipse just prompt gradle eclipse

Environments

It's possibile to customize configuration for any given environment such as development, integration, production (or whatever you want define).

Add the folder src/main/resources/conf/{environment name}/.

Then set the proper environment's placeholer config.properties and log4j.xml.

When you run the application from start script you have to set the system variable ex:

export APP_OPTS="-Denvironment=<development/integration/production>"

rewards's People

Contributors

gfrison avatar

Watchers

James Cloos 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.