Giter Site home page Giter Site logo

bloxs-challenge's Introduction

bloxs-challenge-python

This getting started guide is avaiable for linux OS (Ubuntu/Debian).

Clone the repository into your PC

$ git clone https://github.com/BZ3R0/bloxs-challenge.git

Instalation

  • Get inside the repository directory
$ cd <path-to-project>/bloxs-challenge
  • Install virutalenv (python virtual environment)
$ sudo apt-get install virtualenv
$ virtualenv -p python3 venv
  • Activate virtualenv
$ . venv/bin/activate
  • Install dependences
$ cd src/
$ pip3 install -r requirements.txt

Initialization

  • Get into your project directory
$ cd <path-to-project>/bloxs-challenge
  • Start the virtual environment
$ . venv/bin/activate
  • Get into src folder
$ cd src/
  • Run the application
$ python3 run.py
  • Access endpoints for test
# localhost:5000/api/cadastro_pessoa - Cadastra uma pessoa ou mais
    {
        "persons": [
            { "name": string, "cpf": string, "dataNascimento": string }
        ]
    }


# localhost:5000/api/cadastro_conta - Cadastra uma conta por usuário ou mais
    {
        "contas": [
            { "idPessoa": int, "saldo": float, "limiteSaqueDiario": float, "tipoConta": int}
        ]
    }

# localhost:5000/api/deposito_conta - Realiza um crédito em uma conta específica
    {
        "deposito":
            { "idConta": int, "valorDeposito": float}
    }

# localhost:5000/api/consulta_conta - Realiza a consulta de uma conta específica
    {
        "conta":
            { "idConta": int}
    }

# localhost:5000/api/debito_conta - Realiza o débito em uma conta específica
    {
        "debito":
            { "idConta": int, "valorDebito": float}
    }

# localhost:5000/api/bloqueio_conta - Bloqueia uma conta
    {
        "conta":
            { "idConta": int}
    }
    
# localhost:5000/api/extrato_conta - Exibe o extrato de transações de uma conta específica
    {
        "conta":
            { "idConta": int}
    }

bloxs-challenge's People

Contributors

bz3r0 avatar

Watchers

 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.