售 价:¥
温馨提示:数字商品不支持退换货,不提供源文件,不支持导出打印
为你推荐
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
买过这本书的人还买过
读了这本书的人还在读
同类图书排行榜