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 :vs: · xescodes/fullstack-javascript@67fc959

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • appendix-a
    • Appendix A.md
  • chapter2
    • chapter2.md
  • chapter3
    • chapter3.md
  • chapter5
    • chapter5.md
  • chapter6
    • chapter6.md
  • chapter8
    • chapter8.md
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎appendix-a/Appendix A.md‎

Copy file name to clipboardExpand all lines: appendix-a/Appendix A.md
+1-1Lines changed: 1 addition & 1 deletion
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Stack JavaScript touched topics such as the following:
1616

1717
- jQuery, JSON, and AJAX/XHR
1818

19-
- Bootstrap, CSS, and LESS
19+
- Bootstrap, CSS, and Less
2020

2121
- Backbone.js, AMD, and Require.js
2222

Collapse file

‎chapter2/chapter2.md‎

Copy file name to clipboardExpand all lines: chapter2/chapter2.md
+44-90Lines changed: 44 additions & 90 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -260,11 +260,9 @@ Assuming you have 8.11.1, it should show something similar to this: `v8.11.1`.
260260

261261
If you want to switch between multiple versions of Node.js, there are solutions for that:
262262

263-
- [*nvm*](https://github.com/creationix/nvm) (https://github.com/creationix/nvm ): Node.js Version Manager
264-
- [*Nave*](https://github.com/isaacs/nave)
265-
(https://github.com/isaacs/nave): Virtual environments for Node.js
266-
- [*n*](https://github.com/tj/n) ( <https://github.com/tj/n> ): Node.js
267-
version management
263+
- [*nvm*](https://github.com/creationix/nvm) (<https://github.com/creationix/nvm>): Node.js Version Manager
264+
- [*Nave*](https://github.com/isaacs/nave) (<https://github.com/isaacs/nave>): Virtual environments for Node.js
265+
- [*n*](https://github.com/tj/n) (<https://github.com/tj/n>): Node.js version management
268266

269267
The Node.js package already includes npm—[Node Package Manager](https://npmjs.org) (<https://npmjs.org>). We'll use npm extensively to install Node.js modules.
270268

@@ -274,112 +272,77 @@ The Node.js package already includes npm—[Node Package Manager](https://npmjs.
274272

275273
### Browser JavaScript Libraries
276274

277-
Front-end JavaScript libraries are downloaded and unpacked from their
278-
respective web sites. Those files are usually put in the Development
279-
folder (e.g., `∼/Documents/Development`) for future use. Often, there is a
280-
choice between the minified production version (more on that in the AMD
281-
and Require.js section of Chapter 4) and the extensively rich in
282-
comments development one.
275+
Front-end JavaScript libraries are downloaded and unpacked from their respective web sites. Those files are usually put in the Development folder (e.g., `∼/Documents/Development`) for future use. Often, there is a choice between the minified production version (more on that in the AMD and Require.js section of Chapter 4) and a version that is extensively rich development comments.
283276

284-
Another approach is to hot-link these scripts from CDNs such as [Google
285-
Hosted
286-
Libraries](https://developers.google.com/speed/libraries/devguide)
287-
(https://developers.google.com/speed/libraries/devguide), CDNJS
288-
(http://cdnjs.com ), Microsoft Ajax Content Delivery Network
289-
(<http://www.asp.net/ajaxlibrary/cdn.ashx> ), and others. By doing so
290-
the apps will be faster for some users, but won’t work locally at all
291-
without the Internet.
277+
Another approach is to hot-link these scripts from CDNs such as [Google Hosted Libraries](https://developers.google.com/speed/libraries/devguide) (<https://developers.google.com/speed/libraries/devguide>), CDNJS (<http://cdnjs.com>), Microsoft Ajax Content Delivery Network (<https://docs.microsoft.com/en-us/aspnet/ajax/cdn/overview>), and others. By doing so the apps will be faster for some users, but won’t work locally at all without the Internet.
292278

293-
- LESS as a front-end interpreter is available at
294-
[lesscss.org](http://lesscss.org). You could unpack it into your
295-
development folder (~/Documents/Development) or any other folder.
279+
Speaking of dependencies, I recommend downloading the following libraries that will be used in the book's project. To keep things simple, we will use just simple `.js` or `.min.js` files and not the npm packages:
296280

297-
- Bootstrap is a CSS/LESS framework. It's available at
298-
[twitter.github.com/bootstrap](http://twitter.github.com/bootstrap).
281+
- Bootstrap is a CSS/Less framework. It's available at <https://getbootstrap.com>.
282+
- jQuery is available at <https://jquery.com>.
283+
- Backbone.js is available at <https://backbonejs.org>.
284+
- Underscore.js is available at <https://underscorejs.org>.
285+
- Require.js is available at <https://requirejs.org>.
299286

300-
- jQuery is available at [jquery.com](http://jquery.com).
287+
### Less App
301288

302-
- Backbone.js is available at [backbonejs.org](http://backbonejs.org).
289+
Less as a front-end interpreter is available at [lesscss.org](http://lesscss.org). You could unpack it into your development folder (`~/Documents/Development`) or any other folder.
303290

304-
- Underscore.js is available at
305-
[underscorejs.org](http://underscorejs.org).
306-
307-
- Require.js is available at [requirejs.org](http://requirejs.org).
308-
309-
### LESS App
310-
311-
The LESS App is a macOS application for "on-the-fly" compilation of
312-
LESS to CSS. It's available at
313-
[incident57.com/less](http://incident57.com/less).
291+
The Less App is a macOS application for "on-the-fly" compilation of Less to CSS. It's available at [incident57.com/less](http://incident57.com/less). TK
314292

315293
Cloud Setup
316294
===========
317295

318-
The Cloud setup discussed in the following sections will allow you to
319-
keep your code under version control and deploy in a scalable manner.
296+
The cloud setup discussed in the following sections will allow you to keep your code under version control and deploy it in a scalable manner.
320297

321298
SSH Keys
322299
--------
323300

324-
SSH keys provide a secure connection without the need to enter user name
325-
and password every time. For GitHub repositories, the latter approach is
326-
used with HTTPS URLs; for example,
327-
<https://github.com/azat-co/fullstack-javascript.git>; and the former with
328-
SSH URLs; for example, `[email protected]:azat-co/fullstack-javascript.git`.
301+
For GitHub repositories, developers have to enter username and password every time with HTTPS URLs (looks like <https://github.com/azat-co/fullstack-javascript.git>), unless they use a keychain. SSH keys provide a secure connection without the need to enter a user name
302+
and password every time. The SSH URLs look like `[email protected]:azat-co/fullstack-javascript.git`.
329303

330-
To generate SSH keys for GitHub on macOS/UNIX machines do the
331-
following:
304+
To generate SSH keys for GitHub on macOS/UNIX machines, do the following:
332305

333306
1. Check for existing SSH keys:
334307

335308
$ cd ~/.ssh
336309
$ ls -lah
337310

338-
2. If you see some files like id_rsa (please refer to Figure 2-16 for
339-
an example), you could delete them or back them up into a separate
340-
folder by using the following commands:
311+
2. If you see some files like `id_rsa` (please refer to Figure 2-6 for an example), you could delete them or back them up into a separate folder by using the following commands:
341312

342313
$ mkdir key_backup
343314
$ cp id_rsa* key_backup
344315
$ rm id_rsa*
345316

346-
3. Now we can generate a new SSH key pair using the ssh-keygen command,
347-
assuming we are in the ~/.ssh folder:
317+
3. Now generate a new SSH key pair using the `ssh-keygen` command, assuming we are in the `~/.ssh` folder:
348318

349319
$ ssh-keygen -t rsa -C "[email protected]"
350320

351-
4. Answer the questions; it is better to keep the default name
352-
of id_rsa. Then copy the content of the id_rsa.pub file to your
353-
clipboard (Figure 2-12):
321+
4. Answer the questions; it is better to keep the default name of `id_rsa`. Then copy the content of the `id_rsa.pub` file to your clipboard (Figure 2-6):
354322

355323
$ pbcopy < ~/.ssh/id_rsa.pub
356324

357325
![](media/image16.png)
358326

359-
***Figure 2-12.** Generating RSA key for SSH and copying public key to clipboard*
327+
***Figure 2-6.** Generating RSA key for SSH and copying public key to clipboard*
360328

361-
5. Alternatively, open id_rsa.pub file in the default editor:
329+
5. Alternatively, open `id_rsa.pub` file in the default editor:
362330

363-
`$ open id_rsa.pub`
364-
365-
6. Or in TextMate:
366-
367-
`$ mate id_rsa.pub`
331+
`$ edit id_rsa.pub`
368332

333+
Or in VS Code (recommended):
369334

335+
`$ code id_rsa.pub`
370336

371337

372338
GitHub
373339
------
374340

375-
1. After you have copied the public key, go to
376-
[github.com](http://github.com), log in, go to your account
377-
settings, select SSH Key, and add the new SSH key. Assign a name,
378-
such as the name of your computer, and paste the value of your
379-
public key.
341+
The next steps will show how to connect to GitHub (think of it as a versioned code storage) using SSH and SSH keys:
342+
343+
1. After you have copied the public key, go to <https://github.com>, log in, go to your account settings, select SSH Key, and add the new SSH key. Assign a name, such as the name of your computer, and paste the value of your public key.
380344

381-
2. To check if you have an SSH connection to GitHub, type and execute
382-
the following command in your terminal:
345+
2. To check if you have an SSH connection to GitHub, type and execute the following command in your terminal:
383346

384347
`$ ssh -T [email protected]`
385348

@@ -390,40 +353,31 @@ GitHub
390353

391354
then everything is set up.
392355

393-
3. The first time you connect to GitHub, you can receive an
394-
Authenticity of Host … Can't Be Established warning. Please don't be
395-
confused with such a message—just proceed by answering Yes as shown
396-
in Figure 2-13.
356+
3. The first time you connect to GitHub, you may receive a message "Authenticity of Host … Can't Be Established warning". Please don't be alarmed with such a message. It confirms that the host you are trying to connect to is trusted. Simply proceed by answering "Yes" as shown in Figure 2-7.
397357

398358
![](media/image17.png)
399359

400-
***Figure 2-13.** Testing SSH connection to GitHub for the very first
401-
time*
360+
***Figure 2-7.** Testing SSH connection to GitHub for the very first time*
402361

403-
If for some reason you have a different message, please repeat Steps 3
404-
and 4 from the previous section on SSH keys or reupload the content of
405-
your \*.pub file to GitHub.
362+
If for some reason you have a different message, please repeat Steps 3 and 4 from the previous section on SSH keys or reupload the content of your `*.pub` file to GitHub.
406363

407364
Warning Keep your id_rsa file private and don't share it with anybody!
408365

409-
More instructions are available at GitHub: [Generating SSH
410-
Keys](https://help.github.com/articles/generating-ssh-keys)
411-
(<https://helpgithub.com/articles/generating-ssh-keys>).
366+
More instructions are available at GitHub: [Generating SSH Keys](https://help.github.com/articles/generating-ssh-keys) (<https://helpgithub.com/articles/generating-ssh-keys>). TK
412367

413-
Windows users might find the SSH key generator feature in \[PuTTY\]
414-
useful.
368+
Windows users might find the SSH key generator feature in PuTTY useful.
415369

416-
Windows Azure
370+
Microsoft Azure
417371
-------------
418372

419-
Here are the steps to set up a Windows Azure account:
373+
Here are the steps to set up a Microsoft Azure account:
420374

421-
1. You'll need to sign up for Windows Azure Web Site and Virtual
375+
1. You'll need to sign up for Microsoft Azure Web Site and Virtual
422376
Machine previews. Currently they have a 90-day free trial available
423377
at <https://azure.microsoft.com/en-us>.
424378

425379
2. Enable Git Deployment and create a user name and password, then
426-
upload the SSH public key to Windows Azure.
380+
upload the SSH public key to Microsoft Azure.
427381

428382
3. Install the Node.js SDK, which is available at
429383
<https://azure.microsoft.com/en-us/develop/nodejs>.
@@ -434,14 +388,14 @@ Here are the steps to set up a Windows Azure account:
434388

435389
You should be able to see something like this:
436390

437-
`Windows Azure: Microsoft's Cloud Platform... Tool Version 0.6.0`
391+
`Microsoft Azure: Microsoft's Cloud Platform... Tool Version 0.6.0`
438392

439-
5. Log in to Windows Azure Portal at <https://windows.azure.com>
393+
5. Log in to Microsoft Azure Portal at <https://windows.azure.com>
440394
(Figure 2-14).
441395

442396
![](media/image18.png)
443397

444-
***Figure 2-14.** Registering on Windows Azure*
398+
***Figure 2-14.** Registering on Microsoft Azure*
445399

446400
6. Select New, then select Web Site, and Quick Create. Type the name
447401
that will serve as the URL for your web site, and click OK.
@@ -462,14 +416,14 @@ Here are the steps to set up a Windows Azure account:
462416

463417
9. Advanced user option: Follow this tutorial to create a virtual
464418
machine and install MongoDB on it: [Install MongoDB on a virtual
465-
machine running CentOS Linux in Windows Azure](https://www.windowsazure.com/en-us/manage/linux/common-tasks/mongodb-on-a-linux-vm) (https://www.windowsazure.com/en-us/manage/linux/common-tasks/mongodb-on-a-linux-vm).
419+
machine running CentOS Linux in Microsoft Azure](https://www.windowsazure.com/en-us/manage/linux/common-tasks/mongodb-on-a-linux-vm) (https://www.windowsazure.com/en-us/manage/linux/common-tasks/mongodb-on-a-linux-vm).
466420

467421

468422
Heroku
469423
------
470424

471425
Heroku is a polyglot agile application deployment platform (see
472-
<http://www.heroku.com>). Heroku works similarly to Windows Azure in
426+
<http://www.heroku.com>). Heroku works similarly to Microsoft Azure in
473427
the sense that you can use Git to deploy applications. There is no need
474428
to install Virtual Machine for MongoDB because [Heroku has a MongoHQ
475429
add-on](https://addons.heroku.com/mongohq)

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.