Full Stack Web Development with Raspberry Pi 3

Discover how to build full stack web applications with the Raspberry Pi 3
Preview in Mapt

Full Stack Web Development with Raspberry Pi 3

Soham Kamani

2 customer reviews
Discover how to build full stack web applications with the Raspberry Pi 3
Mapt Subscription
FREE
$29.99/m after trial
eBook
$10.00
RRP $27.99
Save 64%
Print + eBook
$34.99
RRP $34.99
What do I get with a Mapt Pro subscription?
  • Unlimited access to all Packt’s 5,000+ eBooks and Videos
  • Early Access content, Progress Tracking, and Assessments
  • 1 Free eBook or Video to download and keep every month after trial
What do I get with an eBook?
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with Print & eBook?
  • Get a paperback copy of the book delivered to you
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with a Video?
  • Download this Video course in MP4 format
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
$0.00
$10.00
$34.99
$29.99 p/m after trial
RRP $27.99
RRP $34.99
Subscription
eBook
Print + eBook
Start 30 Day Trial

Frequently bought together


Full Stack Web Development with Raspberry Pi 3 Book Cover
Full Stack Web Development with Raspberry Pi 3
$ 27.99
$ 10.00
Internet of Things with Raspberry Pi 3 Book Cover
Internet of Things with Raspberry Pi 3
$ 27.99
$ 10.00
Buy 2 for $20.00
Save $35.98
Add to Cart

Book Details

ISBN 139781788295895
Paperback214 pages

Book Description

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.

Table of Contents

Chapter 1: Getting Started on the Raspberry Pi
The Internet of Things
A brief look at our application
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
Summary
Chapter 3: Running a Node Server on the Pi
Introducing nodes - the server side JavaScript runtime
Running our first node program
Summary
Chapter 4: Extracting Information from the GPIO Pins
The GPIO pins on the Pi
The pin as a standalone component
Fine-tuning our control - using the GPIO command-line tools
The DHT11 sensor
Reading from the sensor
Summary
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
Summary
Chapter 6: Creating a Web Page to Display Sensor Data
Extending our application
Building the UI's functionality
Visually enhancing the UI
Summary
Chapter 7: Enhancing Our UI - Using Interactive Charts
Considerations when implementing complex features
Introducing Chart.js
Making the server response data-friendly
Integrating sensor data into our charts
Summary
Chapter 8: SQLite - The Fast and Portable Database
Picking the correct tool for the job
Creating the temperature and humidity tables
Running CRUD operations
Aggregations
Summary
Chapter 9: Integrating SQLite into Our Application
Getting started: Interfacing SQLite with node
Running queries with node
Making our database module
Integrating the database module into our server application
Adding new features - the ability to view readings from a custom time period
Summary
Chapter 10: Making our Application Real Time with Web Sockets
Web sockets
Implementing web sockets in our application
Creating our socket implementation in our application server
Client-side implementation
Summary
Chapter 11: Deploying our application to Firebase
The Firebase platform
Migrating to Firebase
Creating your first Firebase application
Migrating the frontend assets
Adding the Realtime Database
Enabling access to the Firebase Database
Adding listeners to the client-side script
Summary
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
Summary

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

Authors

Table of Contents

Chapter 1: Getting Started on the Raspberry Pi
The Internet of Things
A brief look at our application
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
Summary
Chapter 3: Running a Node Server on the Pi
Introducing nodes - the server side JavaScript runtime
Running our first node program
Summary
Chapter 4: Extracting Information from the GPIO Pins
The GPIO pins on the Pi
The pin as a standalone component
Fine-tuning our control - using the GPIO command-line tools
The DHT11 sensor
Reading from the sensor
Summary
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
Summary
Chapter 6: Creating a Web Page to Display Sensor Data
Extending our application
Building the UI's functionality
Visually enhancing the UI
Summary
Chapter 7: Enhancing Our UI - Using Interactive Charts
Considerations when implementing complex features
Introducing Chart.js
Making the server response data-friendly
Integrating sensor data into our charts
Summary
Chapter 8: SQLite - The Fast and Portable Database
Picking the correct tool for the job
Creating the temperature and humidity tables
Running CRUD operations
Aggregations
Summary
Chapter 9: Integrating SQLite into Our Application
Getting started: Interfacing SQLite with node
Running queries with node
Making our database module
Integrating the database module into our server application
Adding new features - the ability to view readings from a custom time period
Summary
Chapter 10: Making our Application Real Time with Web Sockets
Web sockets
Implementing web sockets in our application
Creating our socket implementation in our application server
Client-side implementation
Summary
Chapter 11: Deploying our application to Firebase
The Firebase platform
Migrating to Firebase
Creating your first Firebase application
Migrating the frontend assets
Adding the Realtime Database
Enabling access to the Firebase Database
Adding listeners to the client-side script
Summary
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
Summary

Book Details

ISBN 139781788295895
Paperback214 pages
Read More
From 2 reviews

Read More Reviews

Recommended for You

IoT Projects with Bluetooth Low Energy Book Cover
IoT Projects with Bluetooth Low Energy
$ 27.99
$ 10.00
Internet of Things with Raspberry Pi 3 Book Cover
Internet of Things with Raspberry Pi 3
$ 27.99
$ 10.00
Full Stack Development with JHipster Book Cover
Full Stack Development with JHipster
$ 35.99
$ 10.00
Full Stack Angular for Java Developers Book Cover
Full Stack Angular for Java Developers
$ 39.99
$ 10.00
Machine Learning with the Elastic Stack Book Cover
Machine Learning with the Elastic Stack
$ 31.99
$ 10.00
Unity 2017 Game Development Essentials - Third Edition Book Cover
Unity 2017 Game Development Essentials - Third Edition
$ 39.99
$ 10.00