Posts

Showing posts from February, 2023

Mean Stack development Lab Topics

 1.Include the Metadata element in Homepage.html for providing description as "IEKart's is an          online shopping website that sells goods in retail. This company deals with various categories like           Electronics, Clothing, Accessories etc.  Enhance the Homepage.html of IEKart's Shopping Application by adding appropriate sectioning           elements.  Link "Login", "SignUp" and "Track order" to "Login.html", "SignUp.html" and "Track.html" page          respectively. Bookmark each category to its details of IEKart's Shopping application.  Add the © symbol in the Home page footer of IEKart's Shopping application   Add the global attributes such as contenteditable, spellcheck, id etc. to enhance the Signup Page           functionality of IEKart's Shopping application. 2.Enhance the details page of IEKart's...

Lab Topics

                                                   DISTRIBUTED TECHNOLOGIES-MONGODB  Topic  followed by dates for Sec-c (Mondays) and then for Sec-A,B(Wednesdays) 1.  Intoduction to MongoDB   02/01, 04/01 2. MongoDB Architecture       30/01, 18/01 3.Student Document Database. InsertOne, Find, Projection etc Commands  06/02, 01/02  4.. Employee Document Database. Insert Many, Find, Projection, Update, Set, Push, Pull etc                    Commands  13/02, 08/02 5.  Update data in MongoDB  20/02 , 15/02  6. Aggregations: Introduction, Bank Transactions Document Database. Credit, Debit Transactions            Count, Summation of Amount group by Cr and Dr, Summation of Amount and fee Group ...

AIDS Meanstack Dev: Lab4 5a

Create an array of objects having movie details. The object should include the movie name, starring, language, and ratings. Render the details of movies on the page using the array.   <html> <body>     <h1>Movie Details</h1>     <script>         function Movie() { let movies = [ { "name":"Sir", "starring":["dhanush", "xyz", "saikumar"], "language":"telugu", "rating": 4.0 }, { "name":"Thegimpu", "starring":["Ajith", "xyza", "saikumar11"], "language":"tamil", "rating": 4.2 } ]   movies.forEach(movie => {  alert(movie['name']);  alert("starring"+movie['starring']);  alert(movie['language']);  alert("rating"+movie['rating']); }); /* var and let are both...

AIDS Meanstack Dev: Lab3

 Write a JavaScript program to find the area of a circle using radius (var and let - reassign and observe the difference with var and let) and PI (const) <html> <body>     <h1>Area of a circle</h1>     Enter the radius for your circle:     <input type="text" id="txtRadius" />     <input type="button" value="Calculate" onClick=CalculateArea() />     <script>         function CalculateArea() { /* var and let are both used for variable declaration in javascript but the difference between them is that var is function scoped and let is block scoped. Variable declared by let cannot be redeclared and must be declared before use whereas variables declared with var keyword are hoisted.*/            // var radius = document.getElementById('txtRadius').value;            let radius = document.getElementById('txtRadius').val...

Meanstack Dev Lab2: AIDS

 Module Name: Creating Form Elements, Color and Date Pickers, Select and Datalist  Elements <html>    <head>       <title>IEKart-Electronics</title>    </head>    <body> <form action = "new.js" method = "post">      <p>        <label for = "firstname">first name: </label>        <input type = "text" id = "firstname" required /><br />            <label for = "lastname">last name: </label>        <input type = "text" id = "lastname" required /><br />        <label for = "dob">date of birth: </label>        <input type = "date" id = "dob"><br />      <label for = "state">state: </label>       <select name="states"...

AIDS Meanstack Dev: Lab2

 Module Name: Creating Table Elements, Table Elements : Colspan/Rowspan Attributes, border, cellspacing, cellpadding attributes <!DOCTYPE html> <html>    <head>       <title>IEKart-Electronics</title>    </head>    <body>       <table border = "5">          <tr>             <td>Row 1, Column 1</td>             <td>Row 1, Column 2</td>          </tr>                    <tr>             <td>Row 2, Column 1</td>             <td>Row 2, Column 2</td>          </tr>       </table>           </body> </html>...

AIDS Meanstack Dev: Lab3

 <!DOCTYPE HTML> <html>    <body>    <p>          <video  width = "300" height = "200" controls autoplay>          <source src = "foo.ogg" type ="video/ogg" />          <source src = "foo.mp4" type = "video/mp4" />          Your browser does not support the <video> element.       </video> </p> <p>  <audio controls autoplay>          <source src = "audio.ogg" type = "audio/ogg" />          <source src = "audio.wav" type = "audio/wav" />          Your browser does not support the <audio> element.       </audio>     </p>   <p> <iframe src="http://google.com" title="google search engine"> </iframe> <iframe src="htt...

MongoDB Lab5: Indexes

Indexes support the efficient resolution of queries. Without indexes, MongoDB must scan every document of a collection to select those documents that match the query statement. This scan is highly inefficient and require MongoDB to process a large volume of data. Indexes are special data structures, that store a small portion of the data set in an easy-to-traverse form. The index stores the value of a specific field or set of fields, ordered by the value of the field as specified in the index. The createIndex() Method To create an index, you need to use createIndex() method of MongoDB. Syntax The basic syntax of  createIndex()  method is as follows(). >db.COLLECTION_NAME.createIndex({name:1}) Here key is the name of the field on which you want to create index and 1 is for ascending order. To create index in descending order you need to use -1. Example >db.mycol.cretaeIndex({"title":1}) {     "createdCOllectionAUtomatically" : false,     "numIndexesBef...
 MongoDB Lab3  1.       If you want to check your databases list, use the command show dbs   O/p: test> show dbs admin        40.00 KiB config       60.00 KiB employees    56.00 KiB local        72.00 KiB student      72.00 KiB test        112.00 KiB 2.       If you want to delete new database   mydb, then dropDatabase() command would be as follows: test> use mydb switched to dbmydb mydb>db.dropDatabase() { ok: 1, dropped: 'mydb' }                Use showdbs to check 3.       To display collections in current database student> show collections col1   Aggregations Aggregations operations process data records and return compute...