Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Modern JavaScript Web Development Cookbook

You're reading from   Modern JavaScript Web Development Cookbook Easy solutions to common and everyday JavaScript development problems

Arrow left icon
Product type Paperback
Published in Dec 2018
Publisher Packt
ISBN-13 9781788992749
Length 642 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Author (1):
Arrow left icon
Federico Kereki Federico Kereki
Author Profile Icon Federico Kereki
Federico Kereki
Arrow right icon
View More author details
Toc

Table of Contents (15) Chapters Close

Preface 1. Working with JavaScript Development Tools FREE CHAPTER 2. Using Modern JavaScript Features 3. Developing with Node 4. Implementing RESTful Services with Node 5. Testing and Debugging Your Server 6. Developing with React 7. Enhancing Your Application 8. Expanding Your Application 9. Debugging Your Application 10. Testing Your Application 11. Creating Mobile Apps with React Native 12. Testing and Debugging Your Mobile App 13. Creating a Desktop Application with Electron 14. Other Books You May Enjoy

What this book covers

In this book, we will cover several subjects and the book is divided into five parts. In part
one, in the first two chapters we'll get an overview of JavaScript tools and features:

  • Chapter 1, Working with JavaScript Development Tools, is where we'll study and install several tools that will help our development, such as Visual Studio Code for development, npm for package management, Git for version control, Prettier for source code formatting, ESLint for code quality checks, and Flow for data type checks, among others.
  • Chapter 2, Using Modern JavaScript Features, we will see how to use types in your code, and also go into more recent additions to JavaScript, dealing with strings, scopes, functions, async calls, class-oriented programming, modules, and even a touch of Functional Programming (FP).

In part two, the next three chapters, we'll move on to developing server-side code using Node, ending by writing a complete RESTful server:

  • Chapter 3, Developing with Node, covers the basics of Node, and learn how to use JavaScript for server development. We'll cover themes such as streaming, accessing databases, and executing external processes, among others.
  • Chapter 4, Implementing RESTful Services with Node, we'll see how to develop a server with Express, serving static files, and dealing with Cross-Origin Resource Sharing (CORS) permissions and with authentication rules, tying it all together by building a RESTful set of services.
  • Chapter 5, Testing and Debugging Your Server, will teach you how to debug your code and write unit tests for it by using more tools, including Winston, Morgan, Jest, Postman, and Swagger.

After having worked on the server, we'll move to browsers, which makes up part three of this book. We devote the next five chapters to developing web applications with React and using the server we just developed as our backend, so we'll be going full stack with our development:

  • Chapter 6, Developing with React, we'll learn about the React framework, set it up to use the development tools, and then we'll create a Single Page Application (SPA), which we'll expand in the following chapters.
  • Chapter 7, Enhancing Your Application, deals with styling your application with SASS and StyledComponents, making it adaptive and responsive, and covers accessibility and internationalization concerns.
  • Chapter 8, Expanding Your Application, we'll see how to handle state with Redux, a powerful tool that will be necessary for larger-scale websites, and we'll also include topics such as routing, authorization, and code splitting for performance.
  • Chapter 9, Debugging Your Application, we'll cover themes such as logging and using browser and standalone tools for enhanced debugging.
  • Chapter 10, Testing Your Application, is where we will write unit tests for our code using Jest, and we'll also see how to use Storybook to simplify both development and testing.

It so happens that a variant of React, React Native, can be used to develop mobile
applications, and that will be our next topic for the following two chapters which make up
for part four of this book:

  • Chapter 11, Creating Mobile Apps with React Native, we'll see how to install and use React Native to build a mobile version of our web pages, which will work with different sized devices, in landscape or portrait mode, taking advantage of native features.
  • Chapter 12, Testing and Debugging Your Mobile App, we'll cover how to debug and test our code, using some tools we have already seen, such as Jest and Storybook, plus a few new ones, specific for mobile development.

Finally in part five, for the last chapter of the book we'll use both our server and client-side
knowledge, to develop native desktop applications with Electron:

  • Chapter 13, Creating a Desktop Application with Electron, is where we'll see that we can use Electron together with the tools we have already seen, React and Node, to produce, debug, and test native desktop applications, which you can distribute to users, who will be able to install them on their own machines just as they'd do with any other desktop program.
lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image