@@ -84,15 +84,15 @@ Browsers |
84 | 84 | We recommend downloading the latest version of the |
85 | 85 | [WebKit](http://en.wikipedia.org/wiki/WebKit) |
86 | 86 | (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 |
88 | 88 | choice: |
89 | 89 |
|
90 | | -- [Chrome](http://www.google.com/chrome) (http://www.google.com/chrome) |
| 90 | +- [Chrome](http://www.google.com/chrome) (<http://www.google.com/chrome>) |
91 | 91 | (recommended) |
92 | 92 |
|
93 | | -- [Safari](http://www.apple.com/safari/) (http://www.apple.com/safari/) |
| 93 | +- [Safari](http://www.apple.com/safari) (<http://www.apple.com/safari>) |
94 | 94 |
|
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>) |
96 | 96 |
|
97 | 97 | Whereas Chrome and Safari already come with built-in developer tools, |
98 | 98 | 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: |
127 | 127 | - Explore and Master Chrome DevTools |
128 | 128 | (<http://discover->devtools.codeschool.com/ ) with Code School |
129 | 129 |
|
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>) |
132 | 131 |
|
133 | 132 | - Chrome DevTools overview |
134 | | - (https://developers.google.com/chrome-developer-tools ) |
| 133 | + (<https://developers.google.com/chrome-developer-tools>) |
135 | 134 |
|
136 | 135 |  |
137 | 136 |
|
@@ -145,43 +144,42 @@ compile the code. Because JS lives in and is run in a browser, you can |
145 | 144 | do debugging right there, in a browser! It's an interpreted language, |
146 | 145 | not a compiled one. Therefore, we highly recommend a lightweight text |
147 | 146 | 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 |
149 | 148 | 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 |
152 | 150 | with it. |
153 | 151 |
|
154 | 152 | Here is the list of the most popular text editors and IDEs used in web |
155 | 153 | development: |
156 | 154 |
|
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 |
158 | 156 | 30-day trial for v1.5, dubbed The Missing Editor for Mac OS X. |
159 | 157 |
|
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 |
162 | 160 | are available. This is an even better alternative to TextMate, with |
163 | 161 | an unlimited evaluation period |
164 | 162 | (Figure 2-5 ). |
165 | 163 |
|
166 | | -- [*Coda*](http://panic.com/coda/) ( http://panic.com/coda/ ): |
| 164 | +- [*Coda*](http://panic.com/coda) (<http://panic.com/coda>): |
167 | 165 | All-in-one editor with FTP browser and preview, has support for |
168 | 166 | development with and on an iPad. |
169 | 167 |
|
170 | | -- [*Aptana Studio*](http://aptana.com/) ( http://aptana.com/ ): |
| 168 | +- [*Aptana Studio*](http://aptana.com) (<http://aptana.com>): |
171 | 169 | Full-sized IDE with a built-in terminal and many other tools. |
172 | 170 |
|
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 |
175 | 173 | editor with the support of many languages. |
176 | 174 |
|
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 |
179 | 177 | for Node.js debugging. It is developed by JetBrains and marketed as |
180 | 178 | the smartest JavaScript IDE (Figure 2-6 ). |
181 | 179 |
|
182 | 180 | [*MS Visual |
183 | 181 | 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 |
185 | 183 | for the famous Visual Studio environment from a small |
186 | 184 | Redmond company. |
187 | 185 |
|
@@ -197,16 +195,16 @@ Version Control Systems |
197 | 195 | ----------------------- |
198 | 196 |
|
199 | 197 | 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 |
201 | 199 | an only-one-developer situation. Also many cloud services (e.g., Heroku) |
202 | 200 | require Git for deployment. We also highly recommend getting used to Git |
203 | 201 | 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>). |
206 | 204 |
|
207 | 205 | Subversion is a nondistributed version control system. This article |
208 | 206 | compares Git vs. Subversion |
209 | | -(https://git.wiki.kernel.org/index.php/GitSvnComparison). |
| 207 | +(<https://git.wiki.kernel.org/index.php/GitSvnComparison>). |
210 | 208 |
|
211 | 209 | Here are the steps to install and set up Git on your machine: |
212 | 210 |
|
@@ -223,9 +221,9 @@ Here are the steps to install and set up Git on your machine: |
223 | 221 |
|
224 | 222 | 3. Find the terminal app by using Command + Space, a.k.a. Spotlight |
225 | 223 | (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>). |
229 | 227 |
|
230 | 228 |
|
231 | 229 |  |
@@ -273,28 +271,28 @@ GUIs, but they are simple and fast. You can install them with npm (comes |
273 | 271 | with Node.js; instructions are later in this chapter): |
274 | 272 |
|
275 | 273 | - [*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 |
277 | 275 | built-in caching. |
278 | 276 |
|
279 | 277 | - [*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 |
281 | 279 | command-line HTTP server. |
282 | 280 |
|
283 | 281 | If you prefer something with GUIs to a command-line interface (CLI), you |
284 | 282 | might want to consider the following modifications of the Apache web |
285 | 283 | server. MAMP, MAMP Stack, and XAMPP have intuitive GUIs that allow you |
286 | 284 | to change configurations and host file settings. |
287 | 285 |
|
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, |
289 | 287 | PHP personal web server for Mac OS X. |
290 | 288 |
|
291 | 289 | - [*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, |
293 | 291 | 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>). |
295 | 293 |
|
296 | 294 | - [*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 |
298 | 296 | containing MySQL, PHP and Perl for Windows, Mac, Linux, and Solaris. |
299 | 297 |
|
300 | 298 | 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 |
311 | 309 | (i.e., $PATH variable, Step 3). Here we describe the MongoDB |
312 | 310 | installation from the official package, because we found that this |
313 | 311 | 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>). |
317 | 314 |
|
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>). |
319 | 316 | For the latest Apple laptops, like MacBook Air, select OS X |
320 | 317 | 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>). |
322 | 319 |
|
323 | 320 | Tip To figure out the architecture type of your processor, type the $ uname -p at the command line. |
324 | 321 |
|
@@ -346,7 +343,7 @@ mongodb.org/manual/installation/). |
346 | 343 | 2-11): |
347 | 344 |
|
348 | 345 | `$ sudo mkdir -p /data/db` |
349 | | - ` $ sudo chown `id -u` /data/db` |
| 346 | + `$ sudo chown `id -u` /data/db` |
350 | 347 |
|
351 | 348 |  |
352 | 349 |
|
@@ -411,9 +408,9 @@ Commands `find` and `save` do exactly what you might think they do. |
411 | 408 |
|
412 | 409 | Detailed instructions are also available at MongoDB.org: Install MongoDB |
413 | 410 | 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 |
415 | 412 | 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>). |
417 | 414 |
|
418 | 415 | Note MAMP and XAMPP applications come with MySQL—an open source traditional SQL database—and phpMyAdmin—a web interface for MySQL database. |
419 | 416 |
|
@@ -438,7 +435,7 @@ proceeding to the next chapter. |
438 | 435 |
|
439 | 436 | ### Node.js Installation |
440 | 437 |
|
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 |
442 | 439 | installation is trivial: Download the archive and run the \*.pkg package |
443 | 440 | installer. To check the installation of Node.js, you could type and |
444 | 441 | execute: |
@@ -461,7 +458,7 @@ solutions for that: |
461 | 458 | - [*Nave*](https://github.com/isaacs/nave) |
462 | 459 | (https://github.com/isaacs/nave): Virtual environments for Node.js |
463 | 460 |
|
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 |
465 | 462 | version management |
466 | 463 |
|
467 | 464 | 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 |
485 | 482 | Hosted |
486 | 483 | Libraries](https://developers.google.com/speed/libraries/devguide) |
487 | 484 | (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 |
490 | 487 | the apps will be faster for some users, but won’t work locally at all |
491 | 488 | without the Internet. |
492 | 489 |
|
493 | 490 | - 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 |
495 | 492 | development folder (~/Documents/Development) or any other folder. |
496 | 493 |
|
497 | 494 | - 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). |
499 | 496 |
|
500 | 497 | - jQuery is available at [jquery.com](http://jquery.com). |
501 | 498 |
|
@@ -529,7 +526,7 @@ SSH Keys |
529 | 526 | SSH keys provide a secure connection without the need to enter user name |
530 | 527 | and password every time. For GitHub repositories, the latter approach is |
531 | 528 | 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 |
533 | 530 | |
534 | 531 |
|
535 | 532 | To generate SSH keys for GitHub on Mac OS X/UNIX machines do the |
@@ -540,7 +537,7 @@ following: |
540 | 537 | $ cd ~/.ssh |
541 | 538 | $ ls -lah |
542 | 539 |
|
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 |
544 | 541 | an example), you could delete them or back them up into a separate |
545 | 542 | folder by using the following commands: |
546 | 543 |
|
@@ -551,10 +548,10 @@ following: |
551 | 548 | 3. Now we can generate a new SSH key pair using the ssh-keygen command, |
552 | 549 | assuming we are in the ~/.ssh folder: |
553 | 550 |
|
554 | | - $ ssh-keygen -t rsa -C "your\_email@youremail.com" |
| 551 | + $ ssh-keygen -t rsa -C "your_email@youremail.com" |
555 | 552 |
|
556 | 553 | 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 |
558 | 555 | clipboard (Figure 2-16): |
559 | 556 |
|
560 | 557 | $ pbcopy < ~/.ssh/id_rsa.pub |
@@ -563,7 +560,7 @@ following: |
563 | 560 |
|
564 | 561 | ***Figure 2-16.** Generating RSA key for SSH and copying public key to clipboard* |
565 | 562 |
|
566 | | -5. Alternatively, open id\_rsa.pub file in the default editor: |
| 563 | +5. Alternatively, open id_rsa.pub file in the default editor: |
567 | 564 |
|
568 | 565 | `$ open id_rsa.pub` |
569 | 566 |
|
@@ -609,11 +606,11 @@ If for some reason you have a different message, please repeat Steps 3 |
609 | 606 | and 4 from the previous section on SSH keys or reupload the content of |
610 | 607 | your \*.pub file to GitHub. |
611 | 608 |
|
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! |
613 | 610 |
|
614 | 611 | More instructions are available at GitHub: [Generating SSH |
615 | 612 | 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>). |
617 | 614 |
|
618 | 615 | Windows users might find the SSH key generator feature in \[PuTTY\] |
619 | 616 | useful. |
@@ -625,13 +622,13 @@ Here are the steps to set up a Windows Azure account: |
625 | 622 |
|
626 | 623 | 1. You'll need to sign up for Windows Azure Web Site and Virtual |
627 | 624 | 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>. |
629 | 626 |
|
630 | 627 | 2. Enable Git Deployment and create a user name and password, then |
631 | 628 | upload the SSH public key to Windows Azure. |
632 | 629 |
|
633 | 630 | 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>. |
635 | 632 |
|
636 | 633 | 4. To check your installation type: |
637 | 634 |
|
@@ -641,7 +638,7 @@ Here are the steps to set up a Windows Azure account: |
641 | 638 |
|
642 | 639 | `Windows Azure: Microsoft's Cloud Platform... Tool Version 0.6.0` |
643 | 640 |
|
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> |
645 | 642 | (Figure 2-18). |
646 | 643 |
|
647 | 644 |  |
@@ -667,14 +664,14 @@ Here are the steps to set up a Windows Azure account: |
667 | 664 |
|
668 | 665 | 9. Advanced user option: Follow this tutorial to create a virtual |
669 | 666 | 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). |
671 | 668 |
|
672 | 669 |
|
673 | 670 | Heroku |
674 | 671 | ------ |
675 | 672 |
|
676 | 673 | 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 |
678 | 675 | the sense that you can use Git to deploy applications. There is no need |
679 | 676 | to install Virtual Machine for MongoDB because [Heroku has a MongoHQ |
680 | 677 | add-on](https://addons.heroku.com/mongohq) |
@@ -687,8 +684,8 @@ To set up Heroku, follow these steps: |
687 | 684 |
|
688 | 685 | 2. Download Heroku Toolbelt at (https://toolbelt.heroku.com) Toolbelt |
689 | 686 | 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> ) |
692 | 689 | directly. If you utilize another OS, browse Heroku Client |
693 | 690 | GitHub (https://github.com/heroku/heroku) . |
694 | 691 |
|
@@ -714,8 +711,8 @@ To set up Heroku, follow these steps: |
714 | 711 |
|
715 | 712 |
|
716 | 713 | 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>). |
719 | 716 |
|
720 | 717 | Summary |
721 | 718 | ======= |
|