21-25 Case Study - WebT
21-25 Case Study - WebT
21-25 Case Study - WebT
Introduction:
In the digital age, blogging has become a ubiquitous form of expression, information
sharing, and communication. Whether it's personal journals, professional insights, or
niche interests, blogs offer individuals and organizations a platform to voice their
thoughts and engage with a wider audience.
A server-side blogging application serves as the backbone for managing this content
efficiently and securely. It provides users with the tools they need to compose, edit,
and publish blog posts, while also offering features for organizing, searching, and
interacting with published content.
2) Database: MongoDB
3) Language: JavaScript
npm init -y
This command creates a package.json file with default settings.
Create a JavaScript file (e.g., app.js) in your project folder and write your server-side
code. Here's a simple example:
app.use(bodyParser.json());
// Connect to MongoDB
title: String,
content: String,
author: String,
tags: [String]
});
// API endpoints
try {
res.json(posts);
} catch (err) {
});
req.body.title,
content: req.body.content,
author: req.body.author,
tags: req.body.tags
});
try {
res.status(201).json(newPost);
} catch (err) {
});
node app.js
Disadvantages:
Complexity
Cost:
Resource Intensive
Deployment and Maintenance
Performance Limitations
Scalability Challenges:
Vendor Lock-in
Security Vulnerabilities
Conclusion:
In conclusion, server-side blogging applications offer a robust and flexible platform
for creating, managing, and sharing blog content. While they come with certain
disadvantages, such as complexity, cost, and scalability challenges, the advantages
outweigh these drawbacks in many cases.
Group Members:
Date: 08/04/2024
Class: T.E (Computer) Sem: II Sign of Subject Teacher