Skip to content

Commit

Permalink
first commit
Browse files Browse the repository at this point in the history
  • Loading branch information
finishy1995 committed May 22, 2024
0 parents commit 77cb571
Show file tree
Hide file tree
Showing 67 changed files with 16,380 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Deploy to GitHub Pages

on:
push:
branches:
- main
# Review gh actions docs if you want to further define triggers, paths, etc
# https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#on

jobs:
deploy:
name: Deploy to GitHub Pages
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
with:
node-version: 18
cache: npm

- name: Install dependencies
run: npm ci
- name: Install Search Pluin
run: npm install @cmfcmf/docusaurus-search-local
- name: Build website
run: npm run build

# Popular action to deploy to GitHub Pages:
# Docs: https://github.com/peaceiris/actions-gh-pages#%EF%B8%8F-docusaurus
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GH_TOKEN }}
# Build output to publish to the `gh-pages` branch:
publish_dir: ./build

20 changes: 20 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Dependencies
/node_modules

# Production
/build

# Generated files
.docusaurus
.cache-loader

# Misc
.DS_Store
.env.local
.env.development.local
.env.test.local
.env.production.local

npm-debug.log*
yarn-debug.log*
yarn-error.log*
190 changes: 190 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,190 @@
Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/

TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION

1. Definitions.

"License" shall mean the terms and conditions for use, reproduction,
and distribution as defined by Sections 1 through 9 of this document.

"Licensor" shall mean the copyright owner or entity authorized by
the copyright owner that is granting the License.

"Legal Entity" shall mean the union of the acting entity and all
other entities that control, are controlled by, or are under common
control with that entity. For the purposes of this definition,
"control" means (i) the power, direct or indirect, to cause the
direction or management of such entity, whether by contract or
otherwise, or (ii) ownership of fifty percent (50%) or more of the
outstanding shares, or (iii) beneficial ownership of such entity.

"You" (or "Your") shall mean an individual or Legal Entity
exercising permissions granted by this License.

"Source" form shall mean the preferred form for making modifications,
including but not limited to software source code, documentation
source, and configuration files.

"Object" form shall mean any form resulting from mechanical
transformation or translation of a Source form, including but
not limited to compiled object code, generated documentation,
and conversions to other media types.

"Work" shall mean the work of authorship, whether in Source or
Object form, made available under the License, as indicated by a
copyright notice that is included in or attached to the work
(an example is provided in the Appendix below).

"Derivative Works" shall mean any work, whether in Source or Object
form, that is based on (or derived from) the Work and for which the
editorial revisions, annotations, elaborations, or other modifications
represent, as a whole, an original work of authorship. For the purposes
of this License, Derivative Works shall not include works that remain
separable from, or merely link (or bind by name) to the interfaces of,
the Work and Derivative Works thereof.

"Contribution" shall mean any work of authorship, including
the original version of the Work and any modifications or additions
to that Work or Derivative Works thereof, that is intentionally
submitted to Licensor for inclusion in the Work by the copyright owner
or by an individual or Legal Entity authorized to submit on behalf of
the copyright owner. For the purposes of this definition, "submitted"
means any form of electronic, verbal, or written communication sent
to the Licensor or its representatives, including but not limited to
communication on electronic mailing lists, source code control systems,
and issue tracking systems that are managed by, or on behalf of, the
Licensor for the purpose of discussing and improving the Work, but
excluding communication that is conspicuously marked or otherwise
designated in writing by the copyright owner as "Not a Contribution."

"Contributor" shall mean Licensor and any individual or Legal Entity
on behalf of whom a Contribution has been received by Licensor and
subsequently incorporated within the Work.

2. Grant of Copyright License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
copyright license to reproduce, prepare Derivative Works of,
publicly display, publicly perform, sublicense, and distribute the
Work and such Derivative Works in Source or Object form.

3. Grant of Patent License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
(except as stated in this section) patent license to make, have made,
use, offer to sell, sell, import, and otherwise transfer the Work,
where such license applies only to those patent claims licensable
by such Contributor that are necessarily infringed by their
Contribution(s) alone or by combination of their Contribution(s)
with the Work to which such Contribution(s) was submitted. If You
institute patent litigation against any entity (including a
cross-claim or counterclaim in a lawsuit) alleging that the Work
or a Contribution incorporated within the Work constitutes direct
or contributory patent infringement, then any patent licenses
granted to You under this License for that Work shall terminate
as of the date such litigation is filed.

4. Redistribution. You may reproduce and distribute copies of the
Work or Derivative Works thereof in any medium, with or without
modifications, and in Source or Object form, provided that You
meet the following conditions:

(a) You must give any other recipients of the Work or
Derivative Works a copy of this License; and

(b) You must cause any modified files to carry prominent notices
stating that You changed the files; and

(c) You must retain, in the Source form of any Derivative Works
that You distribute, all copyright, patent, trademark, and
attribution notices from the Source form of the Work,
excluding those notices that do not pertain to any part of
the Derivative Works; and

(d) If the Work includes a "NOTICE" text file as part of its
distribution, then any Derivative Works that You distribute must
include a readable copy of the attribution notices contained
within such NOTICE file, excluding those notices that do not
pertain to any part of the Derivative Works, in at least one
of the following places: within a NOTICE text file distributed
as part of the Derivative Works; within the Source form or
documentation, if provided along with the Derivative Works; or,
within a display generated by the Derivative Works, if and
wherever such third-party notices normally appear. The contents
of the NOTICE file are for informational purposes only and
do not modify the License. You may add Your own attribution
notices within Derivative Works that You distribute, alongside
or as an addendum to the NOTICE text from the Work, provided
that such additional attribution notices cannot be construed
as modifying the License.

You may add Your own copyright statement to Your modifications and
may provide additional or different license terms and conditions
for use, reproduction, or distribution of Your modifications, or
for any such Derivative Works as a whole, provided Your use,
reproduction, and distribution of the Work otherwise complies with
the conditions stated in this License.

5. Submission of Contributions. Unless You explicitly state otherwise,
any Contribution intentionally submitted for inclusion in the Work
by You to the Licensor shall be under the terms and conditions of
this License, without any additional terms or conditions.
Notwithstanding the above, nothing herein shall supersede or modify
the terms of any separate license agreement you may have executed
with Licensor regarding such Contributions.

6. Trademarks. This License does not grant permission to use the trade
names, trademarks, service marks, or product names of the Licensor,
except as required for reasonable and customary use in describing the
origin of the Work and reproducing the content of the NOTICE file.

7. Disclaimer of Warranty. Unless required by applicable law or
agreed to in writing, Licensor provides the Work (and each
Contributor provides its Contributions) on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
implied, including, without limitation, any warranties or conditions
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
PARTICULAR PURPOSE. You are solely responsible for determining the
appropriateness of using or redistributing the Work and assume any
risks associated with Your exercise of permissions under this License.

8. Limitation of Liability. In no event and under no legal theory,
whether in tort (including negligence), contract, or otherwise,
unless required by applicable law (such as deliberate and grossly
negligent acts) or agreed to in writing, shall any Contributor be
liable to You for damages, including any direct, indirect, special,
incidental, or consequential damages of any character arising as a
result of this License or out of the use or inability to use the
Work (including but not limited to damages for loss of goodwill,
work stoppage, computer failure or malfunction, or any and all
other commercial damages or losses), even if such Contributor
has been advised of the possibility of such damages.

9. Accepting Warranty or Additional Liability. While redistributing
the Work or Derivative Works thereof, You may choose to offer,
and charge a fee for, acceptance of support, warranty, indemnity,
or other liability obligations and/or rights consistent with this
License. However, in accepting such obligations, You may act only
on Your own behalf and on Your sole responsibility, not on behalf
of any other Contributor, and only if You agree to indemnify,
defend, and hold each Contributor harmless for any liability
incurred by, or claims asserted against, such Contributor by reason
of your accepting any such warranty or additional liability.

END OF TERMS AND CONDITIONS

Copyright 2023 MongoDB Inc.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Developer Days Intro Lab

This is the Intro Lab used during Developer Days to set up a MongoDB Atlas Account and get some sample data in.

You can access the online version on the Intro Lab [here](https://mongodb-developer.github.io/intro-lab/)

This website is built using [Docusaurus 2](https://docusaurus.io/), a modern static website generator. We have a lab on how to use it available on https://mongodb-developer.github.io/docusaurus-workshop/.



3 changes: 3 additions & 0 deletions babel.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module.exports = {
presets: [require.resolve('@docusaurus/core/lib/babel/preset')],
};
61 changes: 61 additions & 0 deletions docs/10-intro.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
---
sidebar_position: 10
---
# 介绍

|实验目标|为其他动手实验准备好您的环境|
|-|-|
|先决条件|一个网页浏览器 - 请参阅[要求](#最低硬件要求)|
|完成时间|10-15 分钟|

这些实验是由我们出色的导师之一来呈现的,但您也可以自行完成。

在导航栏中,您会注意到一些图标。它们的含义如下:

|图标|含义|
|-|:-|
|📘|讲义材料 - 如果您正在跟随导师主导的课程,他们可能已经覆盖了这些材料。|
|👐|动手内容 - 准备好进行一些实际操作。您应该按照这些步骤进行。|
|🦸|高级内容 - 这些内容在实验期间未覆盖,但如果您有兴趣了解更多,可以查看。|

# 要求

为了确保您在我们的课程中获得最佳体验,请查看参加我们研讨会和活动所需的最低硬件要求。这些要求对于运行现代浏览器和云端应用程序至关重要。

## 最低硬件要求:

### 操作系统:

- Windows: Windows 10(版本 1903 或更高)
- macOS: macOS Catalina(10.15)或更高

### 处理器:

- Intel: Core i5 或更好
- AMD: Ryzen 5 或同等处理器
- Apple Silicon: M1 芯片或更高

### 内存:
- 最低 RAM: 8 GB
- 推荐 RAM: 16 GB 或更多,以便更顺畅地进行多任务处理和更高要求的应用程序。

### 存储:

- 至少 256 GB 的可用空间,最好是 SSD,以实现更快的读写速度。

### 互联网连接:

- 稳定的高速互联网连接(最低 15 Mbps)以优化使用云端应用程序的性能。

## 建议:

- 确保您的系统软件是最新的,以便利用最新的功能和安全增强。
- 考虑使用至少 1080p 分辨率的显示器,以在演示和动手课程中获得更清晰、更详细的视觉体验。

## 其他要求:

* 安装 Google Chrome。
* 拥有 GitHub 账户。
* 确保您的笔记本电脑可以访问 GitHub 和 GitHub Codespaces。

满足这些硬件规格,您将能充分参与我们的开发者日内容。我们期待与所有参与者一起度过一个激动人心且富有成效的活动!
26 changes: 26 additions & 0 deletions docs/20-mongodb-atlas/1-what-is-mongodb.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# 📘 什么是 MongoDB Atlas

MongoDB 有多种不同的版本。最常见的是您可以下载并安装在计算机上的开源版本。然而,还有一个基于云的 MongoDB 版本,您可以使用。这种云服务被称为 MongoDB Atlas。

在这个实验中,您将学习如何创建 MongoDB Atlas 账户以及如何创建一个集群。您还将学习如何从在云中运行的应用程序连接到您的集群。

## 为什么使用 MongoDB Atlas?

使用 MongoDB Atlas 有很多理由,但最主要的是,MongoDB Atlas 是开始使用 MongoDB 最简单的方法。

除此之外,MongoDB Atlas 提供了许多您自己设置时需要配置的功能。例如,MongoDB Atlas 提供了:
* Atlas Search - 一个强大的搜索引擎,允许您搜索数据
* Atlas Data Federation - 一种查询存储在 AWS S3 或 Google Cloud Storage 中的数据的方法
* Atlas Vector Search - 一种使用 AI 增强数据的方法

## MongoDB Atlas 部署在哪里?

您可以选择 MongoDB Atlas 集群部署的云提供商和区域。MongoDB Atlas 可用于所有主要的云提供商,包括 AWS、Azure 和 Google Cloud。

它还在世界许多地区可用。您可以选择离您最近的区域或离您的用户最近的区域。

您还可以通过从您选择的云提供商市场直接安装 MongoDB Atlas,从而简化 MongoDB Atlas 集群的所有计费和管理。

## MongoDB Atlas 的费用是多少?

MongoDB Atlas 对于学习和开发是免费的。您可以创建一个免费集群,并无限期使用它。您也可以创建任意数量的免费集群。
38 changes: 38 additions & 0 deletions docs/20-mongodb-atlas/2-create-account.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
import Link from "@site/src/components/Link";
import Screenshot from "@site/src/components/Screenshot";

# 👐 创建您的账户

要使用 MongoDB Atlas,您需要首先创建一个账户。如果您已有账户,可以跳过此步骤。

## 注册 MongoDB Atlas

首先访问 <Link to="http://mongodb.com/try">MongoDB 网站</Link> 并创建您的账户。

:::tip
创建 MongoDB Atlas 账户是免费的,不需要信用卡。
:::

您将看到如下表单。

<Screenshot url="https://cloud.mongodb.com" src={"img/screenshots/20-mongodb-atlas/2-create-account/1-form.png"} alt="账户创建表单" />

:::info
如果您在活动中进行此实验,请使用您注册活动时的相同电子邮件地址。
:::

填写表单并点击“Create Your Atlas Account”按钮。

### 验证您的电子邮件地址

您将收到来自 MongoDB 的电子邮件,要求您验证您的电子邮件地址。点击邮件中的链接以验证您的电子邮件地址。

<Screenshot url="https://cloud.mongodb.com" src={"img/screenshots/20-mongodb-atlas/2-create-account/2-verify-email.png"} alt="验证您的电子邮件地址" />

:::caution
如果在两分钟内没有收到邮件,请检查您的垃圾邮件文件夹。
:::

### 完成注册流程

您将被重定向到 MongoDB Atlas 的注册向导。填写表单并点击“Finish”以继续。
Loading

0 comments on commit 77cb571

Please sign in to comment.