万本电子书0元读

万本电子书0元读

顶部广告

Full Stack Web Development with Raspberry Pi 3电子书

售       价:¥

2人正在读 | 0人评论 9.8

作       者:Soham Kamani

出  版  社:Packt Publishing

出版时间:2017-08-03

字       数:18.7万

所属分类: 进口书 > 外文原版书 > 电脑/网络

温馨提示:数字商品不支持退换货,不提供源文件,不支持导出打印

为你推荐

  • 读书简介
  • 目录
  • 累计评论(0条)
  • 读书简介
  • 目录
  • 累计评论(0条)
Discover how to build full stack web applications with the Raspberry Pi 3 About This Book ? Leverage JavaScript, HTML5, and Cloud APIs to create visual representations and interactive web pages. ? Learn to install and use a Node.js-based web framework to develop Raspberry Pi 3-powered web applications. ? A step-by-step guide that will cover from setting up a embedded system to developing embedded, device-powered interactive web applications. Who This Book Is For This book is aimed at hobbyist, enthusiasts, and developers eager to develop embedded device-powered web applications. Prior programming experience with JavaScript, HTML5, and Node.JS will be beneficial. What You Will Learn ? Get up and running with your Raspberry Pi ? Go full stack! Learn about the end-to-end development process for web applications, right from the OS up to the actual HTML web interface ? Discover that JavaScript is one of the fastest growing languages today, and is the only language that can be used both on a browser and server. This book will empower you to develop in a complete JavaScript stack ? See that the IoT is everywhere!Connect your application to the outside world. Make use of sensors in your Raspberry Pi to give your application an edge, and unleash the full power of the Internet of Things ? Build a rich UI with beautiful charts and data visualizations that can run on any browser ? Make your software data-driven. Learn how to utilize SQLite to collect and analyze data from multiple systems In Detail Modern web technology and portable computing together have enabled huge advances in the Internet of Things (IoT) space,as well as in areas such as machine learning and big data. The Raspberry Pi is a very popular portable computer for running full stack web applications. This book will empower you to master this rapidly evolving technology to develop complex web applications and interfaces. This book starts by familiarizing you with the various components that make up the web development stack and that will integrate into your Raspberry Pi-powered web applications. It also introduces the Raspberry Pi computer and teach you how to get up and running with a brand new one. Next, this book introduces you to the different kinds of sensor you’ll use to make your applications; using these skills, you will be able to create full stack web applications and make them available to users via a web interface. Later, this book will also teach you how to build interactive web applications using JavaScript and HTML5 for the visual representation of sensor data. Finally, this book will teach you how to use a SQLite database to store and retrieve sensor data from multiple Raspberry Pi computers. By the end of this book you will be able to create complex full stack web applications on the Raspberry Pi 3 and will have improved your application’s performance and usability. Style and approach Step-by-step instructions on developing a full stack web application and deploying it to the Cloud.
目录展开

Title Page

Copyright

Full Stack Web Development with Raspberry Pi 3

Credits

About the Author

About the Reviewers

www.PacktPub.com

Why subscribe?

Customer Feedback

Preface

What this book covers

What you need for this book

Who this book is for

Conventions

Reader feedback

Customer support

Downloading the example code

Downloading the color images of this book

Errata

Piracy

Questions

Getting Started on the Raspberry Pi

The Internet of Things

A brief look at our application

The sensor interface - perception

The database - persistence

The user interface - presentation

The application server - middleware

Setting up our Raspberry Pi

Remote access

Summary

Getting Up-and-Running with Web Development on the Raspberry Pi

The network

The web development stack

The UI - the user's first encounter

The server - the brains of the application

Client-server communication

Interfacing with external hardware

The database - adding persistence to our data

Integrating the database into our application

The overall architecture

Summary

Running a Node Server on the Pi

Introducing nodes - the server side JavaScript runtime

Installing node on the Pi

Running our first node program

Setting up a version control system

Back to our program

Installing external libraries

Developing the application server

Adding routes to the server

Starting up the server

Keeping the server running in the background

Summary

Extracting Information from the GPIO Pins

The GPIO pins on the Pi

The pin as a standalone component

The Write mode

The Read mode

Fine-tuning our control - using the GPIO command-line tools

The DHT11 sensor

Reading from the sensor

Summary

Retrieving Sensor Readings from the Server

Understanding how our node process takes readings

Modifying our server code to show sensor readings

Optimizing our server

Abstracting our sensor library code

Caching our results

Summary

Creating a Web Page to Display Sensor Data

Extending our application

Serving static files from the Express server

Building the UI's functionality

Adding client-side JavaScript

Fetching sensor readings using XHR

Visually enhancing the UI

Changing the structure of our UI

Adding style to the newly modified structure

Summary

Enhancing Our UI - Using Interactive Charts

Considerations when implementing complex features

Introducing Chart.js

Installing Chart.js

Creating our first chart

Making the server response data-friendly

Modifying the sensor dashboards to consume JSON data

Integrating sensor data into our charts

A code overview

index.js

public/index.html

public/script.js

Summary

SQLite - The Fast and Portable Database

Picking the correct tool for the job

Installation

Creating the temperature and humidity tables

Running CRUD operations

Create

Read

Update

Delete

Aggregations

Advanced aggregations using subqueries

Summary

Integrating SQLite into Our Application

Getting started: Interfacing SQLite with node

Running queries with node

Making our database module

Adding a new temperature to the database

Fetching the last "n" readings from a table

Fetching readings between a certain time period

Fetching the average of readings between time periods

Putting the functions together in a module

Integrating the database module into our server application

Upgrading the sensor interface module

Adding an API to get the latest ten readings

Consuming the API on the client side

Adding new features - the ability to view readings from a custom time period

Adding the required APIs

Summary

Making our Application Real Time with Web Sockets

Web sockets

Implementing web sockets in our application

The socket.io library

Client-side installation

Server-side installation

Creating our socket implementation in our application server

Client-side implementation

Summary

Deploying our application to Firebase

The Firebase platform

Migrating to Firebase

The User interface

Database

Server application and sensor interface

Creating your first Firebase application

Installing the Firebase CLI

Logging in to Firebase on the command line

Initializing a new Firebase application

Testing and deploying the application to the cloud

Migrating the frontend assets

Adding Firebase tools

Adding the Realtime Database

Enabling access to the Firebase Database

Adding listeners to the client-side script

Summary

Using Firebase APIs to Update Our Application

Application server versus application process

Securing our application

The application process architecture

Implementing the application process

Summary

累计评论(0条) 0个书友正在讨论这本书 发表评论

发表评论

发表评论,分享你的想法吧!

买过这本书的人还买过

读了这本书的人还在读

回顶部