Book Image

JavaScript and JSON Essentials - Second Edition

By : Bruno Joseph D'mello, Sai S Sriparasa
Book Image

JavaScript and JSON Essentials - Second Edition

By: Bruno Joseph D'mello, Sai S Sriparasa

Overview of this book

JSON is an established and standard format used to exchange data. This book shows how JSON plays different roles in full web development through examples. By the end of this book, you'll have a new perspective on providing solutions for your applications and handling their complexities. After establishing a strong basic foundation with JSON, you'll learn to build frontend apps by creating a carousel. Next, you'll learn to implement JSON with Angular 5, Node.js, template embedding, and composer.json in PHP. This book will also help you implement Hapi.js (known for its JSON-configurable architecture) for server-side scripting. You'll learn to implement JSON for real-time apps using Kafka, as well as how to implement JSON for a task runner, and for MongoDB BSON storage. The book ends with some case studies on JSON formats to help you sharpen your creativity by exploring futuristic JSON implementations. By the end of the book, you'll be up and running with all the essential features of JSON and JavaScript and able to build fast, scalable, and efficient web applications.
Table of Contents (20 chapters)
Title Page
Copyright and Credits
Dedication
Packt Upsell
Contributors
Preface
Index

Dependency management


A dependency manager is a software program that keeps track of all the necessary base programs that are required for a dependent program to run. A common practice in a software development life cycle is to perform unit tests by using a unit-testing framework; the unit-testing framework in turn might need some base libraries to be installed or there might be a few settings to enable the use of that framework.

These operations are often handled by writing up quick scripts, but as the project grows, the dependencies grow along with the project. Along the same lines, tracking these changes and making sure different teams working on the project get the relevant updates, which is done by scripts, is a tough task. By introducing a dependency manager, we will be automating the whole process, which adds consistency and saves time.

Using composer.json in PHP

Dependency management has often been a little rocky, and for new developers who are just coming in adding new frameworks into...