Skip to content

spiritoftime/frontend-mentor-invoice-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

65 Commits
 
 
 
 
 
 

Repository files navigation

Full Stack Invoice App

Deployed Site Link: https://spiritoftime.github.io/frontend-mentor-invoice-app/

  1. Frontend
    • State Management: Redux Toolkit
    • Libraries: Chakra UI / React Hook Form
  2. Backend - Firestore Database

Functionalities

  1. User Auth (Logging in with Google)
  2. Ability to create Invoices, Read, edit and delete them
  3. Light & Dark Mode
  4. Responsive Web Design

Some Challenges Faced

(1) In js, empty arrays ARE TRUTHY!! !image

wasted 2hours because i used if(filteredInvoices). This may have worked in python but in js empty arrays are truthy.

(2) Most difficult thing i encountered in this project: trying to get register to output the whole form input as a nested object. As per the image below, i needed to have nested objects for every itemArticle, so that i know which name, total, price and qty is for which. I had serious difficulty trying to google whatever i needed because i could not think of the right phrasing, which led to me wasting quite a significant amount of time. In the end, i aimlessly browsed the documentation for React Hook form and stumbled upon https://react-hook-form.com/api/useform/register#registerRef, which allowed me to output it according to what i want. Problem: image

As you can see, i could not get all the data written on each itemArticle image

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published