GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — add changes :train: · DevenLu/fullstack-javascript@dd8e2fc

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • chapter2
    • chapter2.md
  • chapter3
    • chapter3.md
  • chapter4
    • chapter4.md
  • chapter5
    • chapter5.md
  • chapter8
    • chapter8.md
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎chapter2/chapter2.md‎

Copy file name to clipboardExpand all lines: chapter2/chapter2.md
+7-7Lines changed: 7 additions & 7 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ example using Brew, as well as on other systems (<http://docs.mongodb.org/manual
240240
be using only 27017. Don't forget to restart the Terminal window after
241241
adding a new path to the $PATH variable.
242242

243-
![alt](media/image12.png)
243+
![](media/image12.png)
244244

245245
***Figure 2-9.** Starting up the MongoDB server*
246246

@@ -266,7 +266,7 @@ example using Brew, as well as on other systems (<http://docs.mongodb.org/manual
266266
(Figure 2-10).
267267

268268

269-
![alt](media/image13.png)
269+
![](media/image13.png)
270270

271271
***Figure 2-10.** Running MongoDB client and storing sample data*
272272

@@ -330,7 +330,7 @@ The Node.js package already includes [Node Package
330330
Manager](https://npmjs.org) (https://npmjs.org) (NPM). We'll use NPM
331331
extensively to install Node.js modules—Figure 2-11.
332332

333-
![alt](media/image14.png)
333+
![](media/image14.png)
334334

335335
***Figure 2-11**. Node.js home page*
336336

@@ -416,7 +416,7 @@ following:
416416

417417
$ pbcopy < ~/.ssh/id_rsa.pub
418418

419-
![alt](media/image16.png)
419+
![](media/image16.png)
420420

421421
***Figure 2-12.** Generating RSA key for SSH and copying public key to clipboard*
422422

@@ -457,7 +457,7 @@ GitHub
457457
confused with such a message—just proceed by answering Yes as shown
458458
in Figure 2-13.
459459

460-
![alt](media/image17.png)
460+
![](media/image17.png)
461461

462462
***Figure 2-13.** Testing SSH connection to GitHub for the very first
463463
time*
@@ -501,7 +501,7 @@ Here are the steps to set up a Windows Azure account:
501501
5. Log in to Windows Azure Portal at <https://windows.azure.com>
502502
(Figure 2-14).
503503

504-
![alt](media/image18.png)
504+
![](media/image18.png)
505505

506506
***Figure 2-14.** Registering on Windows Azure*
507507

@@ -558,7 +558,7 @@ To set up Heroku, follow these steps:
558558
you've already created the SSH key, it will automatically upload it to
559559
the Heroku web site (Figure 2-15).
560560

561-
![alt](media/image19.png)
561+
![](media/image19.png)
562562

563563
***Figure 2-15.** The response to the successful $ heroku login command*
564564

Collapse file

‎chapter3/chapter3.md‎

Copy file name to clipboardExpand all lines: chapter3/chapter3.md
+21-21Lines changed: 21 additions & 21 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
CHAPTER 3
1+
CHAPTER 3
22
--------
33

44
Getting Data from Backend Using jQuery and Parse
@@ -105,7 +105,7 @@ another object; for example:
105105
"title": "Get your mind in shape!",
106106
"votes": 9,
107107
"comments": [
108-
"nice!",
108+
"nice!",
109109
"good link"
110110
]}, {
111111
"title": "Yet another post",
@@ -271,7 +271,7 @@ this:
271271
/01-bootstrap
272272
-index.html
273273
/css
274-
-bootstrap.css
274+
-bootstrap.css
275275
-bootstrap.min.css
276276
... (other files if needed)
277277
/js
@@ -622,14 +622,14 @@ technologies.
622622
The idea of this weather application is to show you an input field for
623623
the city name and buttons for metric and imperial systems. The first page of the Weather application has the input field for the city name and two buttons for metric and imperial forecasts (Figure 3-1).
624624

625-
![alt](media/weather-1.png)
625+
![](media/weather-1.png)
626626

627627
***Figure 3-1.** Weather App has a text input field and two button for the forecasts.*
628628

629629
Once you enter the city name and click one of the buttons, the app will fetch the
630630
forecast from OpenWeatherMap. Depending on what button is pressed, the app will fetch the forecast in metric (C) or imperial (F) degrees. For example, I like in the heart of tech innovation, San Francisco and we use imperial F degrees here so my result will be similar to the one shown in Figure 3-2. The forecast will be for several days with a 3-hour difference between predictions.
631631

632-
![alt](media/weather-2.png)
632+
![](media/weather-2.png)
633633

634634
***Figure 3-2.** Weather App show the forecast for San Francisco.*
635635

@@ -724,7 +724,7 @@ for the buttons:
724724
<input type="button" class="btn-primary btn btn-metric" value="Get forecast in metric"/>
725725
<div class="span6 offset1">
726726
<input type="button" class="btn-danger btn btn-imperial" value="Get forecast in imperial"/>
727-
</div>
727+
</div>
728728
<div class="span3">
729729
<p id="info"></p>
730730
</div>
@@ -886,17 +886,17 @@ the `index.html` file:
886886
<p>Enter city name to get the weather forecast</p>
887887
</div>
888888
<div class="span6 offset1">
889-
<input class="span4" type="text" placeholder="Enter the city name"
889+
<input class="span4" type="text" placeholder="Enter the city name"
890890
id="city-name" value=""/>
891891
</div>
892892
</div>
893-
893+
894894
<div class="row">
895895
<div class="span6 offset1">
896896
<input type="button" class="btn-primary btn btn-metric" value="Get forecast in metric"/>
897897
<div class="span6 offset1">
898898
<input type="button" class="btn-danger btn btn-imperial" value="Get forecast in imperial"/>
899-
</div>
899+
</div>
900900
</div>
901901

902902
<div class="row">
@@ -944,13 +944,13 @@ Parse
944944
Supplemental video which walks you through the implementation and
945945
demonstrates the project: <http://bit.ly/1SU8imX>.
946946

947-
[Parse](http://parseplatform.org) (http://parseplatform.org) is a platform which is a collection of server and client libraries that offer a feature-rich backend. With Parse server, developers can focus on building their client apps (web or mobile) because they'll have a substitute for a database and a server. In other words, with Parse, there's no need to build your own server or to maintain a database!
947+
[Parse](http://parseplatform.org) (http://parseplatform.org) is a platform which is a collection of server and client libraries that offer a feature-rich backend. With Parse server, developers can focus on building their client apps (web or mobile) because they'll have a substitute for a database and a server. In other words, with Parse, there's no need to build your own server or to maintain a database!
948948

949949
Parse started as means to
950950
support mobile application development. Nevertheless, with the REST API
951951
and the JavaScript SDK, Parse can be used in any web and desktop
952952
applications for data storage (and much more), making it ideal for rapid
953-
prototyping.
953+
prototyping.
954954

955955
To create a local instance of Parse simply install two npm modules: `parse-server` and `mongodb-runner` using npm:
956956

@@ -973,7 +973,7 @@ parse-server --appId APPLICATION_ID --masterKey MASTER_KEY --databaseURI mongodb
973973
```
974974

975975

976-
Create your backend Parse server application. Feel free to use your own values for `appId` and `masterKey`. Copy the Application ID, master key into the front end project files such as 03-parse-sdk/app.js because you'll need to use the exact the same value on the front end in order to be able to access your backend server. In other words, we'll need these keys to access our data collection at Parse.
976+
Create your backend Parse server application. Feel free to use your own values for `appId` and `masterKey`. Copy the Application ID, master key into the front end project files such as 03-parse-sdk/app.js because you'll need to use the exact the same value on the front end in order to be able to access your backend server. In other words, we'll need these keys to access our data collection at Parse.
977977

978978
We'll create a simple application that will save values to the
979979
collections using the Parse JavaScript SDK. The final solution is in the 03-parse-sdk folder. Our application will
@@ -1070,7 +1070,7 @@ Parse server (you define them when you start the Parse server):
10701070
10711071
```js
10721072
const parseApplicationId = 'APPLICATION_ID'
1073-
const parseJavaScriptKey = 'MASTER_KEY'
1073+
const parseJavaScriptKey = 'MASTER_KEY'
10741074
```
10751075
10761076
Because we've included the Parse JavaScript SDK library, we now have
@@ -1080,9 +1080,9 @@ keys, and create a reference to a `Test` collection:
10801080
```js
10811081
Parse.initialize(parseApplicationId, parseJavaScriptKey)
10821082
Parse.serverURL = 'http://localhost:1337/parse'
1083-
```
1083+
```
10841084
1085-
Next, create the collection object. It's like a model for our data. The name is `Test` but it can be any string value.
1085+
Next, create the collection object. It's like a model for our data. The name is `Test` but it can be any string value.
10861086
10871087
```js
10881088
const Test = Parse.Object.extend('Test')
@@ -1219,20 +1219,20 @@ you should see the proper message with the newly created ID. Parse
12191219
automatically creates object IDs and timestamps, which will be very
12201220
useful in our Message Board application.
12211221
1222-
![alt](media/parse-sdk.png)
1222+
![](media/parse-sdk.png)
12231223
12241224
***Figure 3-4.** Save button will send the object to the backend which will save it to the database.*
12251225
12261226
If you press on the Get object (green button), then you'll get all the objects which are stored in the database. How to confirm that this data is actually store in the database and won't disappear when we close the browser? Simply, close the browser and open it again. If still not convinced, use Mongo shell/REPL or Compass (Figure 3-4) to go to the local MongoDB database instance and the Test collection. There will be the data just sitting and looking at you.
12271227
12281228
1229-
![alt](media/compass.png)
1229+
![](media/compass.png)
12301230
12311231
***Figure 3-5.** Compass shows in MongoDB the data which was sent from the browser.*
12321232
12331233
Parse also has thorough instructions for the various parts of platform including its server and clients libraries: <http://docs.parseplatform.org>. You can deploy parse server into cloud or your own data center. Parse supports containers too.
12341234
1235-
With Parse we can use browser JavaScript, one command-line (parse-server) and wheyee! We can save to the database straight from the browser!!!
1235+
With Parse we can use browser JavaScript, one command-line (parse-server) and wheyee! We can save to the database straight from the browser!!!
12361236
12371237
Let’s move on to the Message Board app.
12381238
@@ -1247,12 +1247,12 @@ and a send button. We need to display a list of existing messages and be
12471247
able to submit new messages. We'll use Parse as a back end for now,
12481248
and later switch to Node.js with MongoDB.
12491249
1250-
![alt](media/board-1.png)
1250+
![](media/board-1.png)
12511251
12521252
***Figure 3-3.** Save button will send the object to the backend which will save it to the database.*
12531253
12541254
1255-
![alt](media/board-2.png)
1255+
![](media/board-2.png)
12561256
12571257
***Figure 3-4.** Get button will fetch the all objects form the backend.*
12581258
@@ -1323,7 +1323,7 @@ local `app.js`, local minified Twitter Bootstrap, and custom stylesheet
13231323
<script src="js/app.js" type="text/javascript" language="javascript" ></script>
13241324
<link href="css/bootstrap.min.css" type="text/css" rel="stylesheet" />
13251325
<link href="css/style.css" type="text/css" rel="stylesheet" />
1326-
<meta name="viewport" content="width=device-width, initial-scale=1">
1326+
<meta name="viewport" content="width=device-width, initial-scale=1">
13271327
</head>
13281328
13291329
The body element will have typical Twitter Bootstrap scaffolding elements
Collapse file

‎chapter4/chapter4.md‎

Copy file name to clipboardExpand all lines: chapter4/chapter4.md
+6-6Lines changed: 6 additions & 6 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -963,7 +963,7 @@ and attached a specific event to each of them (see Figure 4-1). Those
963963
events are smart enough to pass the information about the model to other
964964
objects: views and collections.
965965

966-
![alt](media/image1.png)
966+
![](media/image1.png)
967967

968968
***Figure 4-1.*** *The list of apples rendered by subviews*
969969

@@ -1676,11 +1676,11 @@ shown in Figure 4-3
16761676
loads them in parallel.
16771677

16781678

1679-
![alt](media/image2.png)
1679+
![](media/image2.png)
16801680

16811681
***Figure 4-2.*** *The old 04-backbone/refactor/index.html file*
16821682

1683-
![alt](media/image3.png)
1683+
![](media/image3.png)
16841684

16851685
***Figure 4-3.*** *The new 04-backbone/amd/index.html file*
16861686

@@ -1704,7 +1704,7 @@ Add this to the `apple-app.js` file in front of everything else:
17041704
Notice in Figure 4-4 that each file request now has status 200 instead
17051705
of 304 (not modified).
17061706

1707-
![alt](media/image4.png)
1707+
![](media/image4.png)
17081708

17091709
***Figure 4-4.*** *Network tab with bust parameter added*
17101710

@@ -1757,15 +1757,15 @@ or
17571757
You should get a list of the r.js processed files, as shown in Figure
17581758
4-5.
17591759

1760-
![alt](media/image5.png)
1760+
![](media/image5.png)
17611761

17621762
***Figure 4-5.*** *A list of the r.js processed files*
17631763

17641764
Open `index.html` from the build folder in a browser window, and check
17651765
if the Network tab shows any improvement now with just one request or
17661766
file to load (Figure 4-6).
17671767

1768-
![alt](media/image6.png)
1768+
![](media/image6.png)
17691769

17701770
***Figure 4-6.*** *Performance improvement with one request or file to load*
17711771

Collapse file

‎chapter5/chapter5.md‎

Copy file name to clipboardExpand all lines: chapter5/chapter5.md
+1-1Lines changed: 1 addition & 1 deletion
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ not there were changes to the data. The Backbone.js
3939
Model-View-Controller (MVC) framework can be used to make complex
4040
applications more manageable and easier to maintain.
4141

42-
![alt](media/board-1.png)
42+
![](media/board-1.png)
4343

4444
***Figure 5-1.** Message Board powered by local Parse server.*
4545

Collapse file

‎chapter8/chapter8.md‎

Copy file name to clipboardExpand all lines: chapter8/chapter8.md
+2-2Lines changed: 2 additions & 2 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -726,7 +726,7 @@ Another header that we send back with the response is `Content-Length`:
726726
response.end(file)
727727
}
728728
}
729-
...
729+
...
730730

731731
So this piece of code goes into the request handler of the server, which
732732
is inside of the database connect call. Just like the Russian Matreshka
@@ -865,7 +865,7 @@ To list all running processes:
865865

866866
$ pm2 list
867867

868-
![alt](media/image1.png)
868+
![](media/image1.png)
869869

870870
***Figure 8-1*** *pm2 running multiple Node processes.*
871871

0 commit comments

Comments
0 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.