Skip to content

Commit 5de3cad

Browse files
committed
add mongo/docker section and update readme
1 parent 8599f68 commit 5de3cad

17 files changed

+277
-21
lines changed

Diff for: 00-Docker-Databases/mongo/lesson-1.md renamed to JavaScript-First/00-JavaScript-DataBases/mongo/lesson-1.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# Todo List
2-
- [ ] MongoDB Exercises
2+
- [ ] Explain CRUD
3+
- [ ] MongoDB Exercises (CRUD METHODS)
34
- [ ] Publish Tutorial (this readme file)
45
- [ ] Slides
56
- [ ] Resources

Diff for: 00-Docker-Databases/mongo/readme.md renamed to JavaScript-First/00-JavaScript-DataBases/mongo/readme.md

-18
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,3 @@
1-
# Unit Todo List
2-
- [ ] MongoDB Methods
3-
- [x] db, use db
4-
- [x] Insert
5-
- [x] Find()
6-
- [ ] update() $set
7-
- [ ] update() multi
8-
- [ ] update() $push
9-
- [ ] remove()
10-
- [ ] drop()
11-
- [ ] dropDatabase()
12-
- [ ] MongoDB Express
13-
- [x] Accessing the database
14-
- [ ] Edit Documents
15-
- [ ] Publish Tutorial (this readme file)
16-
- [ ] Slides
17-
- [ ] Resources
18-
191
# Package.json is used to demostrate NPM Scripts for use with docker
202
Students should be able to:
213
* Identify the following line in the package.json file

Diff for: JavaScript-First/00-JavaScript-DataBases/readme.md

+46
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
# Docker-Databases
2+
This curriculum is designed to eliminate the problems with local development by using `docker-compose` instead of manually installing and configuring things like mySQL Pro, etc.
3+
4+
# Unit Learning Objective
5+
Readers/Students should be to:
6+
1. Explain why Docker exists and what problems it solves
7+
3. Identify and describe the ports each contain
8+
4. Compare and contrast Docker & Docker Compose
9+
5. Use Docker, Terminal & MongoExpress to teach basic mongoDB concepts
10+
6. Distinguish between the name of a docker image (mongo) and the container name (learn-mongo)
11+
7. Use NPM Scripts to store docker commands
12+
8. Explain and demonstrate C.R.U.D. methods
13+
14+
# Lessons
15+
1. [lesson 1: Why Docker?]()
16+
2. [lesson x: Why Mongo?](./mongo/lesson-1.md)
17+
18+
## Projects
19+
1. Create a docker file for a simple HTTP node.js site (ToDo App)
20+
2. Connect the docker image to mongo
21+
22+
# Unit Todo List
23+
- [ ] Interview Questions
24+
- [ ] Slides
25+
- [ ] Dockerize Node Applications
26+
- [ ] MongoDB **CRUD** Methods
27+
- [ ] Explain C.R.U.D.
28+
- [x] db, use db
29+
- [x] Insert
30+
- [x] Find()
31+
- [ ] update() $set
32+
- [ ] update() multi
33+
- [ ] update() $push
34+
- [ ] remove()
35+
- [ ] drop()
36+
- [ ] dropDatabase()
37+
- [ ] MongoDB Advanced Methods
38+
- [ ] Relationships
39+
- [ ] MongoDB Express
40+
- [x] Accessing the database
41+
- [x] Edit Documents
42+
- [ ] Securing MongoExpress ?
43+
- [ ] Publish Tutorial(s)?
44+
- [ ] Slides
45+
- [ ] Resources
46+
+226
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,226 @@
1+
:revealjs_theme: moon
2+
= asciidoc slides extension
3+
4+
== Images
5+
6+
[source, asciidoc]
7+
--
8+
image::media/morpheus.jpg[]
9+
--
10+
11+
results in:
12+
13+
image::media/morpheus.jpg[]
14+
15+
=== Background Images
16+
17+
[source, asciidoc]
18+
--
19+
image::media/background.jpg[background, size=cover]
20+
--
21+
22+
results in:
23+
24+
image::media/background.jpg[background, size=cover]
25+
26+
=== Background Gifs
27+
28+
[source, asciidoc]
29+
--
30+
image::media/suprise.gif[background, size=cover]
31+
--
32+
33+
results in:
34+
35+
image::media/suprise.gif[background, size=cover]
36+
37+
[background-video="https://sample-videos.com/video123/mp4/720/big_buck_bunny_720p_1mb.mp4",options="loop,muted"]
38+
=== Background Videos
39+
40+
[source, asciidoc]
41+
--
42+
[background-video="https://video.de/my.mp4",options="loop,muted"]
43+
--
44+
45+
== PlantUml
46+
[source, asciidoc]
47+
--
48+
[graphviz]
49+
[plantuml,alice-bob]
50+
....
51+
alice -> bob
52+
....
53+
--
54+
55+
results in:
56+
57+
[plantuml,alice-bob,svg,role=sequence]
58+
....
59+
alice -> bob
60+
....
61+
62+
=== Graphviz
63+
64+
[source, asciidoc]
65+
--
66+
[graphviz]
67+
....
68+
digraph foo {
69+
node [style=rounded]
70+
node1 [shape=box]
71+
node2 [fillcolor=yellow, style="rounded,filled", shape=diamond]
72+
node3 [shape=record, label="{ a | b | c }"]
73+
74+
node1 -> node2 -> node3
75+
}
76+
....
77+
--
78+
79+
results in:
80+
81+
[graphviz]
82+
....
83+
digraph foo {
84+
node [style=rounded]
85+
node1 [shape=box]
86+
node2 [fillcolor=yellow, style="rounded,filled", shape=diamond]
87+
node3 [shape=record, label="{ a | b | c }"]
88+
89+
node1 -> node2 -> node3
90+
}
91+
....
92+
93+
[.columns]
94+
== Column layout
95+
96+
[.column]
97+
--
98+
* **Edgar Allen Poe**
99+
* Sheri S. Tepper
100+
* Bill Bryson
101+
--
102+
103+
[.column]
104+
--
105+
Edgar Allan Poe (/poʊ/; born Edgar Poe; Ja
106+
nuary 19, 1809 – October 7, 1849) was an American writer, editor, and literary critic.
107+
--
108+
109+
[.columns]
110+
=== Columns with size
111+
[.column.is-one-third]
112+
--
113+
* **Kotlin**
114+
* Java
115+
* Scala
116+
--
117+
118+
[.column]
119+
--
120+
Programming language for Android, mobile cross-platform
121+
and web development, server-side, native,
122+
and data science. Open source forever Github.
123+
--
124+
125+
== Lists
126+
127+
[source, asciidoc]
128+
--
129+
* Im
130+
* a
131+
* List
132+
--
133+
134+
results in:
135+
136+
* Im
137+
* a
138+
* List
139+
140+
=== Lists
141+
142+
[source, asciidoc]
143+
--
144+
. Step 1
145+
. Step 2
146+
.. Step 2a
147+
.. Step 2b
148+
. Step 3
149+
--
150+
151+
results in:
152+
153+
. Step 1
154+
. Step 2
155+
.. Step 2a
156+
.. Step 2b
157+
. Step 3
158+
159+
=== Descriptions
160+
161+
[source, asciidoc]
162+
--
163+
first term:: definition of first term
164+
second term:: definition of second term
165+
--
166+
167+
results in:
168+
169+
first term:: definition of first term
170+
second term:: definition of second term
171+
172+
== Source Code
173+
174+
175+
[source, asciidoc]
176+
--
177+
[source, clojure]
178+
----
179+
(def lazy-fib
180+
(concat
181+
[0 1]
182+
((fn rfib [a b]
183+
(lazy-cons (+ a b) (rfib b (+ a b)))) 0 1)))
184+
----
185+
--
186+
187+
results in:
188+
189+
[source, clojure]
190+
----
191+
(def lazy-fib
192+
(concat
193+
[0 1]
194+
((fn rfib [a b]
195+
(lazy-cons (+ a b) (rfib b (+ a b)))) 0 1)))
196+
----
197+
198+
== Tables
199+
200+
[source, asciidoc]
201+
--
202+
[%header, cols=2*]
203+
|===
204+
|Character
205+
|Seen in
206+
207+
|Donald Duck
208+
|Mickey Mouse
209+
|===
210+
--
211+
212+
results in:
213+
214+
[%header, cols=2*]
215+
|===
216+
|Character
217+
|Seen in
218+
219+
|Donald Duck
220+
|Mickey Mouse
221+
|===
222+
223+
== Quotes
224+
225+
[quote, Albert Einstein]
226+
A person who never made a mistake never tried anything new.

Diff for: JavaScript-First/readme.md

+3-2
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,14 @@ Order of these chapter may change.
1414
* [Foreword](foreword.md) (by [Hans McMurdy]()
1515
* [Preface](../preface.md)
1616
* [Chapter 1: History of JavaScript](ch1.md)
17-
* [Chapter 2: Learning Terminal, NVM & Node.js](ch2.md)
18-
* [Chapter 3: JavaScript Datatypes & fundementals](ch3.md)
17+
* [Chapter x: Learning Terminal, NVM & Node.js](ch2.md)
18+
* [Chapter x: JavaScript Datatypes & fundementals](ch3.md)
1919
* [Chapter x: Debugging JavaScript](chx.md)
2020
* [Chapter x: JavaScript Runtimes: Browsers, Node & Deno](chx.md)
2121
* [Chapter x: Client VS Server JavaScript](chx.md)
2222
* [Chapter x: Client-Side: HTML, CSS, JS ](chx.md)
2323
* [Chapter x: Test Driven JavaScript](chx.md)
24+
* [Chapter x: JavaScript Databases with Docker](chx.md)
2425
* [Chapter x: JavaScript Web Components](chx.md)
2526
* [Project A: Build a WarGames Terminal App](project1.md)
2627
* [Project B: Building a Fullstack Site](project2.md)

0 commit comments

Comments
 (0)