search
0
cart
close
You have no products in your basket yet
left
Tech Categories
Best Sellers
New Releases
Books
Videos
Audiobooks
Articles
Newsletters
Free Learning
right
Building Enterprise JavaScript Applications

Building Enterprise JavaScript Applications: Learn to build and deploy robust JavaScript applications using Cucumber, Mocha, Jenkins, Docker, and Kubernetes

By Daniel Li
$39.99 $27.98
Book Sep 2018 764 pages 1st Edition
eBook
$39.99 $27.98
Print
$48.99
Subscription
$15.99 Monthly
eBook
$39.99 $27.98
Print
$48.99
Subscription
$15.99 Monthly

What do you get with eBook?

Feature icon Instant access to your Digital eBook purchase
Feature icon Download this book in EPUB and PDF formats
Feature icon Access this title in our online reader with advanced features
Feature icon DRM FREE - Read whenever, wherever and however you want
Buy Now

Product Details


Publication date : Sep 29, 2018
Length 764 pages
Edition : 1st Edition
Language : English
ISBN-13 : 9781788477321
Vendor :
Facebook
Category :
toc View table of contents toc Preview Book toc Download Code

Key benefits

  • Create production-grade JavaScript applications from scratch
  • Build microservices and deploy them to a Docker container for scaling applications
  • Test and deploy your code with confidence using Travis CI

Description

With the over-abundance of tools in the JavaScript ecosystem, it's easy to feel lost. Build tools, package managers, loaders, bundlers, linters, compilers, transpilers, typecheckers - how do you make sense of it all? In this book, we will build a simple API and React application from scratch. We begin by setting up our development environment using Git, yarn, Babel, and ESLint. Then, we will use Express, Elasticsearch and JSON Web Tokens (JWTs) to build a stateless API service. For the front-end, we will use React, Redux, and Webpack. A central theme in the book is maintaining code quality. As such, we will enforce a Test-Driven Development (TDD) process using Selenium, Cucumber, Mocha, Sinon, and Istanbul. As we progress through the book, the focus will shift towards automation and infrastructure. You will learn to work with Continuous Integration (CI) servers like Jenkins, deploying services inside Docker containers, and run them on Kubernetes. By following this book, you would gain the skills needed to build robust, production-ready applications.

What you will learn

Practice Test-Driven Development (TDD) throughout the entire book Use Cucumber, Mocha and Selenium to write E2E, integration, unit and UI tests Build stateless APIs using Express and Elasticsearch Document your API using OpenAPI and Swagger Build and bundle front-end applications using React, Redux and Webpack Containerize services using Docker Deploying scalable microservices using Kubernetes

What do you get with eBook?

Feature icon Instant access to your Digital eBook purchase
Feature icon Download this book in EPUB and PDF formats
Feature icon Access this title in our online reader with advanced features
Feature icon DRM FREE - Read whenever, wherever and however you want
Buy Now

Product Details


Publication date : Sep 29, 2018
Length 764 pages
Edition : 1st Edition
Language : English
ISBN-13 : 9781788477321
Vendor :
Facebook
Category :

Table of Contents

26 Chapters
Title Page Packt Packt
Title Page
Copyright and Credits Packt Packt
Copyright and Credits
Dedication Packt Packt
Dedication
Packt Upsell Packt Packt
Packt Upsell
Contributors Packt Packt
Contributors
Preface Packt Packt
Preface
The Importance of Good Code Packt Packt
The Importance of Good Code
Technical debt
Test-Driven Development
Summary
The State of JavaScript Packt Packt
The State of JavaScript
Evolution of the web application
Benefits of Node.js
Summary
Managing Version History with Git Packt Packt
Managing Version History with Git
Setting up Git
Learning the basics
Branching and merging
Releasing code
Hotfixes
Working with others
Summary
Setting Up Development Tools Packt Packt
Setting Up Development Tools
What is Node.js?
Modules
Installing Node
Starting projects with npm
Using yarn instead of npm
Creating an HTTP server
Transpiling ES6 with Babel
Consolidating commands with npm scripts
Automating development using nodemon
Linting with ESLint
Committing our code into Git
Summary
Writing End-to-End Tests Packt Packt
Writing End-to-End Tests
Understanding different types of test
Following a TDD workflow
Gathering requirements
Setting Up E2E tests with Cucumber
Implementing step definitions
Validating data type
Migrating our API to Express
Moving common logic into middleware
Validating our payload
Testing the success scenario
Summary
Storing Data in Elasticsearch Packt Packt
Storing Data in Elasticsearch
Introduction to Elasticsearch
Installing Java and Elasticsearch
Understanding key concepts in Elasticsearch
Querying Elasticsearch from E2E tests
Indexing documents to Elasticsearch
Cleaning up after our tests
Summary
Modularizing Our Code Packt Packt
Modularizing Our Code
Modularizing our code
Adding a user profile
Summary
Writing Unit/Integration Tests Packt Packt
Writing Unit/Integration Tests
Picking a testing framework
Structuring our test files
Writing our first unit test
Completing our first unit test suite
Unit testing ValidationError
Unit testing middleware
Unit testing the request handler
Unit testing our engine
Integration testing our engine
Adding test coverage
Finishing up
Summary
Designing Our API Packt Packt
Designing Our API
What it means to be RESTful
Designing our API
Completing our API
Summary
Deploying Our Application on a VPS Packt Packt
Deploying Our Application on a VPS
Obtaining an IP address
Setting up a Virtual Private Server (VPS)
Running our API
Keeping our API alive with PM2
Running our API on port 80
Setting up NGINX
From IP to domain
Summary
Continuous Integration Packt Packt
Continuous Integration
Continuous Integration (CI)
Integrating with Travis CI
Continuous Integration with Jenkins
Summary
Security – Authentication and Authorization Packt Packt
Security – Authentication and Authorization
What is Authentication?
Introduction to password-based authentication
Implementing password-base authentication
Keeping users authenticated
Next steps
Summary
Documenting Our API Packt Packt
Documenting Our API
Overview of OpenAPI and Swagger
Defining an API specification with OpenAPI
Generating documentation with Swagger UI
Deployment
Summary
Creating UI with React Packt Packt
Creating UI with React
Picking a front-end framework/library
Getting started with React
Modularizing React
Summary
E2E Testing in React Packt Packt
E2E Testing in React
Testing strategies
Writing E2E tests with Gherkin, Cucumber, and Selenium
Routing with React Router
TDD
Over to you
Summary
Managing States with Redux Packt Packt
Managing States with Redux
State management tools
Converting to Redux
Summary
Migrating to Docker Packt Packt
Migrating to Docker
Problems with manual deployment
Introduction to Docker
Mechanics of Docker
Following best practices
Summary
Robust Infrastructure with Kubernetes Packt Packt
Robust Infrastructure with Kubernetes
High availability
High reliability
High throughput
High scalability
Clusters and microservices
Cluster management
Picking a cluster management tool
Control Planes and components
Kubernetes objects
Setting up the local development environment
Creating our cluster
Creating our first Pod
Understanding high-level Kubernetes objects
Declarative over imperative
Configuring Elasticsearch cluster
Deploying on cloud provider
Persisting data
Introducing PersistentVolume (PV)
Dynamic volume provisioning with StorageClass
Visualizing Kubernetes Objects using the Web UI Dashboard
Deploying the backend API
Creating a backend Service
Exposing services through Ingress
Summary
Other Books You May Enjoy Packt Packt
Other Books You May Enjoy
Leave a review - let other readers know what you think
Index Packt Packt
Index
Get free access to Packt library with over 7500+ books and video courses for 7 days!
Start Free Trial

FAQS

How do I buy and download an eBook? Packt Packt

Where there is an eBook version of a title available, you can buy it from the book details for that title. Add either the standalone eBook or the eBook and print book bundle to your shopping cart. Your eBook will show in your cart as a product on its own. After completing checkout and payment in the normal way, you will receive your receipt on the screen containing a link to a personalised PDF download file. This link will remain active for 30 days. You can download backup copies of the file by logging in to your account at any time.

If you already have Adobe reader installed, then clicking on the link will download and open the PDF file directly. If you don't, then save the PDF file on your machine and download the Reader to view it.

Please Note: Packt eBooks are non-returnable and non-refundable.

Packt eBook and Licensing When you buy an eBook from Packt Publishing, completing your purchase means you accept the terms of our licence agreement. Please read the full text of the agreement. In it we have tried to balance the need for the ebook to be usable for you the reader with our needs to protect the rights of us as Publishers and of our authors. In summary, the agreement says:

  • You may make copies of your eBook for your own use onto any machine
  • You may not pass copies of the eBook on to anyone else
How can I make a purchase on your website? Packt Packt

If you want to purchase a video course, eBook or Bundle (Print+eBook) please follow below steps:

  1. Register on our website using your email address and the password.
  2. Search for the title by name or ISBN using the search option.
  3. Select the title you want to purchase.
  4. Choose the format you wish to purchase the title in; if you order the Print Book, you get a free eBook copy of the same title. 
  5. Proceed with the checkout process (payment to be made using Credit Card, Debit Cart, or PayPal)
Where can I access support around an eBook? Packt Packt
  • If you experience a problem with using or installing Adobe Reader, the contact Adobe directly.
  • To view the errata for the book, see www.packtpub.com/support and view the pages for the title you have.
  • To view your account details or to download a new copy of the book go to www.packtpub.com/account
  • To contact us directly if a problem is not resolved, use www.packtpub.com/contact-us
What eBook formats do Packt support? Packt Packt

Our eBooks are currently available in a variety of formats such as PDF and ePubs. In the future, this may well change with trends and development in technology, but please note that our PDFs are not Adobe eBook Reader format, which has greater restrictions on security.

You will need to use Adobe Reader v9 or later in order to read Packt's PDF eBooks.

What are the benefits of eBooks? Packt Packt
  • You can get the information you need immediately
  • You can easily take them with you on a laptop
  • You can download them an unlimited number of times
  • You can print them out
  • They are copy-paste enabled
  • They are searchable
  • There is no password protection
  • They are lower price than print
  • They save resources and space
What is an eBook? Packt Packt

Packt eBooks are a complete electronic version of the print edition, available in PDF and ePub formats. Every piece of content down to the page numbering is the same. Because we save the costs of printing and shipping the book to you, we are able to offer eBooks at a lower cost than print editions.

When you have purchased an eBook, simply login to your account and click on the link in Your Download Area. We recommend you saving the file to your hard drive before opening it.

For optimal viewing of our eBooks, we recommend you download and install the free Adobe Reader version 9.