Joel Ross
Autumn 2026 (A)
<info 340/>
Firebase Database
View of the Day
-
Admin stuff
-
Firebase
-
Configuration
-
Database
-
More on Firebase next week
Can also check the videos & textbook!
- Wed Dec 02: Firebase Databases
- Mon Dec 07: Firebase Authentication
- Mon/Tue W11 lab: Project work time!
- Wed Dec 09: Conclusions (short lecture) + Project work time
- Mon Dec 14: Final Projects due!!
Calendar
Project Final Draft
For the Final Draft of the project, we're looking for it to be totally complete! See the Canvas page for full details.
- Well-structured and appropriate HTML (in React)
- Well-constructed React Components. Uses props and state!
- Interactive features: "two and a half" significant features
- Routing and navigation Needs multiple pages; url params
- External React Library rendering a Component. react-bootstrap is okay (if used meaningfully e.g., interactive widget)
- Data Persistence through Firebase (includes asynchronous work; effect hooks, etc)
- Good Visual Style, Accessibility, Responsiveness
- Correct code style -- check the course textbook!
You can practice this work on your projects directly!
(Or you can code along with my in my chat demo; pull the latest version of the starter code)
Code for the Day
See textbook
https://info340.github.io/firebase.html
Firebase
Firebase is a web backend solution; it provides multiple features which you can access without need to "code" them yourselves.
- Web Hosting
- Databases
- User Authentication

Effect Hook Cleanup
In order to "clean up" any work done in an effect hook (e.g., disconnect listeners), have the callback return a "cleanup function" to execute.
import React, { useState, useEffect } from 'react';
function MyComponent(props) {
//specify the effect hook function
useEffect(() => {
//...do persistent work, set up subscriptions, etc
//function to run when the Component is being removed
function cleanup() {
console.log("component being removed")
}
return cleanup; //return function for React to call later
}, [])
return ...
}
Action Items!
-
Complete task list for Week 10 (all items)
-
Review everything
-
Finish up late problem sets
-
Work on project!
Next time: Firebase authentification + image storage
- Read/watch ahead to get started early
info340au26a-firebase-db
By Joel Ross
info340au26a-firebase-db
- 62