Git Product home page Git Product logo

nubank-authorizer's Introduction

๐Ÿš€ Tecnologies

This project was developed using these technologies:

๐Ÿ’ป Project

The project was developed for the Nubank company as an exercise. The goal was to create an authorizer that can receive transactions and output the result of them.

๐Ÿƒโ€โ™‚๏ธ Running

# Navigate into the project directory
$ cd nubank-authorizer

# You can run the project building and running the docker image that's inside
$ docker build -t nubank-authorizer .
$ docker run -ti nubank-authorizer

### OR

# You can just run it via leiningen
$ lein run

โœ… Tests

You can run the tests using the following command:

$ lein midje

๐Ÿ‘จ๐Ÿฝโ€๐Ÿ’ป How to use

At the start, the application will prompt the user for an operation

Insert your operation:

The user must input an account or transaction operation

Insert your operation:
{ "account": { "activeCard": true, "availableLimit": 100 } }

The application will return the current status of the account and possible violations that may occur in the business rules

Insert your operation:
{ "account": { "activeCard": true, "availableLimit": 100 } }
{"account":{"activeCard":true,"availableLimit":100},"violations":[]}

After that, the user will be prompted again and can input another operation.

P.S.: The user must input a account operation before he does any transaction

Made with ๐Ÿ’— by Yan Alves

nubank-authorizer's People

Contributors

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