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 — fix formatting · Shohan494/fullstack-javascript@785cbef

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
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎chapter2/chapter2.md‎

Copy file name to clipboardExpand all lines: chapter2/chapter2.md
+60-63Lines changed: 60 additions & 63 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -84,15 +84,15 @@ Browsers
8484
We recommend downloading the latest version of the
8585
[WebKit](http://en.wikipedia.org/wiki/WebKit)
8686
(http://en.wikipedia.org/wiki/WebKit) or Gecko at
87-
http://en.wikipedia.org/wiki/Gecko\_(layout\_engine) browser of your
87+
http://en.wikipedia.org/wiki/Gecko_(layout_engine) browser of your
8888
choice:
8989

90-
- [Chrome](http://www.google.com/chrome) (http://www.google.com/chrome)
90+
- [Chrome](http://www.google.com/chrome) (<http://www.google.com/chrome>)
9191
(recommended)
9292

93-
- [Safari](http://www.apple.com/safari/) (http://www.apple.com/safari/)
93+
- [Safari](http://www.apple.com/safari) (<http://www.apple.com/safari>)
9494

95-
- [Firefox](http://www.mozilla.org/en-US/firefox/new) (http://www.mozilla.org/en-US/firefox/new)
95+
- [Firefox](http://www.mozilla.org/en-US/firefox/new) (<http://www.mozilla.org/en-US/firefox/new>)
9696

9797
Whereas Chrome and Safari already come with built-in developer tools,
9898
you'll need the Firebug plug-in for Firefox (Figure 2-2).
@@ -127,11 +127,10 @@ as the following and those shown in Figures 2-3 and 2-4:
127127
- Explore and Master Chrome DevTools
128128
(<http://discover->devtools.codeschool.com/ ) with Code School
129129

130-
- Chrome DevTools videos (https://developers.google.com/
131-
chrome-developer-tools/docs/videos )
130+
- Chrome DevTools videos (<https://developers.google.com/chrome-developer-tools/docs/videos>)
132131

133132
- Chrome DevTools overview
134-
(https://developers.google.com/chrome-developer-tools )
133+
(<https://developers.google.com/chrome-developer-tools>)
135134

136135
![alt](media/image4.png)
137136

@@ -145,43 +144,42 @@ compile the code. Because JS lives in and is run in a browser, you can
145144
do debugging right there, in a browser! It's an interpreted language,
146145
not a compiled one. Therefore, we highly recommend a lightweight text
147146
editor instead of a full-blown integrated development environment
148-
(http://en.wikipedia.org/wiki/Integrated\_development\_environment ), or
147+
(<http://en.wikipedia.org/wiki/Integrated_development_environment>), or
149148
IDE, but if you are already familiar and comfortable with the IDE of
150-
your choice like Eclipse, (http://www.eclipse.org/) NetBeans (
151-
http://netbeans.org/) or Aptana (http://aptana.com/), feel free to stick
149+
your choice like Eclipse, (<http://www.eclipse.org>) NetBeans (<http://netbeans.org>) or Aptana (<http://aptana.com>), feel free to stick
152150
with it.
153151

154152
Here is the list of the most popular text editors and IDEs used in web
155153
development:
156154

157-
- [*TextMate*](http://macromates.com/) (http://macromates.com/): Mac OS X version only, free
155+
- [*TextMate*](http://macromates.com) (<http://macromates.com>): Mac OS X version only, free
158156
30-day trial for v1.5, dubbed The Missing Editor for Mac OS X.
159157

160-
- [*Sublime Text*](http://www.sublimetext.com/)
161-
(http://www.sublimetext.com/ ): Mac OS X and Windows versions
158+
- [*Sublime Text*](http://www.sublimetext.com)
159+
(<http://www.sublimetext.com>): Mac OS X and Windows versions
162160
are available. This is an even better alternative to TextMate, with
163161
an unlimited evaluation period
164162
(Figure  2-5 ).
165163

166-
- [*Coda*](http://panic.com/coda/) ( http://panic.com/coda/ ):
164+
- [*Coda*](http://panic.com/coda) (<http://panic.com/coda>):
167165
All-in-one editor with FTP browser and preview, has support for
168166
development with and on an iPad.
169167

170-
- [*Aptana Studio*](http://aptana.com/) ( http://aptana.com/ ):
168+
- [*Aptana Studio*](http://aptana.com) (<http://aptana.com>):
171169
Full-sized IDE with a built-in terminal and many other tools.
172170

173-
- [*Notepad ++*](http://notepad-plus-plus.org/)
174-
(http:notepad-plus-plus.org/): Free Windows-only lightweight text
171+
- [*Notepad ++*](http://notepad-plus-plus.org)
172+
(<http://notepad-plus-plus.org>): Free Windows-only lightweight text
175173
editor with the support of many languages.
176174

177-
- [*WebStorm IDE*](http://www.jetbrains.com/webstorm/)
178-
(http://www.jetbrains.com/webstorm/ ): Feature- rich IDE that allows
175+
- [*WebStorm IDE*](http://www.jetbrains.com/webstorm)
176+
(<http://www.jetbrains.com/webstorm>): Feature- rich IDE that allows
179177
for Node.js debugging. It is developed by JetBrains and marketed as
180178
the smartest JavaScript IDE (Figure  2-6 ).
181179

182180
[*MS Visual
183181
Studio*](https://www.visualstudio.com/features/node-js-vs)
184-
(https://www.visualstudio.com/features/node-js-vs ): Node.js tools
182+
(<https://www.visualstudio.com/features/node-js-vs>): Node.js tools
185183
for the famous Visual Studio environment from a small
186184
Redmond company.
187185

@@ -197,16 +195,16 @@ Version Control Systems
197195
-----------------------
198196

199197
A version control system (
200-
http://en.wikipedia.org/wiki/Revision\_control ) is a must-have even in
198+
<http://en.wikipedia.org/wiki/Revision_control>) is a must-have even in
201199
an only-one-developer situation. Also many cloud services (e.g., Heroku)
202200
require Git for deployment. We also highly recommend getting used to Git
203201
and Git terminal commands instead of using Git visual clients and apps
204-
with a GUI: GitX (http://gitx.frim.nl/), Gitbox
205-
(http://www.gitboxapp.com/) or GitHub for Mac (http://mac.github.com/ ).
202+
with a GUI: GitX (<http://gitx.frim.nl>), Gitbox
203+
(<http://www.gitboxapp.com>) or GitHub for Mac (<http://mac.github.com>).
206204

207205
Subversion is a nondistributed version control system. This article
208206
compares Git vs. Subversion
209-
(https://git.wiki.kernel.org/index.php/GitSvnComparison).
207+
(<https://git.wiki.kernel.org/index.php/GitSvnComparison>).
210208

211209
Here are the steps to install and set up Git on your machine:
212210

@@ -223,9 +221,9 @@ Here are the steps to install and set up Git on your machine:
223221

224222
3. Find the terminal app by using Command + Space, a.k.a. Spotlight
225223
(Figure 2-8), on OS X. For Windows you could use
226-
[PuTTY](http://www.chiark.greenend.org.uk/~sgtatham/putty/)
227-
(http://www.chiark.greenend.org.uk/~sgtatham/putty/)
228-
or Cygwin (http://www.cygwin.com/).
224+
[PuTTY](http://www.chiark.greenend.org.uk/~sgtatham/putty)
225+
(<http://www.chiark.greenend.org.uk/~sgtatham/putty>)
226+
or Cygwin (<http://www.cygwin.com>).
229227

230228

231229
![alt](media/image8.png)
@@ -273,28 +271,28 @@ GUIs, but they are simple and fast. You can install them with npm (comes
273271
with Node.js; instructions are later in this chapter):
274272

275273
- [*node-static*](https://github.com/cloudhead/node-static) (
276-
https://github.com/cloudhead/node-static): Static file server with
274+
<https://github.com/cloudhead/node-static>): Static file server with
277275
built-in caching.
278276

279277
- [*http-server*](https://www.npmjs.com/package/http-server)
280-
(https://www.npmjs.com/package/http-server): Zero-configuration
278+
(<https://www.npmjs.com/package/http-server>): Zero-configuration
281279
command-line HTTP server.
282280

283281
If you prefer something with GUIs to a command-line interface (CLI), you
284282
might want to consider the following modifications of the Apache web
285283
server. MAMP, MAMP Stack, and XAMPP have intuitive GUIs that allow you
286284
to change configurations and host file settings.
287285

288-
- [*MAMP*]( http://www.mamp.info/en/index.html) ( http://www.mamp.info/en/index.html ): Mac, Apache, MySQL,
286+
- [*MAMP*](<http://www.mamp.info/en/index.html>) (<http://www.mamp.info/en/index.html>): Mac, Apache, MySQL,
289287
PHP personal web server for Mac OS X.
290288

291289
- [*MAMP Stack*](http://bitnami.com/stack/mamp)
292-
(http://bitnami.com/stack/mamp ): Mac app with PHP, Apache, MySQL,
290+
(<http://bitnami.com/stack/mamp>): Mac app with PHP, Apache, MySQL,
293291
and phpMyAdmin stack build by BitNami (Apple App Store)
294-
(https://itunes.apple.com/es/app/mamp-stack/id571310406?l=en ).
292+
(<https://itunes.apple.com/es/app/mamp-stack/id571310406?l=en>).
295293

296294
- [*XAMPP*](http://www.apachefriends.org/en/xampp.html)
297-
(http://www.apachefriends.org/en/xampp.html): Apache distribution
295+
(<http://www.apachefriends.org/en/xampp.html>): Apache distribution
298296
containing MySQL, PHP and Perl for Windows, Mac, Linux, and Solaris.
299297

300298
The MAMP for Mac home page is shown in Figure 2-10.
@@ -311,14 +309,13 @@ but with some modification they can be used for Windows systems as well
311309
(i.e., $PATH variable, Step 3). Here we describe the MongoDB
312310
installation from the official package, because we found that this
313311
approach is more robust and leads to less conflicts. However, there are
314-
many other ways to install it on Mac (http://docs.mongodb.org/manual/tutorial/install-mongodb-on-os-x/), for
315-
example using Brew, as well as on other systems ( http://docs.
316-
mongodb.org/manual/installation/).
312+
many other ways to install it on Mac (<http://docs.mongodb.org/manual/tutorial/install-mongodb-on-os-x>), for
313+
example using Brew, as well as on other systems (<http://docs.mongodb.org/manual/installation>).
317314

318-
1. MongoDB can be download ed at (http://www.mongodb.org/downloads).
315+
1. MongoDB can be download ed at (<http://www.mongodb.org/downloads>).
319316
For the latest Apple laptops, like MacBook Air, select OS X
320317
64-bit version. The owners of older Macs shouldbrowse the link at
321-
(http://dl.mongodb.org/dl/osx/i386 ).
318+
(<http://dl.mongodb.org/dl/osx/i386>).
322319

323320
Tip To figure out the architecture type of your processor, type the $ uname -p at the command line.
324321

@@ -346,7 +343,7 @@ mongodb.org/manual/installation/).
346343
2-11):
347344

348345
`$ sudo mkdir -p /data/db`
349-
` $ sudo chown `id -u` /data/db`
346+
`$ sudo chown `id -u` /data/db`
350347

351348
![alt](media/image11.png)
352349

@@ -411,9 +408,9 @@ Commands `find` and `save` do exactly what you might think they do.
411408

412409
Detailed instructions are also available at MongoDB.org: Install MongoDB
413410
on OS X
414-
(http://docs.mongodb.org/manual/tutorial/install-mongodb-on-os-x). For
411+
(<http://docs.mongodb.org/manual/tutorial/install-mongodb-on-os-x>). For
415412
Windows users there is a good walk-through article at Installing MongoDB
416-
( http://www.tuanleaded.com/blog/2011/10/installing-mongodb).
413+
(<http://www.tuanleaded.com/blog/2011/10/installing-mongodb>).
417414

418415
Note MAMP and XAMPP applications come with MySQL—an open source traditional SQL database—and phpMyAdmin—a web interface for MySQL database.
419416

@@ -438,7 +435,7 @@ proceeding to the next chapter.
438435

439436
### Node.js Installation
440437

441-
Node.js is available at http://nodejs.org/\#download (Figure 2-14). The
438+
Node.js is available at <http://nodejs.org/#download> (Figure 2-14). The
442439
installation is trivial: Download the archive and run the \*.pkg package
443440
installer. To check the installation of Node.js, you could type and
444441
execute:
@@ -461,7 +458,7 @@ solutions for that:
461458
- [*Nave*](https://github.com/isaacs/nave)
462459
(https://github.com/isaacs/nave): Virtual environments for Node.js
463460

464-
- [*n*](https://github.com/tj/n) ( https://github.com/tj/n ): Node.js
461+
- [*n*](https://github.com/tj/n) ( <https://github.com/tj/n> ): Node.js
465462
version management
466463

467464
The Node.js package already includes [Node Package
@@ -485,17 +482,17 @@ Another approach is to hot-link these scripts from CDNs such as [Google
485482
Hosted
486483
Libraries](https://developers.google.com/speed/libraries/devguide)
487484
(https://developers.google.com/speed/libraries/devguide), CDNJS
488-
(http://cdnjs.com/ ), Microsoft Ajax Content Delivery Network
489-
(<http://www.asp.net/> ajaxlibrary/cdn.ashx ), and others. By doing so
485+
(http://cdnjs.com ), Microsoft Ajax Content Delivery Network
486+
(<http://www.asp.net> ajaxlibrary/cdn.ashx ), and others. By doing so
490487
the apps will be faster for some users, but won’t work locally at all
491488
without the Internet.
492489

493490
- LESS as a front-end interpreter is available at
494-
[lesscss.org](http://lesscss.org/). You could unpack it into your
491+
[lesscss.org](http://lesscss.org). You could unpack it into your
495492
development folder (~/Documents/Development) or any other folder.
496493

497494
- Twitter Bootstrap is a CSS/LESS framework. It's available at
498-
[twitter.github.com/bootstrap](http://twitter.github.com/bootstrap/).
495+
[twitter.github.com/bootstrap](http://twitter.github.com/bootstrap).
499496

500497
- jQuery is available at [jquery.com](http://jquery.com).
501498

@@ -529,7 +526,7 @@ SSH Keys
529526
SSH keys provide a secure connection without the need to enter user name
530527
and password every time. For GitHub repositories, the latter approach is
531528
used with HTTPS URLs; for example,
532-
https://github.com/azat-co/fullstack-javascript.git; and the former with
529+
<https://github.com/azat-co/fullstack-javascript.git>; and the former with
533530
SSH URLs; for example, [email protected]:azat-co/fullstack-javascript.git.
534531

535532
To generate SSH keys for GitHub on Mac OS X/UNIX machines do the
@@ -540,7 +537,7 @@ following:
540537
$ cd ~/.ssh
541538
$ ls -lah
542539

543-
2. If you see some files like id\_rsa (please refer to Figure 2-16 for
540+
2. If you see some files like id_rsa (please refer to Figure 2-16 for
544541
an example), you could delete them or back them up into a separate
545542
folder by using the following commands:
546543

@@ -551,10 +548,10 @@ following:
551548
3. Now we can generate a new SSH key pair using the ssh-keygen command,
552549
assuming we are in the ~/.ssh folder:
553550

554-
$ ssh-keygen -t rsa -C "your\_email@youremail.com"
551+
$ ssh-keygen -t rsa -C "your_email@youremail.com"
555552

556553
4. Answer the questions; it is better to keep the default name
557-
of id\_rsa. Then copy the content of the id\_rsa.pub file to your
554+
of id_rsa. Then copy the content of the id_rsa.pub file to your
558555
clipboard (Figure 2-16):
559556

560557
$ pbcopy < ~/.ssh/id_rsa.pub
@@ -563,7 +560,7 @@ following:
563560

564561
***Figure 2-16.** Generating RSA key for SSH and copying public key to clipboard*
565562

566-
5. Alternatively, open id\_rsa.pub file in the default editor:
563+
5. Alternatively, open id_rsa.pub file in the default editor:
567564

568565
`$ open id_rsa.pub`
569566

@@ -609,11 +606,11 @@ If for some reason you have a different message, please repeat Steps 3
609606
and 4 from the previous section on SSH keys or reupload the content of
610607
your \*.pub file to GitHub.
611608

612-
Warning Keep your id\_rsa file private and don't share it with anybody!
609+
Warning Keep your id_rsa file private and don't share it with anybody!
613610

614611
More instructions are available at GitHub: [Generating SSH
615612
Keys](https://help.github.com/articles/generating-ssh-keys)
616-
( https://helpgithub.com/articles/generating-ssh-keys).
613+
(<https://helpgithub.com/articles/generating-ssh-keys>).
617614

618615
Windows users might find the SSH key generator feature in \[PuTTY\]
619616
useful.
@@ -625,13 +622,13 @@ Here are the steps to set up a Windows Azure account:
625622

626623
1. You'll need to sign up for Windows Azure Web Site and Virtual
627624
Machine previews. Currently they have a 90-day free trial available
628-
at <https://azure.microsoft.com/en-us/>.
625+
at <https://azure.microsoft.com/en-us>.
629626

630627
2. Enable Git Deployment and create a user name and password, then
631628
upload the SSH public key to Windows Azure.
632629

633630
3. Install the Node.js SDK, which is available at
634-
<https://azure.microsoft.com/en-us/develop/nodejs/>.
631+
<https://azure.microsoft.com/en-us/develop/nodejs>.
635632

636633
4. To check your installation type:
637634

@@ -641,7 +638,7 @@ Here are the steps to set up a Windows Azure account:
641638

642639
`Windows Azure: Microsoft's Cloud Platform... Tool Version 0.6.0`
643640

644-
5. Log in to Windows Azure Portal at <https://windows.azure.com/>
641+
5. Log in to Windows Azure Portal at <https://windows.azure.com>
645642
(Figure 2-18).
646643

647644
![alt](media/image18.png)
@@ -667,14 +664,14 @@ Here are the steps to set up a Windows Azure account:
667664

668665
9. Advanced user option: Follow this tutorial to create a virtual
669666
machine and install MongoDB on it: [Install MongoDB on a virtual
670-
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/).
667+
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).
671668

672669

673670
Heroku
674671
------
675672

676673
Heroku is a polyglot agile application deployment platform (see
677-
<http://www.heroku.com/>). Heroku works similarly to Windows Azure in
674+
<http://www.heroku.com>). Heroku works similarly to Windows Azure in
678675
the sense that you can use Git to deploy applications. There is no need
679676
to install Virtual Machine for MongoDB because [Heroku has a MongoHQ
680677
add-on](https://addons.heroku.com/mongohq)
@@ -687,8 +684,8 @@ To set up Heroku, follow these steps:
687684

688685
2. Download Heroku Toolbelt at (https://toolbelt.heroku.com) Toolbelt
689686
is a package of tools; that is, libraries that consist of Heroku,
690-
Git, and Foreman ( <https://github.com/ddollar/> foreman). For users
691-
of older Macs, get this client ( https://github.com/heroku/heroku )
687+
Git, and Foreman ( <https://github.com/ddollar> foreman). For users
688+
of older Macs, get this client ( <https://github.com/heroku/heroku> )
692689
directly. If you utilize another OS, browse Heroku Client
693690
GitHub (https://github.com/heroku/heroku) .
694691

@@ -714,8 +711,8 @@ To set up Heroku, follow these steps:
714711

715712

716713
More [^1]detailed step-by-step instructions are available at Heroku:
717-
Quickstart ( <https://devcenter.heroku.com/> articles/quickstart ) and
718-
Heroku: Node.js ( https://devcenter.heroku.com/articles/nodejs).
714+
Quickstart ( <https://devcenter.heroku.com> articles/quickstart ) and
715+
Heroku: Node.js ( <https://devcenter.heroku.com/articles/nodejs>).
719716

720717
Summary
721718
=======

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.