Skip to content

Latest commit

 

History

History
124 lines (80 loc) · 2.96 KB

daily-log.md

File metadata and controls

124 lines (80 loc) · 2.96 KB

07-11-2022

Morning

  • Setup and test Firestore db

Afternoon

  • Setup and testFirebase Auth
  • Deployed to Vercel

08-11-2022

Morning

  • We fixed "type": "module" bug.
  • Stopped using environment variables (for now).
  • Dynamic Routes for users.
  • Creating reusable functions to interact with Firestore db.

Afternoon

  • On signup user is added to DB
  • Create db queries for adding a new user, adding quotes and displaying the quote collection by a given user

Questions (from today) for mentors

  • .env.local doesn't work with firestore?

09-11-2022

10-11-2022

Things to do today

  • Complete functionality for delete/add quote on users/[id.js] i.e. page should be re-rendered when new quotes are added or when an exisring quote is deleted
  • Merge form-clear branch
  • Update daily log md for 9th Nov
  • Investigate dot.env()/environment variables for initFirebase.js
  • Look for a way to solve refresh bug on users/[id.js] page (and any page that uses ProtectedRoute component)
  • Message mentors about code review
  • Update the main readme.md before code review at 4pm
  • Create a reusable component for quotes
  • Add some content to homepage
  • filter functionality for quotes on users/[id.js] page
  • Create at least one game

Presentation slides

Loading problem image


My favourite! image


Firebase (return the id of a newly added document)

  async function addQuote(uidFromAuth, newQuote) {
 //const d = await setDoc(doc(db, `users/${user}/quotes`, "a"), newQuote); // Adds doc named "a" with given quote
     const userQuoteCol = collection(db, `users/${uidFromAuth}/quotes`);
     const ref = await addDoc(userQuoteCol, newQuote); // [Todo] GET random ID?
   return ref.id;
  }

14-11-2022

Things to do today

  • Finish the real/fake game
  • Implement search feature
  • Start styling the app
  • Add dark mode functionality

Morning

  • Continued Building the RealOrFake game.
  • Building the search feature on the home page.

Afternoon

  • Continued Building the RealOrFake game.
  • Added basic styles to the app.
  • Added Theme feature with Chakra ui.

15-11-2022

Morning

  • Continued Building the RealOrFake game.
  • Styling the app.

Afternoon

  • Continued Building the RealOrFake game.
  • Continued Styling the app.
  • Added some tests.
  • Add a loader to some of the pages.
  • Testing
    • Cypress doesn't work with newest version of NextJS (13) so we reverted back to version 12.0.0
    • Server needs to run so cyrpess can use it

16-11-2022

Things to do today

  • Test every page (S)
  • Get started on badges (M)
  • Save quote from homepage (A)
  • Guess the author game (A/Y)
  • Fill in the blank game (A/Y)
  • MERGE b4 code review!!!