Vai al contenuto principale della pagina

JavaScript and JSON Essentials : Build Light Weight, Scalable, and Faster Web Applications with the Power of JSON



(Visualizza in formato marc)    (Visualizza in BIBFRAME)

Autore: Joseph D'mello Bruno Visualizza persona
Titolo: JavaScript and JSON Essentials : Build Light Weight, Scalable, and Faster Web Applications with the Power of JSON Visualizza cluster
Pubblicazione: Birmingham : , : Packt Publishing, Limited, , 2018
©2018
Edizione: 2nd ed.
Descrizione fisica: 1 online resource (226 p.)
Disciplina: 005.2762
Soggetto topico: JavaScript
Altri autori: S SriparasaSai  
Note generali: Setting up Apache Kafka.
Nota di contenuto: Cover -- Title Page -- Copyright and Credits -- Dedication -- Packt Upsell -- Contributors -- Table of Contents -- Preface -- Chapter 1: Getting Started with JSON -- JSON, a data exchange format -- The Hello World program with JSON -- How is JSON stored in memory? -- Datatypes in JSON -- Languages that support JSON -- JSON implementation in PHP -- JSON implementation in Python -- Summary -- Chapter 2: The JSON Structures -- Inserting external JavaScript -- Accessing objects in JSON -- Performing complex operations -- Modifying JSON -- Summary -- Chapter 3: AJAX Requests with JSON -- Basic web operations -- Synchronous vs. asynchronous -- Requirements for AJAX -- Setting up a node.js server -- Hosting JSON -- Making your first AJAX call -- Traditional callbacks -- Handling asynchronousity using a promise -- New ECMAScript generators -- Parsing JSON data -- Summary -- Chapter 4: Cross-Domain Asynchronous Requests -- The API story -- Making GET and POST AJAX calls with JSON data -- The problem with cross-domain AJAX calls -- Introduction to JSONP -- Implementation at server-side -- Implementing JSONP at client-side (browsers) -- Summary -- Chapter 5: Debugging JSON -- Using the developer tools -- Validating JSON -- Formatting JSON -- Summary -- Chapter 6: Building the Carousel Application -- Setting up the Carousel application -- Building the JSON file for the Carousel application -- Creating the Carousel application with jQuery Cycle -- Introducing Bootstrap -- Setting up Bootstrap -- Bootstrap responsiveness and styles -- Summary -- Chapter 7: Alternate Implementations of JSON -- Dependency management -- Using composer.json in PHP -- Node.js using the package.json registry -- JSON for storing application configurations -- Configuration in PHP and Python -- Configuration in frontend frameworks - Angular 5 -- Linting with tslint.json.
Configuring TypeScript using tsconfig.json -- Using package.json and package-lock.json files -- Using the angular-cli.json file -- JSON for storing application metadata -- Metadata in Angular 5 -- Constants in Node.js -- Template embedding -- Comparisons with YAML -- Summary -- Chapter 8: Introduction to hapi.js -- Basic server setup using JSON -- Using JSON metadata and constants -- Configuring API using JSON -- Configuring a plugin in hapi -- Testing the APIs using POSTMAN -- Testing hapi server APIs using POSTMAN -- JSON beneath POSTMAN -- Summary -- Chapter 9: Storing JSON Documents in MongoDB -- Setting up MongoDB -- Connecting the hapi app with MongoDB -- JSON versus BSON -- Collections -- MongoDB shell -- Inserting a JSON document -- Retrieving a JSON document -- JSON-based schemas in MongoDB -- Summary -- Chapter 10: Configuring the Task Runner Using JSON -- What is a task runner? -- Introducing gulp.js -- Creating tasks in gulp.js -- Writing a unit test -- Automation testing -- Gulp JSON configuration -- Summary -- Chapter 11: JSON for Real-Time and Distributed Data -- Using JSON with Socket.IO -- Designing the board -- Setting up the Socket.IO server -- How Socket.IO works -- Setting up the Socket.IO client -- Using JSON with Apache Kafka -- Setting up Apache Kafka -- Implementing Kafka with a Socket.IO application -- Implementing the Kafka consumer -- Summary -- Chapter 12: Case Studies in JSON -- GeoJSON - a geospatial JSON data format -- JSONLD - a JSON format for SEO -- BSON - a fast-traversal JSON format -- Better compressions with messagePack -- Summary -- Other Books You May Enjoy -- Index.
Sommario/riassunto: Use JSON for building web applications with technologies like HTML, JavaScript, Angular, Node.js, Hapi.js, Kafka, socket.io, MongoDB, Gulp.js, and handlebar.js, and others formats like GEOJSON, JSON-LD, MessagePack, and BSON.Key FeaturesUse JSON with trending technologies like Angular, Hapi.js, MongoDB, Kafka, and Socket.ioDebug, validate, and format JSON using developer toolkits, JSONLint, and JSON Editor OnlineExplore other JSON formats like GeoJSON, JSON-LD, BSON, and MessagePackBook DescriptionJSON 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.What you will learnUse JSON to store metadata for dependency managers, package managers, configuration managers, and metadata storesHandle asynchronous behavior in applications using callbacks, promises, generators, and async-await functionsUse JSON for Angular 5, Node.js, Gulp.js, and Hapi.jsImplement JSON as BSON in MongoDBMake use of JSON in developing automation scriptsImplement JSON for realtime using socket.io and distributed systems using KafkaWho this book is forIf you're a web developer with a basic understanding of JavaScript and want to write JSON data, integrate it with RESTful APIs to create faster and scalable applications, this book is for you.
Titolo autorizzato: JavaScript and JSON Essentials  Visualizza cluster
Formato: Materiale a stampa
Livello bibliografico Monografia
Lingua di pubblicazione: Inglese
Record Nr.: 9910957998603321
Lo trovi qui: Univ. Federico II
Opac: Controlla la disponibilità qui