• Complain

Chris Sevilleja - MEAN Machine: A beginner’s practical guide to the JavaScript stack

Here you can read online Chris Sevilleja - MEAN Machine: A beginner’s practical guide to the JavaScript stack full text of the book (entire story) in english for free. Download pdf and epub, get meaning, cover and reviews about this ebook. year: 2015, publisher: Leanpub, genre: Home and family. Description of the work, (preface) as well as reviews are available. Best literature library LitArk.com created for fans of good reading and offers a wide selection of genres:

Romance novel Science fiction Adventure Detective Science History Home and family Prose Art Politics Computer Non-fiction Religion Business Children Humor

Choose a favorite category and find really read worthwhile books. Enjoy immersion in the world of imagination, feel the emotions of the characters or learn something new for yourself, make an fascinating discovery.

No cover

MEAN Machine: A beginner’s practical guide to the JavaScript stack: summary, description and annotation

We offer to read an annotation, description, summary or preface (depends on what the author of the book "MEAN Machine: A beginner’s practical guide to the JavaScript stack" wrote himself). If you haven't found the necessary information about the book — write in the comments, we will try to find it.

Chris Sevilleja: author's other books


Who wrote MEAN Machine: A beginner’s practical guide to the JavaScript stack? Find out the surname, the name of the author of the book and a list of all author's works by series.

MEAN Machine: A beginner’s practical guide to the JavaScript stack — read online for free the complete book (whole text) full work

Below is the text of the book, divided by pages. System saving the place of the last page read, allows you to conveniently read the book "MEAN Machine: A beginner’s practical guide to the JavaScript stack" online for free, without having to search again every time where you left off. Put a bookmark, and you can go to the page where you finished reading at any time.

Light

Font size:

Reset

Interval:

Bookmark:

Make
MEAN Machine A beginners practical guide to the JavaScript stack Chris - photo 1
MEAN Machine
A beginner's practical guide to the JavaScript stack.
Chris Sevilleja and Holly Lloyd

This book is for sale at http://leanpub.com/mean-machine

This version was published on 2015-03-10

This is a Leanpub book Leanpub empowers authors and publishers with - photo 2

* * * * *

This is a Leanpub book. Leanpub empowers authors and publishers with the Lean Publishing process. Lean Publishing is the act of publishing an in-progress ebook using lightweight tools and many iterations to get reader feedback, pivot until you have the right book and build traction once you do.

* * * * *

2014 - 2015 Chris Sevilleja and Holly Lloyd
Preface
Conventions Used in This Book
Note This icon signifies a tip suggestion or general note Warning This - photo 3

Note

This icon signifies a tip, suggestion, or general note.


Warning This icon indicates a warning or caution Tip This icon indicates a - photo 4

Warning

This icon indicates a warning or caution.


Tip This icon indicates a pro tip that will help your development Code Samples - photo 5

Tip

This icon indicates a pro tip that will help your development.

Code Samples

This book will mix in concept and code by building applications in each chapter. Each application will be useful in understanding the core concepts and building up to a fully fledged MEAN stack application.

Throughout the chapters, we will work with code samples that build off of each other, leading up to one full application. Well add links to the sample code so that you can download and follow along if you wish. After seeing real examples and concepts in action, youll be able to use these concepts to build your very own projects.

Code License

The sample code in this book is released under the MIT License. Feel free to use any and all parts of them in your own applications and anything you build or write.

Code Repository

The code for the samples in this book can be found at: http://github.com/scotch-io/mean-machine-code.

Well provide links to the specific folders at the start of every application so stay tuned for those.

Get In Contact

If you have any questions, comments, kind words about the book (we love those), or corrections in the book (we like those), feel free to contact us at .

Also, take a look at our site (Scotch.io) for great articles on all sorts of web development topics.

Introduction

Node is an exciting JavaScript language for web development that has been growing in popularity in recent years. It started out for small development projects and has since penetrated the enterprise and can be seen in large companies like Microsoft, eBay, LinkedIn, Yahoo, WalMart, Uber, Oracle, and several more.

Why MEAN?

The MEAN stack uses four pieces of software: MongoDB, ExpressJS, AngularJS, and NodeJS. Using these four tools together lets developers create efficient, well organized, and interactive applications quickly.

Since every component of the stack uses JavaScript, you can glide through your web development code seamlessly. Using all JavaScript lets us do some great things like:

  • Use JavaScript on the server-side (Node and Express)
  • Use JavaScript on the client-side (Angular)
  • Store JSON objects in MongoDB
  • Use JSON objects to transfer data easily from database to server to client

A single language across your entire stack increases productivity. Even client side developers that work in Angular can easily understand most of the code on the server side.

Starting with the database, we store information in a JSON like format. We can then write JSON queries on our Node server and send this directly to our front-end using Angular. This is especially useful when you have multiple developers working on a project together. Server-side code becomes more readable to front-end developers and vice versa. This makes everything a little more transparent and has been shown to greatly increase development time. The ease of development will become much more apparent once we start digging into examples and hopefully save you and your team some headaches in the future.

When To Use the MEAN Stack

The MEAN stack benefits greatly from the strengths of Node. Node lets us build real-time open APIs that we can consume and use with our frontend Angular code. Transferring data for applications like chat systems, status updates, or almost any other scenario that requires quick display of real-time data.

  • Chat client
  • Real-time user updates (like Twitter feed)
  • RSS feed
  • Online shop
  • Polling app
When NOT To Use the MEAN Stack

As with any language or set of languages, there are plenty of scenarios where MEAN wouldnt be the best fit and its very important to recognize this before diving into coding. A lot of the benefits of the MEAN stack and reasons why you would use it are rooted in its use of Node. We see this same trend again with reasons you may not want to use it.

Node is generally not the best pick for CPU intensive tasks. There have been a few arguments for cases where Node actually did well in computationally heavy applications, but for the novice its best to steer away from Node if you know your application requires a lot of computing (in other words lets not try to calculate the 1000th prime number here).

Whos Getting MEAN?

Many developers have shouted their praise for the MEAN stack. This stack uses JavaScript for every operation, which makes it appealing to developers who want to flow smoothly through a project. Some large companies are already reaping the benefits and have integrated Node into many of their operations.

Walmart Walmart Walmart began using Nodejs in 2012 to provide mobile users - photo 6

Walmart

Walmart: Walmart began using Node.js in 2012 to provide mobile users with a modern front end experience. Making use of the JavaScript platform, they were able to quickly and easily integrate their existing APIs with their Node application. They also stated that 53% of their Black Friday online traffic went to their Node servers with zero downtime.

Yahoo Yahoo Yahoo started experimenting with Node back in 2010 At first - photo 7

Yahoo

Yahoo!: Yahoo started experimenting with Node back in 2010. At first they just used it for small things like file uploads, and now they use Node to handle nearly 2 million requests per minute. They have noted increases in speed and a simpler development process.

Linkedin LinkedIn LinkedIn began developing the server side of their mobile - photo 8

Linkedin

LinkedIn LinkedIn began developing the server side of their mobile app entirely with Node. They were previously using Ruby, but since the switch they have seen huge increases in performance, ranging from 2 to 10 times faster.

Next page
Light

Font size:

Reset

Interval:

Bookmark:

Make

Similar books «MEAN Machine: A beginner’s practical guide to the JavaScript stack»

Look at similar books to MEAN Machine: A beginner’s practical guide to the JavaScript stack. We have selected literature similar in name and meaning in the hope of providing readers with more options to find new, interesting, not yet read works.


Reviews about «MEAN Machine: A beginner’s practical guide to the JavaScript stack»

Discussion, reviews of the book MEAN Machine: A beginner’s practical guide to the JavaScript stack and just readers' own opinions. Leave your comments, write what you think about the work, its meaning or the main characters. Specify what exactly you liked and what you didn't like, and why you think so.