Skip to content

Commit 742a84d

Browse files
What is node js
1 parent 561b1f1 commit 742a84d

File tree

14 files changed

+232
-0
lines changed

14 files changed

+232
-0
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Create a Node.js application
Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
# Explore Azure storage services
2+
3+
Azure Storage provides various services to meet different data storage and management needs. Here's an overview of the main Azure Storage services:
4+
5+
## Azure Blob Storage:
6+
7+
Overview: Blob Storage is designed for storing massive amounts of unstructured data, such as documents, images, videos, and logs.
8+
Use Cases: Content delivery, backups, data archiving, media storage.
9+
Key Features: Supports hot, cool, and archive storage tiers, hierarchical namespace, and versioning.
10+
11+
## Azure File Storage:
12+
13+
Overview: Azure Files offers fully managed file shares in the cloud, accessible via the Server Message Block (SMB) protocol.
14+
Use Cases: File sharing, application data sharing, and cloud-based file servers.
15+
Key Features: Fully managed, supports SMB and REST APIs, can be mounted on Windows, Linux, and macOS.
16+
17+
## Azure Table Storage:
18+
19+
Overview: A NoSQL data store that provides key/attribute storage with a schema-less design, suitable for semi-structured data.
20+
Use Cases: Scalable applications, quick and flexible data storage.
21+
Key Features: NoSQL, automatic indexing, low-latency access to large amounts of data.
22+
23+
## Azure Queue Storage:
24+
25+
Overview: A simple message-queue service that enables communication between components of cloud services.
26+
Use Cases: Decoupling of application components, workload scaling.
27+
Key Features: Message queuing, reliable and asynchronous communication.
28+
29+
## Azure Disk Storage:
30+
31+
Overview: Managed disks provide scalable and high-performance block storage for Azure Virtual Machines.
32+
Use Cases: Virtual machine storage, database storage.
33+
Key Features: Managed disks, different performance tiers, snapshots, and disk encryption.
34+
35+
## Azure Data Lake Storage:
36+
37+
Overview: A scalable and secure data lake that allows analytics on large amounts of data with hierarchical namespace and fine-grained access control.
38+
Use Cases: Big data analytics, data warehousing, machine learning.
39+
Key Features: Hierarchical namespace, fine-grained access control, integration with Azure Analytics services.
40+
41+
## Azure Managed Disks for Virtual Machines:
42+
43+
Overview: Managed Disks simplify disk management for Azure Virtual Machines by handling the storage account configuration and disk management tasks.
44+
Use Cases: Virtual machine storage, simplified disk management.
45+
Key Features: Managed disks, different performance tiers, snapshots.
46+
47+
## Azure Backup:
48+
49+
Overview: Azure Backup provides scalable and secure offsite backup for on-premises and cloud-based workloads.
50+
Use Cases: Data protection, backup and restore of virtual machines, databases, and files.
51+
Key Features: Centralized management, long-term retention, backup for various workloads.
52+
53+
## Azure Blob Indexer (Preview):
54+
55+
Overview: Blob Indexer is designed to make Azure Blob Storage an efficient data lake solution by providing indexing capabilities for metadata and content search.
56+
Use Cases: Enhanced search capabilities for blob storage.
57+
Key Features: Indexing for metadata and content, integrated with Azure Synapse Analytics.
58+
59+
## Azure Static Web Apps:
60+
61+
Overview: Azure Static Web Apps allow hosting static web applications directly from Azure Storage with built-in CI/CD support.
62+
Use Cases: Hosting static websites, SPA (Single Page Applications).
63+
Key Features: Integrated CI/CD, custom domains, global distribution.
64+
These services can be used individually or in combination to build scalable, flexible, and highly available storage solutions in the Azure cloud. Choose the service(s) that best fit your specific application and data requirements.
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# Connect an app to Azure Storage
2+
3+
To connect an application to Azure Storage, you'll typically need to follow these general steps. The specific implementation details may vary based on the programming language and framework used in your application.
4+
5+
## Prerequisites:
6+
7+
### Azure Storage Account:
8+
9+
Ensure you have an Azure Storage account created. If not, refer to the previous instructions on how to create an Azure Storage account.
10+
11+
### Access Keys or Shared Access Signature (SAS):
12+
13+
Retrieve the access keys or generate a Shared Access Signature (SAS) token for your Azure Storage account. These credentials will be used by your application to authenticate and access the storage account.
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
// async/await asynchronous example
2+
3+
const fs = require("fs").promises;
4+
5+
const filePath = "./file.txt";
6+
7+
// `async` before the parent function
8+
async function readFileAsync() {
9+
try {
10+
// `await` before the async method
11+
const data = await fs.readFile(filePath, "utf-8");
12+
console.log(data);
13+
console.log("Done!");
14+
} catch (error) {
15+
console.log("An error occurred...: ", error);
16+
}
17+
}
18+
19+
readFileAsync()
20+
.then(() => {
21+
console.log("Success!");
22+
})
23+
.catch((error) => {
24+
console.log("An error occurred...: ", error);
25+
});
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# How Node.js works
2+
3+
Types of tasks
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
const https = require("https");
2+
3+
console.log(`start`);
4+
5+
try {
6+
const response = await https.get("https://nodejs.org/dist/index.json");
7+
8+
console.log(res.statusCode);
9+
} catch (error) {
10+
console.log(error);
11+
}
12+
13+
console.log(`end`);
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
console.log("Hello World, from a script file.");

Intoduction to Node.js/How Node.js works/hello-world/node_modules/.package-lock.json

Lines changed: 12 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Intoduction to Node.js/How Node.js works/hello-world/node_modules/https/package.json

Lines changed: 15 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Intoduction to Node.js/How Node.js works/hello-world/package-lock.json

Lines changed: 17 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)