Code Monkey home page Code Monkey logo

hacsec's Introduction

Security hackathon - "Banking App"

Table of contents

Compatibility Test Application

This application was created to test participants' machines compatibility with the final bank application. It consists of the following modules:

  • node.js express server - used as a REST API

  • MySQL Database - used as a main database

  • Adminer - database administration tool

  • Redis storage - used as a storage of sessions

  • Apache HTTPD - used as CDN

  • Apache HTTPD - used as frontend node and reverse proxy to backend systems

Automated build instructions (Test)

All the scripts are available in test-app folder

Windows:

  build.bat

Unix:

  .\build.sh

Running application

After build is completed, start the application using automatic start script:

Windows:

  start.bat

Unix:

  .\start.sh

Stop the application using automatic stop script:

Windows:

  stop.bat

Unix:

  .\stop.sh

Testing the build (Test)

Confirm that the application is working fine, by going to:

http://localhost

You can also access database directly:

http://localhost/adminer

Login using testappuser/TestAppPassword credentials, open database testdb and query some tables - data should be selected correctly.

Banking Application

This is the final application to be used during the hackathon event, consisting of the following modules:

  • node.js express server - used as a REST API

  • MySQL Database - used as a main database

  • Adminer - database administration tool

  • Redis storage - used as a storage of sessions

  • Apache HTTPD - used as CDN

  • Apache HTTPD - used as frontend node and reverse proxy to backend systems

Automated build instructions (Bank)

All the scripts are available in app folder

Windows:

  build.bat

Unix:

  .\build.sh

Running application

After build is completed, start the application using automatic start script:

Windows:

  start.bat

Unix:

  .\start.sh

Stop the application using automatic stop script:

Windows:

  stop.bat

Unix:

  .\stop.sh

Testing the build (Bank)

Confirm that the application is working fine, by going to:

http://localhost

You can also access database directly:

http://localhost/adminer

Login using bankappuser/AppUserPassword credentials, open database testdb and query some tables - data should be selected correctly.

Test the API by opening the following URL:

http://localhost/api/v1/customers

You can also retrieve specific customer data using direct URL:

http://localhost/api/v1/customers/2241

http://localhost/api/v1/customers/2242

http://localhost/api/v1/customers/2242/accounts

http://localhost/api/v1/accounts/86436

http://localhost/api/v1/accounts/86436/transactions

http://localhost/api/v1/transactions/12316133

How to play with that?

Log in using customer ID and password: 2241/password.

You should be redirected to accounts list. Click on the accounts to preview the balance.

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.