GithubHelp home page GithubHelp logo

n26-code-challenge's Introduction

N26 Challenge

Solution to the N26 challenge.

Getting started

Prerequisites

This application can be run either by using a JRE (8+) directly, or through Docker:

Local JRE

  1. Install maven 3

  2. Run the following command in the root directory of the project:

    mvn package
    

Docker

  1. Build the image. E.g.:

    docker build --tag miguel-aragon-n26-challenge .
    

Usage

Running

Option 1: Local JRE

java -jar target/n26-challenge.jar \
	[-C[property]]

Option 2: Docker

docker run --name miguel-aragon-n26-challenge -p 8080:8080 \
	[--env JAVA_OPTS=""] \
	miguel-aragon-n26-challenge \
	[-C[property]]

Parameters

Properties can be specified by passing a -C parameter. E.g.:

-Cspring.profiles.active=dev

The application uses Spring Boot so any of their properties can be specified (see Common application properties).

Additionally, the following application-specific properties can be defined:

Property Description
mx.araco.miguel.n26.sampling-period Period of time that the SamplingStatisticsService calculates transaction statistics of (ISO 8601 duration)
mx.araco.miguel.n26.sample-period How long it takes for the SamplingStatisticsService to sample new statistics (ISO 8601 duration)

Testing

To run the tests you need to have installed maven 3 and run:

mvn test

n26-code-challenge's People

Contributors

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