Full stack web development with Raspberry Pi 3 build complex web applications with a portable computer

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....

Descripción completa

Detalles Bibliográficos
Otros Autores: Kamani, Soham, author (author)
Formato: Libro electrónico
Idioma:Inglés
Publicado: Birmingham, England ; Mumbai, [India] : Packt 2017.
Edición:1st edition
Materias:
Ver en Biblioteca Universitat Ramon Llull:https://discovery.url.edu/permalink/34CSUC_URL/1im36ta/alma991009630713306719
Tabla de Contenidos:
  • 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
  • Summary
  • 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
  • Summary
  • 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
  • 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
  • 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
  • Summary
  • 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
  • Summary
  • 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
  • Summary
  • 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
  • Summary
  • 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
  • Summary
  • 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
  • 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
  • Index.