• Complain

Michaela Lehr - 6 JavaScript Projects

Here you can read online Michaela Lehr - 6 JavaScript Projects full text of the book (entire story) in english for free. Download pdf and epub, get meaning, cover and reviews about this ebook. year: 0, genre: Home and family. Description of the work, (preface) as well as reviews are available. Best literature library LitArk.com created for fans of good reading and offers a wide selection of genres:

Romance novel Science fiction Adventure Detective Science History Home and family Prose Art Politics Computer Non-fiction Religion Business Children Humor

Choose a favorite category and find really read worthwhile books. Enjoy immersion in the world of imagination, feel the emotions of the characters or learn something new for yourself, make an fascinating discovery.

Michaela Lehr 6 JavaScript Projects

6 JavaScript Projects: summary, description and annotation

We offer to read an annotation, description, summary or preface (depends on what the author of the book "6 JavaScript Projects" wrote himself). If you haven't found the necessary information about the book — write in the comments, we will try to find it.

Theres no doubt that the JavaScript ecosystem changes fast. Not only are new tools and frameworks introduced and developed at a rapid rate, the language itself has undergone big changes with the introduction of ES2015 (aka ES6). Understandably, many articles have been written complaining about how difficult it is to learn modern JavaScript development these days. Were aiming to minimize that confusion with this set of books on modern JavaScript.This book presents six complete JavaScript projects; each taking advantage of modern JavaScript and its ecosystem. Youll learn to build several different apps, and along the way youll pick up a ton of useful advice, tips, and techniques. It contains: Build a Full-Sphere 3D Image Gallery with React VR by Michaela Lehr Build a WebRTC Video Chat Application with SimpleWebRTC by Michael Wanyoike Build a JavaScript Single Page App Without a Framework by Michael Wanyoike Build a To-do List with Hyperapp, the 1KB JS Micro-framework by Darren Jones Use Parcel to Bundle a Hyperapp App & Deploy to GitHub Pages by Darren Jones Interactive Data Visualization with Modern JavaScript and D3 by Adam JanesThis book is for all front-end developers who wish to improve their JavaScript skills. Youll need to be familiar with HTML and CSS and have a reasonable level of understanding of JavaScript in order to follow the discussion.

Michaela Lehr: author's other books


Who wrote 6 JavaScript Projects? Find out the surname, the name of the author of the book and a list of all author's works by series.

6 JavaScript Projects — read online for free the complete book (whole text) full work

Below is the text of the book, divided by pages. System saving the place of the last page read, allows you to conveniently read the book "6 JavaScript Projects" online for free, without having to search again every time where you left off. Put a bookmark, and you can go to the page where you finished reading at any time.

Light

Font size:

Reset

Interval:

Bookmark:

Make
6 JavaScript Projects

Copyright 2018 SitePoint Pty. Ltd.

  • Cover Design: Alex Walker
Notice of Rights

All rights reserved. No part of this book may be reproduced, stored in a retrieval system or transmitted in any form or by any means, without the prior written permission of the publisher, except in the case of brief quotations embodied in critical articles or reviews.

Notice of Liability

The author and publisher have made every effort to ensure the accuracy of the information herein. However, the information contained in this book is sold without warranty, either express or implied. Neither the authors and SitePoint Pty. Ltd., nor its dealers or distributors will be held liable for any damages to be caused either directly or indirectly by the instructions contained in this book, or by the software or hardware products described herein.

Trademark Notice

Rather than indicating every occurrence of a trademarked name as such, this book uses the names only in an editorial fashion and to the benefit of the trademark owner with no intention of infringement of the trademark.

Published by SitePoint Pty Ltd 48 Cambridge Street Collingwood VIC Australia - photo 1
Published by SitePoint Pty. Ltd.

48 Cambridge Street Collingwood
VIC Australia 3066
Web: www.sitepoint.com
Email: books@sitepoint.com

About SitePoint

SitePoint specializes in publishing fun, practical, and easy-to-understand content for web professionals. Visit http://www.sitepoint.com/ to access our blogs, books, newsletters, articles, and community forums. Youll find a stack of information on JavaScript, PHP, design, and more.

Preface

Theres no doubt that the JavaScript ecosystem changes fast. Not only are new tools and frameworks introduced and developed at a rapid rate, the language itself has undergone big changes with the introduction of ES2015 (aka ES6). Understandably, many articles have been written complaining about how difficult it is to learn modern JavaScript development these days. We're aiming to minimize that confusion with this set of books on modern JavaScript.

This book presents six complete JavaScript projects; each taking advantage of modern JavaScript and its ecosystem. You'll learn to build several different apps, and along the way you'll pick up a ton of useful advice, tips, and techniques.

Who Should Read This Book?

This book is for all front-end developers who wish to improve their JavaScript skills. Youll need to be familiar with HTML and CSS and have a reasonable level of understanding of JavaScript in order to follow the discussion.

Conventions Used
Code Samples

Code in this book is displayed using a fixed-width font, like so:

A Perfect Summer's Day

It was a lovely day for a walk in the park.The birds were singing and the kids were all back at school.

Where existing code is required for context, rather than repeat all of it, will be displayed:

function animate() { new_variable = "Hello";}

Some lines of code should be entered on one line, but weve had to wrap them because of page constraints. An indicates a line break that exists for formatting purposes only, and should be ignored:

URL.open("http://www.sitepoint.com/responsive-web-design-real-user-testing/?responsive1");

Youll notice that weve used certain layout styles throughout this book to signify different types of information. Look out for the following items.

Tips, Notes, and Warnings
Hey, You!

Tips provide helpful little pointers.

Ahem, Excuse Me ...

Notes are useful asides that are relatedbut not criticalto the topic at hand. Think of them as extra tidbits of information.

Make Sure You Always ...

... pay attention to these important points.

Watch Out!

Warnings highlight any gotchas that are likely to trip you up along the way.

Chapter 1: Build a Full-Sphere 3D Image Gallery with React VR
by Michaela Lehr

React VR is a JavaScript library by Facebook that reduces the effort of creating a WebVR application. You may compare React VR with A-Frame by Mozilla, but instead of writing HTML, with React VR were using JavaScript to create a WebVR scene.

React VR is built on the WebGL library three.js and the React Native framework. This means that were able to use JSX tags, React Native components, like or , or React Native concepts, like the flexbox layout. To simplify the process of creating a WebVR scene, React VR has built-in support for 3D meshes, lights, videos, 3D shapes, or spherical images.

In this chapter we want to use React VR to build a viewer for spherical - photo 2

In this chapter, we want to use React VR to build a viewer for spherical images. For this, well use four equirectangular photos, which I shot at React Conf 2017 with my Theta S camera. The gallery will have four buttons to swap the images, which will work with the mouse and/or VR headset. You can download the equirectangular images as well as the button graphics here. Last but not least, well take a look at how animations work with React VR by adding a simple button transition.

For development, were using a browser like Chrome on the desktop. To check if the stereoscopic rendering for VR devices works, were using a Samsung phone with Gear VR. In theory, any mobile browser capable of WebVR should be able to render our app in a stereoscopic way for the usage with GearVR, Google Cardboard, or even Google Daydream. But the library, as well as the API, are still under development, so the support may not be reliable. Heres a good summary of browsers currently supporting WebVR features.

Development Setup and Project Structure

Lets start by installing the React VR CLI tool. Then create a new React VR project with all its dependencies in a new folder called GDVR_REACTVR_SITEPOINT_GALLERY:

npm install -g react-vr-clireact-vr init GDVR_REACTVR_SITEPOINT_GALLERYcd GDVR_REACTVR_SITEPOINT_GALLERY

To start a local development server, well run an npm script and browse to http://localhost:8081/vr/ in Chrome.

npm start

If you see a black and white room with stairs, pillars, and a hello text plane, everythings correct.

The most important files and folders scaffolded by the React VR CLI are - photo 3

The most important files and folders scaffolded by the React VR CLI are:

  • index.vr.js. This is the entry point of the application. Currently, the file contains the whole source code of React VRs default scene, as we already saw in the browser.
  • static_assets. This folder should contain all assets used in the application. Well put the equirectangular images and the button graphics in this folder.

We want our project to have three components:

  • a Canvas component, which holds the code for the full-sphere images
  • a Button component, which creates a VR button to swap the images
  • a UI component, which builds a UI out of four Button components.

The three components will each have their own file, so lets create a

Next page
Light

Font size:

Reset

Interval:

Bookmark:

Make

Similar books «6 JavaScript Projects»

Look at similar books to 6 JavaScript Projects. We have selected literature similar in name and meaning in the hope of providing readers with more options to find new, interesting, not yet read works.


Reviews about «6 JavaScript Projects»

Discussion, reviews of the book 6 JavaScript Projects and just readers' own opinions. Leave your comments, write what you think about the work, its meaning or the main characters. Specify what exactly you liked and what you didn't like, and why you think so.