My Account Log in

2 options

Full stack web development with Raspberry Pi 3 : build complex web applications with a portable computer / Soham Kamani.

Ebook Central College Complete Available online

View online

O'Reilly Online Learning: Academic/Public Library Edition Available online

View online
Format:
Book
Author/Creator:
Kamani, Soham, author.
Language:
English
Subjects (All):
Raspberry Pi (Computer)--Programming.
Raspberry Pi (Computer).
Web applications--Development.
Web applications.
Physical Description:
1 online resource (196 pages) : illustrations
Edition:
1st edition
Other Title:
Full stack web development with Raspberry Pi three
Place of Publication:
Birmingham, England ; Mumbai, [India] : Packt, 2017.
System Details:
text file
Biography/History:
Kamani Soham: Soham Kamani is a full-stack developer who has extensive experience in the JavaScript ecosystem. He works as a consultant, developing end-to-end web-based solutions for clients around the world. He is an open source enthusiast and an avid blogger. He has worked on many frameworks and technologies such as React, Angular, Node, Express, Sails, SQLite, Postgres, and MySQL, and he has worked on many projects in the IoT space using Arduino and Raspberry Pi systems.
Summary:
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 usin...
Contents:
Cover
Copyright
Credits
About the Author
About the Reviewers
www.PacktPub.com
Customer Feedback
Table of Contents
Preface
Chapter 1: 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
Chapter 2: 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
Chapter 3: 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
Chapter 4: 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
Chapter 5: 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.
Chapter 6: 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
Chapter 7: 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
Chapter 8: 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
Chapter 9: 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
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
Chapter 10: 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
Chapter 11: 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
Chapter 12: Using Firebase APIs to Update Our Application
Application server versus application process
Securing our application
The application process architecture
Implementing the application process
Index.
Notes:
Includes index.
Description based on online resource; title from PDF title page (ebrary, viewed August 28, 2017).
OCLC:
1001514401

The Penn Libraries is committed to describing library materials using current, accurate, and responsible language. If you discover outdated or inaccurate language, please fill out this feedback form to report it and suggest alternative language.

Find

Home Release notes

My Account

Shelf Request an item Bookmarks Fines and fees Settings

Guides

Using the Find catalog Using Articles+ Using your account