Skip to content

davidtrovisco/shopping-list

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

shopping-list-HTML, CSS and JavaScript + Firebase

Shopping List App - HTML, CSS and JavaScript + Firebase v.0.0.1

Introduction

Never forget what you need to buy again. Share your list with friends and family.It will practically be a webapp.

Setting up app skeleton

IMC App

This is a simple HTML code template with your JavaScript implemented.

Adding CSS

Here's a simple web app style consisting of a container, buttons, and text with a custom font: IMC App This CSS includes styles for: Reset CSS to remove default margins and paddings. Styling for the container class. Styling for buttons with hover effects. Styling for text with a custom font, size, and color.

Adding CSS and JavaScript

IMC App

Firebase Setup: The code initializes Firebase with the provided settings. Database References: It sets up a reference for the shopping list in the database. Page Elements: It gets relevant HTML page elements, such as the input field and the shopping list. Add Item: When the user clicks the add button, the value entered in the input field is added to the shopping list in the database. Update List: The shopping list is updated in real-time whenever there is a change in the database. Helper Functions: Functions to clear the shopping list and input field, and to add items to the shopping list on the page. Essentially, users can add items to the shopping list on the page, and these items are stored and updated in real-time using Firebase.

Database Firebase

Aside: Fetching database items in realtime using onValue. IMC App

App Results

In conclusion, this web application provides a straightforward solution for managing a shopping list. By leveraging Firebase Realtime Database, it offers real-time synchronization of data across multiple clients, ensuring that any changes made to the list are instantly reflected for all users.

IMC App

The user interface is simple, with an input field for adding items and a list to display them. The code is modular and easy to understand, making it accessible for further customization or integration into larger projects. Overall, this application demonstrates the power and ease of use of Firebase for creating dynamic and collaborative web applications.

Open Project

About

Shopping List App - HTML, CSS and JavaScript + Firebase

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published