Coder Social home page Coder Social logo

noob's People

Contributors

dependabot[bot] avatar luukk avatar nick-v-l avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

noob's Issues

'response' werkt niet in python example - 'withdraw' als response wel

Zie titel. Ik heb de code van de python example aangepast om originCountry en originBank ook mee te sturen, omdat anders responses niet aan zouden kunnen komen. Bij testen werkt de routing via de NOOB perfect wanneer 'withdraw' requests worden verstuurd, alleen komen de 'response' packets nooit aan of worden ze nooit verstuurd. Als ik de 'response' als 'withdraw' terugstuur werkt het wel.

import socketio

io = socketio.Client()

io.connect('http://145.24.222.206:8085')

@io.event
def response(data):
    print(data)

@io.event
def withdraw(data):
    # Handle your withdraw request and respond
    print(data)
    response = {
        'header': { 
            'originCountry': 'TE1',
            'originBank': 'INGB',
            'receiveCountry': data['header']['originCountry'],
            'receiveBank': data['header']['originBank'],
            'action': 'withdraw'
        },
        'body': {
            'code': 200,
            'message': 'Success'
        }
    }
    io.emit('response', response)
    #io.emit('withdraw', response) werkt dus wel

withdrawBody = {
    'header': { 
	'originCountry': 'TE1',
	'originBank': 'INGB',
        'receiveCountry': 'TE0',
        'receiveBank': 'INGB'
    },
    'body': {
        'pin': '1234',
        'account': '123456',
        'acmount': 123.45
    }
}

io.emit('withdraw', withdrawBody)

Deposit

  • deposit endpoint maken
  • schema matching
  • frontend updaten

Encryptie

  • root key aanmaken
  • key signing
  • key distribution

Test

  • End to end tests maken

  • unit tests maken

  • automtated testing opzetten

Get balance

  • Get balance endpoint opzetten

  • Schema matching

Witdraw

  • withdraw endpoint
  • schema matching
  • frontend updaten

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.