Question
Assignment Web Bank + Transactions This assignment is an extension to your Web Bank assignment. Your web server program is required to handle request messages
Assignment Web Bank + Transactions
This assignment is an extension to your Web Bank assignment.
Your web server program is required to handle request messages submitted via multiple web pages.
Assignment Specifications
Your Node/Express/Handlebars/JSON/Sessions + cookies based deliverable must provide the following:
Creating Three OR Four New Web Pages
- The same heading that identifies the theme and/or subject of your login web page is to be imported from a partial Handlebars file for the new web pages
Balance Web Page (Mandatory)
- A line of text that identifies the chosen account number
- A second line of text that identifies the account type
- A third line of text that presents the current account balance
- A button for submitting a request to return to the banking web page
Deposit Web Page
- A line of text that identifies the chosen account number
- A second line that permits the entering of deposit amount
- A button for submitting a request to deposit the entered amount before return to the banking web page
- A button for submitting a request to cancel the deposit before return to the banking web page
- The account balance is to increase as per deposit amount
Open an Account Web Page
- A radio button labelled as Chequing
- A radio button labelled as Savings
- A Submit button for submitting a request to open a new account before return to the banking web page
- The Submit button is to remain disabled until one of the radio buttons was selected
- The message Account #nnnnnnn Created is to be displayed on the banking web page when the new account was successfully opened
- A Cancel button for submitting a request to cancel the opening before return to the banking web page
Withdrawal Web Page
- A line of text that identifies the chosen account number
- A second line that permits the entering of deposit amount
- A button for submitting a request to withdraw the entered amount before return to the banking web page
- A button for submitting a request to cancel the withdraw before return to the banking web page
- The account balance is to decrease as per withdrawal amount
- The message Insufficient Funds is to be displayed on the banking web page when attempting to withdraw amount greater than the account balance
Modifying One Existing Web Page
Banking Web Page
- Successful login will result in the creation of cookie and the setting up of web session
- Two additional radio buttons
- A radio button labelled as Open an Account
- A radio button labelled as Withdrawal
- Open the new Balance web page by
- Select the Balance radi button
- Enter an account number
- Click the Submit buttn
- Open the new Deposit web page by
- Select the Depsit radi button
- Enter an account number
- Click the Submit buttn
- Open the new Open an Account web page by
- Select the Open an Account radi button
- Click the Submit buttn
- Open the new Withdrawal web page by
- Select the Withdrawal radi button
- Enter an account number
- Click the Submit buttn
Files
accounts.json
{
"lastID": "0000015",
"0000001": {
"accountType": "Savings",
"accountBalance": 1194.33
},
"0000008": {
"accountType": "Chequing",
"accountBalance": 555.66
},
"0000010": {
"accountType": "Savings",
"accountBalance": 5050.5
},
"0000015": {
"accountType": "Chequing",
"accountBalance": 0
}
}
- All existing or newly created WebBank accounts are reflected in the accounts.json file
- lastID is the first key/property in the file with the last used account number as its assigned value
- The remaining properties represent individual WebBank accounts where the account number being the key and the values consists of accountType and accountBalance of accounts
- The accountBalance of individual accounts are to increment or decrement based on their respective deposit or withdrawal transactions
- The remaining design criteria are to be decided by the web app designer
Technical Specifications
- Code one JavaScript server application using Node.js for routing, Express.js for framework and Handlebars.js for templating
- Mandatory npm modules are: express, express-handlebars, fs, path, client-sessions and body-parser
Assignment Requirements
- Hand in your assignment by date specified on the weekly schedule in media specified in the course overview
- The completed assignment should include at least one js file, one hbs file for each web page, one package.json file, one user.json file, one accounts.json file, your assignment URL and necessary image files all compressed into one zip file
- Your assignment is to be submitted via Blackboard
- Ensure your assignment can be successfully tested via localhost:3000
- Deploy your assignment to your Heroku account
- Ensure your assignment can be successfully tested via your Heroku URL
Note: This assignment is worth 15% of your final grade.
Sample Assignment Web Server App
this is a website project for banking.
it is written with javascript
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started