Coder Social home page Coder Social logo

bank-simulator's Introduction

Bank simulator

A credit card app powered by REST and built on Java Server Pages.

ae1 contains code and documentation related to our project.

APPLICATION SETUP

Firstly, ensure that you've got Java JDK 8 or newer installed on your system. You'll also need Apache Maven to ensure the application can build its dependencies and function correctly.

Once installed, navigate to the parent folder (ae1) and run:

mvn clean install

You can now deploy the web application using Tomcat. Furthermore, you could navigate to the web directory and run:

mvn cargo:run

After doing one of these, navigate to http://localhost:8080/web/ or http://localhost:8080/web/index.html for credits and a gateway to the running app! I recommend using a modern browser which supports JavaScript.

To access the admin control panel you'll need to enter "testuser2" and "defaulttestpass" if the default properties file successfully loads. If there's already a properties file with values inside it, the app will let you skip the login until valid properties are set.

DOCUMENTATION

  • Click here to see documentation for the app.
  • Click here to see tests against the use cases.

bank-simulator's People

Contributors

nastaransharifisadr avatar wt000 avatar

Watchers

 avatar

bank-simulator's Issues

Finishing touches

Currently needs to be finished:

Credit Card UI (Text UI, change limit system to work with variable length instead of numbers, see if date bug where clicking on date after credit card causes 1 extra input to be needed can be solved)
Conversion to Spring

This code should hopefully be done by Monday, giving time to do the documentation on Tuesday / Wednesday and finish presentations on Wednesday / Thursday.

App crashes when invalid values are entered

For instance, leaving the amount field empty or putting strings in it instead.

To fix this, values need to be checked before they're sent to the ReST server and ensure it's a valid double, otherwise it shouldn't do the ReST connection and tell the user to enter a valid value.

Perhaps a £ sign could be added to the left of the value too, ensuring people don't attempt to add that value in themselves.

Adding cards is pointless

Cards don't need to be added to the session, the form should only keep the card for the request. This also means that the card and transaction form can be merged in the future, making it easier for customers to perform operations (first checks form fields, then checks card with card checker, then uses ReST once it knows everything the user entered is validated).

The refund form on the admin page will work similarly to this, but only has customer card number and amount as fields (form only shows if there's currently an admin card in properties).

Lack of Bootstrap

Most of the layout is currently done in raw CSS, convert it to Bootstrap so it functions better.

This will be particularly useful for working on the fancier designs in phase 2 and phase 3.

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.