Create a nodejs application

Assignment Help Programming Languages
Reference no: EM133004240

SIT774 Web Technologies and Development

User Validation by Using Database

Tasks
In this task you are required to implement a NodeJS server that stores user details in a database for the (fictitious) Deakin Chess Club.
As part of this task you will need to implement a simple Login page. Here the data pasted from the login page can be validated against the data stored in the database on the server.

Steps
1. Create a NodeJS application (i.e., index.js ) which on execution creates an SQLite3 database table (an in memory DB is fine). It should then populate this table with the details of the 5 players shown below:

2. Next, you are to implement a Login form that asks the user for a USERNAME / PASSWORD combination. The user can then POST this data to the server on clicking a button.

An example of a login screen is shown below, although you are free to implement another layout/style.

3. The NodeJS application (the server) must be able to handle the post request through an appropriate route. In processing this login request, the server should search for the given username and compare the password provided by the user with that which is stored in the database.

If they match (login successful), an appropriate response should be provided. This should include information from the user's database record (i.e., the number of wins/losses/draws, etc.). A sample of a valid login is shown below:

Task10.2.3 Possible ‘successful' login message

If the provided USERNAME / PASSWORD combination does not match the that stored in the database, an appropriate unsuccessful response should be provided. A sample of an unsuccessful login is shown below:

Task10.2.4 Possible ‘unsuccessful' login message

When creating the database table, consider the data types of respective fields,

for example:

the ID field should be an integer (see the id INTEGER PRIMARY KEY AUTOINCREMENT attribute in SQLite)
the username should be UNIQUE

The match results should also be INTEGERS as you would like to do calculations on these (e.g., count up the total number of pizzas purchased)

When checking on the USERNAME/PASSWORD in the database, consider using the SELECT command with a WHERE that combines these two inputs as the search field.

Attachment:- Web Technologies and Development.rar

Reference no: EM133004240

Questions Cloud

Determine the amount of the bond interest expense : On the first day of its fiscal year, Jacinto Company issued $13,100,000. Determine the amount of the bond interest expense for the first year.
Approve a plan to assess security controls : Create a presentation (Power Point, LibreOffice Impress, WPS Presentation) showing a minimum of 15 security controls. You are to use the security controls used
Should recognise a liability in accordance with the relevant : From Johnny's point of view, should he recognise a liability in accordance with the relevant Conceptual Framework definition and recognition criteria.
What is the balance in accounts receivable at end of june : Make a monthly schedule of cash receipts for the second quarter of 20x5 and what is the balance in accounts receivable at the end of june?
Create a nodejs application : Create a NodeJS application (i.e., index.js ) which on execution creates an SQLite3 database table (an in memory DB is fine).
Which is the correct set of hypotheses to test statement : Australian mining stocks is less than 12% in the past ten years. Let ??µ be the true average return, which is the correct set of hypotheses to test statement?
Is seed a biological asset-true or false : A biological asset that is previously measured at fair value less costs to sell shall be measured at fair value less costs to sell unit disposed.-TRUE OR FALSE
Current market value of the company equity : A company has its debt structured as a single zero-coupon bond that matures in 5 years. The face value of the debt outstanding is $40 million and the current va
Calculate the price an investor would pay to obtain : Calculate the price an investor would pay to obtain $50,000 of par value in this bond. Coupon Rate: 4.5%, semi-annual payments

Reviews

Write a Review

Programming Languages Questions & Answers

  Write a haskell program to calculates a balanced partition

Write a program in Haskell which calculates a balanced partition of N items where each item has a value between 0 and K such that the difference b/w the sum of the values of first partition,

  Create an application to run in the amazon ec2 service

In this project you will create an application to run in the Amazon EC2 service and you will also create a client that can run on local machine and access your application.

  Explain the process to develop a web page locally

Explain the process to develop a Web page locally

  Write functions

These 14 questions covers java class, Array, link list , generic class.

  Programming assignment

If the user wants to read the input from a file, then the output will also go into a different file . If the user wants to read the input interactively, then the output will go to the screen .

  Write a prolog program using swi proglog

Write a Prolog program using swi proglog

  Create a custom application using eclipse

Create a custom Application Using Eclipse Android Development

  Create a application using the mvc architecture

create a application using the MVC architecture. No scripting elements are allowed in JSP pages.

  Develops bespoke solutions for the rubber industry

Develops bespoke solutions for the rubber industry

  Design a program that models the worms behavior

Design a program that models the worm's behavior.

  Writing a class

Build a class for a type called Fraction

  Design a program that assigns seats on an airplane

Write a program that allows an instructor to keep a grade book and also design and implement a program that assigns seats on an airplane.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd