ITR - REPORT (1) (AutoRecovered)
ITR - REPORT (1) (AutoRecovered)
Weekly Diary
For
Industrial Training
Academic Year:-_____________
Name of Program:-____________________________________
Name of Student:- _____________________________________
Enrollment No:-_______________________________________
Name of Industry:-____________________________________
What is Full Stack Development?
Front-end Languages
Lodash,
Moment.js,
And Axios.
Again, choosing a suitable library for the job is essential, as
each has unique capabilities.
Back-end Languages
Popular Stacks
Advantages
Disadvantages
What is HTML?
Okay, so this is the only bit of mandatory theory. In order to
begin to write HTML, it helps if you know what you are writing.
HTML is the language in which most websites are written.
HTML is used to create pages and make them functional.
The code used to make them visually appealing is known as
CSS and we shall focus on this in a later tutorial. For now, we
will focus on teaching you how to build rather than design.
The History of HTML
HTML was first created by Tim Berners-Lee, Robert Cailliau,
and others starting in 1989. It stands for Hyper Text Markup
Language.
Hypertext means that the document contains links that allow
the reader to jump to other places in the document or to
another document altogether. The latest version is known
as HTML5.
A Markup Language is a way that computers speak to each
other to control how text is processed and presented. To do this
HTML uses two things: tags and attributes.
<meta>
This is where information about the document is stored:
character encoding, name (page context), description.
<head>
<title>My First Webpage</title>
<meta charset="UTF-8">
<meta name="description" content="This field contains
information about your page. It is usually around two
sentences long.">.
<meta name="author" content="Conor Sheils">
</header>
Adding Content
Next, we will make <body> tag.
The HTML <body> is where we add the content which is
designed for viewing by human eyes.
This includes text, images, tables, forms and everything
else that we see on the internet each day.
How to Add HTML Headings To Your Web Page
In HTML, headings are written in the following elements:
<h1>
o <h2>
<h3>
<h4>
<h5>
<h6>
<h1>Welcome to My Page</h1>
And hit save. We will save this file as “index.html” in a new folder called “my webpage.”
Yo
u can check the file type of an image by right-clicking the item
and selecting ‘Properties’.
You can also define borders and other styles around the image
using the class attribute. However, we shall cover this in a later
tutorial.
The file types generally used for image files online
are: .jpg, .png, and (less and less) .gif.
Alt text is important to ensure that your site is ranked
correctly on search sites and also for visually impaired visitors
to your site.
The <img> tag normally is written as follows:
<img src="yourimage.jpg" alt="Describe the image" height="X"
width="X">
Week 4
Worked on backend development using Node.js and Express.
1. Set Up MongoDB
You can use MongoDB Atlas, a cloud-based service that
simplifies deployment and management. Sign up for an account
on MongoDB Atlas and create a new cluster1.
2. Install MongoDB Driver
In your Node.js project, install the MongoDB driver:
npm install mongodb
3. Connect to MongoDB
Create a file named db.js and add the following code to connect
to your MongoDB database:
JavaScript
const { MongoClient } = require('mongodb');
const uri = "your_mongodb_connection_string";
module.exports = connectDB;
4. Use the Database in Your Application
In your main application file (e.g., server.js), use
the connectDB function to interact with your database:
JavaScript
const express = require('express');
const connectDB = require('./db');
app.use(express.json());
app.listen(port, () => {
console.log(`Server is running on http://localhost:${port}`);
});
AI-generated code. Review and use carefully. More info on
FAQ.
5. Perform CRUD Operations
You can now perform Create, Read, Update, and Delete
(CRUD) operations on your MongoDB collections. Here’s an
example of inserting a document:
JavaScript
app.post('/add', async (req, res) => {
const db = await connectDB();
const collection = db.collection('mycollection');
const result = await collection.insertOne(req.body);
res.send(result);
});
Week 6
Debugged and tested the application & Deployed the
application on a cloud platform
JavaScript
JavaScript
try {
// Code that might throw an error
} catch (error) {
console.error('Error:', error);
}
2. Testing:
eb create
eb deploy
Debugging and Testing the Application
1. Debugging:
JavaScript
JavaScript
try {
// Code that might throw an error
} catch (error) {
console.error('Error:', error);
}
2. Testing:
JavaScript
Academic Year:-
Name of Industry:-_________________________________________________________________
Marks (05
marks for
each week) PA Marks
PA Marks
by mentor by Total
by Mentor
Sr. Name of and Industry Marks
En. No. Faculty
No. Student industry Supervisor
supervisor
jointly
Out of 30 Out of 25 Out of 20 Out of 75
(A) (B) (C) (A+B+C)
Signature Signature
Name and Designation of Mentor Faculty Name and Designation of Industry Supervisor
Format No 05
Signature Signature
Name of the Internal / Mentor Name of the External Examiner
Industry Personnel