Books: 6

Mocha

CoverTitleYear
Learn how to build scalable APIs using the Node.js platform and ES6 (EcmaScript 2015) with this quick, informative guide. Developing systems for the wide range of devices available in the modern world requires the construction of APIs designed to work only with data in a centralized manner, allowing more » client-side applications to be developed separately and have a unique interface for the final user. Node.js has proven itself to be an excellent platform for building REST APIs because of its single-thread architecture. It has a low learning curve and can be understood by anyone who has a basic understanding of the JavaScript language. UseBuilding APIs with Node.jstoday to understand how Node.js APIs work, and how you can build your own. What You Will Learn Build scalable APIs using the Node.js platform Use ES6, Express, Passport, ApiDoc, Mocha, Helmet and more Integrate an SQL database through Sequelize.js and build a single page application using Vanilla.js Who This Book Is For Ideal for developers who have a basic understanding of JavaScript and Node.js. « less
2016
Rapid, Confident, Maintainable Code
Debunk the myth that JavaScript is not easily testable. Whether you use Node.js, Express, MongoDB, jQuery, AngularJS, or directly manipulate the DOM, you can test-drive JavaScript. Learn the craft of writing meaningful, deterministic automated tests with Karma, Mocha, and Chai. Test asynchronous JavaScript, more » decouple and properly mock out dependencies, measure code coverage, and create lightweight modular designs of both server-side and client-side code. Your investment in writing tests will pay high dividends as you create code that's predictable and cost-effective to change. Design and code JavaScript applications with automated tests. Writing meaningful tests is a skill that takes learning, some unlearning, and a lot of practice, and with this book, you'll hone that skill. Fire up the editor and get hands-on through practical exercises for effective automated testing and designing maintainable, modular code. Start by learning when and why to do manual testing vs. automated verification. Focus tests on the important things, like the pre-conditions, the invariants, complex logic, and gnarly edge cases. Then begin to design asynchronous functions using automated tests. Carefully decouple and mock out intricate dependencies such as the DOM, geolocation API, file and database access, and Ajax calls to remote servers. Step by step, test code that uses Node.js, Express, MongoDB, jQuery, and AngularJS. Know when and how to use tools such as Chai, Istanbul, Karma, Mocha, Protractor, and Sinon. Create tests with minimum effort and run them fast without having to spin up web servers or manually edit HTML pages to run in browsers. Then explore end-to-end testing to ensure all parts are wired and working well together. Don't just imagine creating testable code, write it. What You Need: A computer with a text editor and your favorite browser. The book provides instructions to install the necessary automated testing-related tools. « less
2016
Leverage the features of TypeScript to boost your development skills and create captivating applications
ABOUT THIS BOOK * Learn how to develop modular, scalable, maintainable, and adaptable web applications by taking advantage of TypeScript * Explore techniques to use TypeScript alongside other leading tools such as Angular 2, React, and Node.js * Focusing on design patterns in TypeScript, this step-by-step more » guide demonstrates all the important design patterns in practice WHO THIS BOOK IS FOR This Learning Path is for intermediate-level JavaScript developers who want to use TypeScript to build beautiful web applications and fun projects. No prior knowledge of TypeScript is required, but a basic understanding of jQuery is expected. This Learning Path is also for experienced TypeScript developers who want to take their skills to the next level, and also for web developers who wish to make the most of TypeScript. WHAT YOU WILL LEARN * Understand the key TypeScript language features and runtime * Install and configure the necessary tools in order to start developing an application * Create object-oriented code that adheres to the SOLID principles * Develop robust applications with testing (Mocha, Chai, and SinonJS) * Apply GoF patterns in an application with a testing approach * Identify the challenges when developing an application * Migrate JavaScript codebases to TypeScript to improve your workflow * Utilize System.JS and Webpack to load scripts and their dependencies * Develop high performance server-side applications to run within Node.js IN DETAIL TypeScript is an open source and cross-platform typed superset of JavaScript that compiles to plain JavaScript that runs in any browser or any host. TypeScript adds optional static types, classes, and modules to JavaScript, to enable great tooling and better structuring of large JavaScript applications. Through this three-module learning path, you'll learn the ins-and-outs of TypeScript for building more robust software. The first module gets you started with TypeScript and helps you understand the basics of TypeScript and automation tools. Get a detailed description of function, generics, callbacks, and promises, and discover the object-oriented features and memory management functionality of TypeScript. The next module starts by explaining the current challenges when designing and developing an application and how you can solve these challenges by applying the correct design pattern and best practices. You will be introduced to low-level programming concepts to help you write TypeScript code, as well as working with software architecture, best practices, and design aspects. The final module will help you build a complete single page app with Angular 2, create a neat mobile app using NativeScript, and even build a Pac Man game with TypeScript. As if the fun wasn't enough, you'll also find out how to migrate your legacy codebase from JavaScript to TypeScript. By the end of this Learning Path, you will be able to take your skills up a notch and develop full-fledged web applications using the latest features of the TypeScript. This Learning Path combines some of the best that Packt has to offer in one complete, curated package. It includes content from the following Packt products: * Learning TypeScript by Remo H. Jansen * TypeScript Design Patterns by Vilic Vane * TypeScript Blueprints by Ivo Gabe de Wolff STYLE AND APPROACH This is a step-by-step, practical guide covering the fundamentals of TypeScript with practical examples. The end-to-end projects included in this book will give you ready-to-implement solutions for your business scenario, showcasing the depth and robustness of TypeScript. « less
2016
Create powerful yet simple-to-code BDD test suites in JavaScript using the most popular tools in the community
JavaScript is not only widely used to create attractive user interfaces for the Web, but with the advent of Node.js, it is also becoming a very popular and powerful language to write server-side applications. Using behavior-driven development and some common testing patterns and best practices, you will more » be able to avoid these traps. This book will show you how to do BDD in a practical way. We will start with a basic introduction of what BDD is and why the classical approach to testing has failed. Afterwards, we will dive directly into an introduction to Node.js, Mocha, and Sinon.JS. Finally, we will cover more advanced subjects such as how to write a fast and effective test suite for a RESTful web API, and how to do the same with a rich UI using Cucumber.js and Protractor. This book will give you great insight into how to architect your system to make it more testable and modular, but at the same time avoid the nightmare of abusing mock objects. ***** Who This Book Is For ***** TThis book is ideal for any JavaScript developer who is interested in producing well-tested code. If you have no prior experience with testing, Node.js, or any other tool, do not worry, as they will be explained from scratch. « less
2015
Exploit the features of TypeScript to develop and maintain captivating web applications with ease
ABOUT THIS BOOK * Learn how to develop modular, scalable, maintainable, and adaptable web applications by taking advantage of TypeScript * Create object-oriented JavaScript that adheres to the solid principles efficiently * A comprehensive guide that explains the fundamentals of TypeScript with the more » help of practical examples WHO THIS BOOK IS FOR If you are a JavaScript developer aiming to learn TypeScript to build beautiful web applications, then this book is for you. No prior knowledge of TypeScript is required. WHAT YOU WILL LEARN * Learn the key TypeScript language features and language runtime * Develop modular, scalable, maintainable, and adaptable web applications * Create object-oriented code that adheres to the solid principles * Save time using automation tools like Gulp and Karma * Develop robust applications with testing (Mocha, Chai and SinonJS) * Put your TypeScript skills in practice by developing a single-page web application framework from scratch * Use the JavaScript of tomorrow (ES6 and ES7) today with TypeScript IN DETAIL TypeScript is an open source and cross-platform typed superset of JavaScript that compiles to plain JavaScript that runs in any browser or any host. It allows developers to use the future versions of JavaScript (ECMAScript 6 and 7) today. TypeScript adds optional static types, classes, and modules to JavaScript, to enable great tooling and better structuring of large JavaScript applications. This book is a step-by-step guide that will get you started with TypeScript with the help of practical examples. You start off by understanding the basics of TypeScript. Next, automation tools like Grunt are explained followed by a detailed description of function, generics, callbacks and promises. After this, object-oriented features and the memory management functionality of TypeScript are explained. At the end of this book, you will have learned enough to implement all the concepts and build a single page application from scratch. STYLE AND APPROACH This is a step-by-step guide that covers the fundamentals of TypeScript with practical examples. Each chapter introduces a set of TypeScript language features and leads the readers toward the development of a real-world application. « less
2015
Creative professionals seeking the fastest, easiest, most comprehensive way to learn Adobe After Effects CS6 choose Adobe After Effects CS6 Classroom in a Book from the Adobe Creative Team at Adobe Press. The 15 project-based lessons in this book show readers step-by-step the key techniques for working more » in After Effects CS6 and how to work efficiently and deliver in the widest possible range of media types. In addition to learning the key elements of the After Effects interface, this completely revised CS6 edition covers new features, including the Global Performance Cache, 3D Camera Tracker, Ray-traced 3D rendering, variable mask feathering, tight integration with Adobe Illustrator, rolling shutter repair, Pro Import files from Avid Media Composer and Final Cut Pro 7, improved mocha AE workflow, and more. “The Classroom in a Book series is by far the best training material on the market. Everything you need to master the software is included: clear explanations of each lesson, step-by-step instructions, and the project files for the students.” –Barbara Binder, Adobe Certified Instructor, Rocky Mountain Training Classroom in a Book®, the best-selling series of hands-on software training workbooks, helps you learn the features of Adobe software quickly and easily. Classroom in a Book offers what no other book or training program does–an official training series from Adobe Systems Incorporated, developed with the support of Adobe product experts. « less
2012