WAD Sample Manual
WAD Sample Manual
WAD Sample Manual
COURSE OBJECTIVES:
COURSE OUTCOMES:
Assignment 1:
a. Create a responsive web page which shows the ecommerce/college/exam admin dashboard
with sidebar and statistics in cards using HTML, CSS and Bootstrap.
Theory:
I. HTML
<!DOCTYPE html>
<html>
<head>
<title>Page Title</title>
</head>
<body>
</body>
</html>
II. CSS
<!DOCTYPE html>
<html>
<head>
<style>
body {
background-color: lightblue;
}
h1 {
color: white;
text-align: center;
}
p{
font-family: verdana;
font-size: 20px;
}
</style>
</head>
<body>
</body>
</html>
MET’S, Bhujbal Knowledge City, Institute of Engineering
Department of Information Technology
III. Bootstrap
Bootstrap is a free and open-source tool collection for creating responsive
websites and web applications. It is the most popular HTML, CSS, and JavaScript framework
for developing responsive, mobile-first websites. It solves many problems which we had once,
one of which is the cross-browser compatibility issue. Nowadays, the websites are perfect for
all the browsers (IE, Firefox, and Chrome) and for all sizes of screens (Desktop, Tablets,
Phablets, and Phones).
Why Bootstrap?
• Faster and Easier Web Development.
• It creates Platform-independent web pages.
• It creates Responsive Web-pages.
• It is designed to be responsive to mobile devices too.
• It is Free! Available on www.getbootstrap.com
• Simple Example
<!DOCTYPE html>
<html lang="en">
<head>
<title>Bootstrap Example</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/css/
bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.0/jquery.min.js"></sc
ript>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/js/bootstrap.min.js"
></script>
</head>
<body>
<div class="container">
<h1>My First Bootstrap Page</h1>
<p>This is some text.</p>
</div>
</body>
</html>
MET’S, Bhujbal Knowledge City, Institute of Engineering
Department of Information Technology
Bootstrap CDN
b. Write a JavaScript Program to get the user registration data and push to array/local
storage with AJAX POST method and data list in new page.
AJAX stands for Asynchronous JavaScript and XML. AJAX is a new technique for creating
better, faster, and more interactive web applications with the help of XML, HTML, CSS, and
Java Script.
Ajax uses XHTML for content, CSS for presentation, along with Document Object Model and
JavaScript for dynamic content display.
Conventional web applications transmit information to and from the sever using synchronous
requests. It means you fill out a form, hit submit, and get directed to a new page with new
information from the server.
With AJAX, when you hit submit, JavaScript will make a request to the server, interpret the
results, and update the current screen. In the purest sense, the user would never know that
anything was even transmitted to the server. XML is commonly used as the format for
receiving server data, although any format, including plain text, can be used. AJAX is a web
browser technology independent
of web server software.
A user can continue to use the application while the client program requests information from
the server in the background. Intuitive and natural user interaction. Clicking is not required,
mouse movement is a sufficient event trigger. Data-driven as opposed to page-driven.
Property Description
200: "OK"
status 403: "Forbidden"
404: "Page not found"
Property Description
onreadystatechange Determines the function called when the objects readyState changes.
responseXML Data returned from the server as an XML document object (read-only).
Method Description
send(content) Sends the data for a POST request and starts the
request, if GET is used you hould call send(null).
Sample code:
ajaxcommunication.html
<html>
<body>
<div id="xyz">
Hello Friends <br>
Welcome to Pune!!!!!<br>
<button type="button" onclick="load()">
Submit
</button>
</div>
<script>
function load(){
var req=new XMLHttpRequest()
MET’S, Bhujbal Knowledge City, Institute of Engineering
Department of Information Technology
req.onreadystatechange=function() {
if(this.readyState == 4 && this.status == 200){
document.getElementById("xyz").innerHTML=this.responseText
}
}
req.open('GET','data.txt',true)
req.send()
}
</script>
</body>
</html>
Data.txt
I am enjoying learnimg JavaScript!!!!!!
Conclusion:
MET’S, Bhujbal Knowledge City, Institute of Engineering
Department of Information Technology
Assignment 2:
a. Create version control account on GitHub and using Git commands to create repository and
push your code to GitHub.
b. Create Docker Container Environment (NVIDEIA Docker or any other).
c. Create an Angular application which will do following actions: Register User, Login User,
Show User Data on Profile Component
Theory:
Part a.
1. What is Git?
Git is a popular version control system. It was created by Linus Torvalds in 2005, and has been
maintained by Junio Hamano since then.
It is used for:
4. Why Git?
5. What is GitHub
2 Command line
>git –version If Git is installed, it should show something like git
version X.Y
5 git init
Initialize Git
MET’S, Bhujbal Knowledge City, Institute of Engineering
Department of Information Technology
22
go back into GitHub and see that the repository has
been updated:
23 git fetch origin
fetch gets all the change history of a tracked
branch/repo
24 git merge origin/master
merge combines the current branch, with a specified
branch.
25 git pull origin
pull is a combination of fetch and merge
It is used to pull all changes from a remote repository
into the branch you are working on.
Part c:
1. Angular requires a current, active LTS(long term support) or maintenance LTS version
of Node.js and NPM.
install node.js https://nodejs.org/
It will automatically install NPM - node package manager
@NgModule({
declarations: [
AppComponent
],
imports: [
BrowserModule,
AppRoutingModule,
FormsModule,
],
providers: [],
bootstrap: [AppComponent]
})
export class AppModule { }
Open app.component.html
Write html code for form (representative code is mentioned here, modify for multiple inputs)
MET’S, Bhujbal Knowledge City, Institute of Engineering
Department of Information Technology
<h1>Simple Form</h1>
<form #simpleForm = "ngForm" (ngSubmit) = "getValues(simpleForm.value)">
<input type ="text" ngModel name = "user" placeholder = "Enter Name">
<br> <br>
<input type ="text" ngModel name = "age" placeholder = "Enter age">
<br> <br>
<input type ="text" ngModel name = "city" placeholder = "Enter city">
<br> <br>
<button>Get user value</button>
</form>
@Component({
selector: 'app-root',
templateUrl: './app.component.html',
styleUrls: ['./app.component.css']
})
export class AppComponent {
title = 'AngProj1';
getValues(val:any)
{
console.log(val);
}
}
build application
1. Use Angular CLI command ng serve -o to build an application.
The -o indicates to open it automatically in the default browser.
2. Use NPM command ‘npm start’ to build an application
http://localhost:4200 to see the application home page.
3.Open the terminal in VS Code from menu Terminal -> New Terminal,
and type ng serve -o command and press enter,
You can send the form contents from console to other page.
On the basis of above implementation, you can design login user, show user data.
MET’S, Bhujbal Knowledge City, Institute of Engineering
Department of Information Technology
Assignment 3:
b. Create four API using Node.JS, ExpressJS and MongoDB for CURD Operations on
assignment 2.C.
Theory:
Part a:
It is generally utilized for server applications in real-time. Node.js permits JavaScript to execute
locally on a machine or a server.
Node.js gives numerous systems to utilize. One of such structures is Express.js. It is more
valuable and mainstream than the different structures of Node.js.
Features of Node.js
• Versatility: Node is incredibly adaptable as the server reacts in a non-blocking way.
• Zero Buffering: Applications yield the measurements in enormous pieces. This gives
the advantage of ‘No buffering’ to developers.
• Network: Node.js upholds an open-source community. This is the main explanation
that numerous glorious modules have been added to Node.js applications over time.
• Occasion driven Input and output: APIs of Node.js are non-blocking, meaning that
the server won’t wait for the arrival of information from an API. Rather, it will move
to another API.
Advantages of Node.js
• Easy to learn: Nodeis quite simple for developers to utilize and learn. Learning
Node.js is less difficult than React.
• Better Performance: Node.js takes the code of JavaScript via Google’s V8
JavaScript engine. The main advantage of this process is that it complies with the
JavaScript code directly into the machine code
• Freedom: Node.js offers a lot of freedom when it comes to development. There are
generally less constraints with Node.
• Extended support for tools: Another advantage of Node.js is that developers have
more community support.
• Extensible: Node.js is known to be quite extensible. You can utilize JSON to give the
degree to trade of information between the web server and the client.
• Scalability: Node.js makes it simple to scale applications in horizontal as well as
vertical directions. The applications can be scaled even by the option of extra hubs to
the current framework.
MET’S, Bhujbal Knowledge City, Institute of Engineering
Department of Information Technology
Limitations of Node.js
Express.js
"Express is a fast, unopinionated minimalist web framework for Node.js" - official web
site: Expressjs.com
Express.js is a web application framework for Node.js. It provides various features that make
web application development fast and easy which otherwise takes more time using only
Node.js.
Express.js is based on the Node.js middleware module called connect which in turn
uses http module. So, any middleware which is based on connect will also work with
Express.js.
Advantages of Express.js
Steps :
1. Install Node.js
2. Setting up express.js
3. Structuring files
4. Creating your express server
5. Servicing your static files
6. Building your web page
7. Running your project
Open Node.js command terminal & run the following in your terminal-
Setting up express.js
Package.json
{
"name": "express-static-file-tutorial",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"start": "node index.js" // change start value as node index.js
}, // This will allow you to use the npm start command in your
terminal to launch
"keywords": [], your express server
"author": "Paul Halliday",
"license": "MIT"
}
MET’S, Bhujbal Knowledge City, Institute of Engineering
Department of Information Technology
To store your files on the client-side, create a public directory and include an index.html file
express-static-file-tutorial
|- index.js
|- public
|- index.html
Index.js
const express = require('express');
const app = express();
const PORT = 3000;
In the above example, we imported Express.js module using require() function. The express
module returns a function. This function returns an object which can be used to configure
Express application (app in the above example).
The app object includes methods for routing HTTP requests, configuring middleware,
rendering HTML views and registering a template engine.
The app.listen() function creates the Node.js web server at the specified host and port. It is
identical to Node's http.Server.listen() method. Instead of Get(), post(), put() and delete()
methods can be used.
Navigate to your index.html file in the public directory. Populate the file with body and image
elements:
[label index.html]
<html>
<head>
<title>Hello World!</title>
</head>
<body>
<h1>Hello, World!</h1>
<img src="shark.png" alt="shark"> //download & store image in public directory
</body>
</html>
(Instead of building Hello world application, building applications like student’s Registration
form/main page of website is recommended)
Conclusion
MET’S, Bhujbal Knowledge City, Institute of Engineering
Department of Information Technology
Assignment 4:
a. Create a simple Mobile Website using jQuery Mobile.
b. Deploy/Host Your web application on AWS VPC or AWS Elastic Beanstalk. Mini Project
Develop a web application using full stack development technologies in any of the following
domains:
1. Social Media
2. ecommerce
3. Restaurant
4. Medical
5. Finance
6. Education
7. Any other
Theory:
Part a:
jQuery Mobile
JQuery Mobile is a user interface framework, built on jQuery Core and used for developing
responsive websites or applications that are accessible on mobile, tablet, and desktop devices.
It uses features of both jQuery and jQueryUI to provide API features for mobile web
applications. This tutorial will teach you the basics of jQuery Mobile framework. We will also
discuss some detailed concepts related to jQuery Mobile.
Click the Stable button, which leads directly to a ZIP file containing the CSS and JQuery files,
for the latest version of jQuery mobile library. Extract the ZIP file contents to a jQuery mobile
directory.
This version contains all files including all dependencies, a large collection of demos, and
even the library's unit test suite. This version is helpful to getting started.
Conclusion:
Part b:
What is AWS?
The full form of AWS is Amazon Web Services. It is a platform that offers flexible, reliable,
scalable, easy-to-use and, cost-effective cloud computing solutions.
MET’S, Bhujbal Knowledge City, Institute of Engineering
Department of Information Technology
AWS is a comprehensive, easy to use computing platform offered Amazon. The platform is
developed with a combination of infrastructure as a service (IaaS), platform as a service (PaaS)
and packaged software as a service (SaaS) offerings.
It is a secure cloud services platform, offering compute power, database storage, content
delivery and other functionality to help businesses scale and grow.
In simple words AWS allows you to do the following things- Running web and application
servers in the cloud to host dynamic websites.
History of AWS
• 2002- AWS services launched
• 2006- Launched its cloud products
• 2012- Holds first customer event
• 2015- Reveals revenues achieved of $4.6 billion
• 2016- Surpassed $10 billon revenue target
• 2016- Release snowball and snowmobile
• 2019- Offers nearly 100 cloud services
• 2021- AWS comprises over 200 products and services
Creating an AWS Account is the first step you need to take in order to learn Amazon Web
Services.
In order to continue, click the Complete Sign Up button in the middle of the screen or on the
top right corner of the screen. You will see the below screen.
You can fill up the details as per your requirements and click Continue.
Next you will be asked to fill up your contact details such contact number, country, address
and so on. You should fill them up properly because your contact number is important for
further steps.
After filling up the details, click on the Create Account and Continue button at the bottom of
the form.
After entering the details, click on Secure Submit button. It might take a while to process the
request depending on your bank/credit card company servers.
Once you have verified successfully, you should see a screen like below:
MET’S, Bhujbal Knowledge City, Institute of Engineering
Department of Information Technology
Go for Basic Plan. It is Free of cost and great for learning purposes.
The other plans are Developer Plan and a Business Plan. But both of them are paid options.
Once you select your plan, you will see the below Welcome screen. From here on, you can
Sign in to your AWS Console.
Finally, after logging in, you should be able to see the AWS Management Console as below:
If you have reached this far, you have successfully finished Creating an AWS Account.
MET’S, Bhujbal Knowledge City, Institute of Engineering
Department of Information Technology
Deployment Steps:
Conclusion :