Skip to content

About

A web page for Lost And Found & a web application, AstroAuction-- an in house community marketplace

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

Β 

History

622 Commits

Folders and files

Repository files navigation

Description

A web page for Lost And Found & the companies web application, AstroAuction-- an in house community marketplace

Lost And Found webpage - https://astroauction.netlify.app/

AstroAuction web app - https://astroauction.up.railway.app/

Features

  • Static webpage deployed with Netlify
  • Responsive to mobile viewports
  • Accessible to screen readers / Semantic HTML & ARIA
  • SEO Meta tags
  • WebP image format
  • Server with database and authentication
  • CRUD opeartions
  • User profiles & profile pictures
  • Auctions with bidding, outbid emails & automatic closing
  • Spotlight banner for items sold during live sales
  • Guided tutorial for posting a listing
  • Email verification & password reset
  • Server-side validation, rate limiting & secure sessions
  • Auction winners & sellers can message each other

Optimizations

  • Edit/Delete comments
  • Design/develop landing on /auction route
    • Attach a user to listings
    • Detailed listing page
    • A scrolling red banner which is displayed to all users
      • May need to research how
        • Websockets
    • Embed a video player which represents a livestream or an anchor href to the livestream?
      • May need to research if allowed/TOS
        • Safest bet would be to use scrolling red banner to link to Instagram site/live feed
      • Craigslist style QR Code
        • May need to research how
  • Design/develop landing & functionality on /profile route
    • Administrator control panel
      • To moderate the listings/images from users
    • Profile picture uploads
  • Add forms after /signup redirection
  • CRUD operations (post auctions/listings/delete auctions)
  • Auction schema
  • Nodemailer for contact form
  • Multer/cloudinary
  • Unit tests
  • Integration tests
  • E2E tests

Technologies

HTMLCSSJavaScriptNodeExpressMongoDBMongoose

Version History

πŸ› οΈ AstroAuction Patch 1.1.7

πŸ“… Release Date: October 21st, 2026

πŸ“’ Developer's Notes - A new flash middleware

  • Replaced connect-flash with a small flash middleware of our own
    • connect-flash was last released in 2013 & uses a function Node 24 has deprecated
    • Messages work the same, & visitors still don't get a session cookie
  • Ticked "Integration tests" on the roadmap: the real-database test suites cover it
  • 478/478 tests passing

πŸ› οΈ AstroAuction Patch 1.1.6

πŸ“… Release Date: October 21st, 2026

πŸ“’ Developer's Notes - Security update & Hawaii-time dates

  • Security update for the October 21st Node.js security release
    • Forms refuse compressed request bodies, which went through Node's Brotli decoder, the bug that release fixed
    • Node is pinned to 24.22.1, the patched release, & the server logs its Node version at startup
    • Updated follow-redirects, a test-only dependency with a known vulnerability
  • Dates show in Hawaii time
    • The server runs in UTC, so anything posted after 2 PM showed tomorrow's date
    • Fixed for comments, messages, bid history, "Posted" & "Member since"
  • 466/466 tests passing

πŸ› οΈ AstroAuction Patch 1.1.5

πŸ“… Release Date: October 12th, 2026

πŸ“’ Developer's Notes - Messages between winners & sellers

  • When an auction ends, the winner & the seller message each other on the listing page instead of getting each other's email address
    • Only those two can see the conversation or post in it
    • The end-of-auction emails link to the conversation, & no email shares anyone's address
  • An email lets you know when you have a new message
    • It's sent once until you open the conversation, so a few quick messages don't flood your inbox
    • Replies to the email don't reach the other person, so it points you back to the listing
  • The bid form & the listing form say how the winner & the seller get in touch
  • Messages are limited to 20 per 15 minutes per account
  • Deleting a listing deletes its messages, & deleting an account deletes every message it sent or received
  • 452/452 tests passing

πŸ› οΈ AstroAuction Patch 1.1.4

πŸ“… Release Date: October 12th, 2026

πŸ“’ Developer's Notes - Smaller photos, winner contact & accessibility

  • Listing photos load at the size they're shown
    • The auction page went from 3.61 MB of photos to 100 KB, & a listing page from 3.61 MB to 197 KB
  • When an auction ends, the winner & the seller get each other's email address
    • It's in the end-of-auction emails, & on the ended listing where only those two can see it
    • The bid form tells bidders this before they bid, & the listing form tells sellers before they list
  • An open auction with bids can't be deleted until it ends
    • The listing form tells sellers this before they list
  • The tutorial waits until you've finished setting up your account
  • The listing form & photo viewer keep keyboard focus inside them
  • Every page has its own title, like "Log in | Astro Auction"
  • The Content-Security-Policy no longer allows inline styles
  • Database indexes for comments & listings
  • Removed the unused JSON body parser
  • Shrunk this README's biggest GIF from 34 MB to 5 MB
  • 417/417 tests passing

πŸ› οΈ AstroAuction Patch 1.1.3

πŸ“… Release Date: October 10th, 2026

πŸ“’ Developer's Notes - Account deletion, security hardening & cleanup

  • Deleting your account deletes your listings too, with their photos, comments & bids
    • You can't delete your account while you have an auction with bids, or while you're the highest bidder on one
  • Changing your profile picture uploads the new one first, then deletes the old one
    • A failed upload doesn't leave a broken image anymore
  • Log out is a button now, so other sites can't log you out with a link
  • Comments & bids are rate limited per account - 10 comments & 30 bids every 15 minutes
  • Resetting your password signs you out on every other device
  • Pages no longer receive password or token hashes
  • The "only your own" message no longer shows up on the next page after a 403
  • The auction page shows 24 listings at a time, with Previous & Next links
  • The spotlight banner is looked up at most every 10 seconds instead of on every request
  • The listing form's radio buttons are grouped for screen readers
  • Avatars without a photo use a placeholder from the site itself
  • Photo pickers only offer JPG & PNG, the same types the server accepts
  • Font Awesome loads with an integrity check, & the unused Material Icons font is gone
  • Error pages show up properly even when a request can't be read
  • 371/371 tests passing

πŸ› οΈ AstroAuction Patch 1.1.2

πŸ“… Release Date: October 10th, 2026

πŸ“’ Developer's Notes - Folder names, standards & bid limits

  • Renamed folders & files to match the standard MVC layout
    • models/ is now model/, & controllers are controller/<name>Controller.js
    • routes/main.js is split into one routes file per controller
    • The Cloudinary setup moved from middleware/ to config/
  • main.js & styles.css follow the code standards
    • Elements are selected with querySelector
    • CSS custom properties use camelCase, & the reduced-motion rules are in one block at the bottom
  • Added CLAUDE.md, which gives Claude Code sessions the project's commands, structure & rules
  • Added limits for prices & bids
    • Prices, starting bids & bids must be between $1 & $100,000, in dollars & cents
    • The minimum bid increment must be between $0.50 & $1,000
    • Before, a bid of 1e300 was accepted. Nobody could outbid it & it showed as "$1e+300"
  • You must verify your email before placing a bid. Any logged-in user can still comment
  • Fixed screen reader attributes, listing card ids & two missing form labels on the listing pages
  • 291/291 tests passing

πŸ› οΈ AstroAuction Patch 1.1.1

πŸ“… Release Date: October 9th, 2026

πŸ“’ Developer's Notes - Code review & security fixes

  • Did a full code review with Claude Code & fixed what it found, one pull request at a time
  • Updated dependencies - fixed 1 critical & 30 high vulnerabilities
  • Protected the login cookie (httpOnly, sameSite, secure) & trusted Railway's proxy
  • Email links are built from APP_URL, & a listing title can't add a link to an email anymore
  • Passwords must be at least 8 characters & are hashed with bcrypt cost 12
  • You must verify your email before creating a listing
  • Comments from deleted accounts show "Removed user" instead of crashing the listing page
  • Every form is validated on the server with express-validator
  • Login, signup & password reset are rate limited
  • Database operators sent in a request can't reach a query anymore (sanitizeFilter)
  • The server takes requests only after the database connects
  • Visitors don't get a session cookie until they log in
  • Errors show the matching error page with the real status code
  • Pages can only run scripts from this site's own files (Content-Security-Policy)
  • Fixed the linter, swapped nodemon for node --watch, upgraded nodemailer to v10 & the live site runs on Node 24
  • Added config/.env.example, which lists every setting
  • Account emails share one template
  • 256/256 tests passing

πŸ› οΈ AstroAuction Patch 1.1.0

πŸ“… Release Date: September 15th, 2026

πŸ“’ Developer's Notes - Guide to post a listing

  • here's a tutorial with version 1.1
    • tutorial

πŸ› οΈ AstroAuction Patch 0.9.037

πŸ“… Release Date: September 11th, 2026

πŸ“’ Developer's Notes -

  • Add/Updated tests - 180/180 passing

πŸ› οΈ AstroAuction Patch 0.9.036

πŸ“… Release Date: September 10th, 2026

πŸ“’ Developer's Notes - Scrolling (red) banner

  • This was one of the features the business owner wanted. But the banner isn't red.
  • Most of the optimizations I noted are done, is this v1.0?

πŸ› οΈ AstroAuction Patch 0.9.035

πŸ“… Release Date: September 9th, 2026

πŸ“’ Developer's Notes - Announcement system?

  • The idea is that when a listing gets posted, the business owner can broadcast/livestream, then click a button to "spotlight" auctions that are happening in real time

    • o
  • An announcement feature

  • An auction feature

  • A listings feature - refactored


πŸ› οΈ AstroAuction Patch 0.9.034

πŸ“… Release Date: September 7th, 2026

πŸ“’ Developer's Notes - Unit tests

  • Increased multer's fileSize property-value - files 10MB and lower can be uploaded
  • Added 9 tests suites with 145 tests - all 145/145 passing
  • Uploading a file above 10MB will give you a flash message with the error messsage vs sending you to a 500 error landing page

πŸ› οΈ AstroAuction Patch 0.9.033

πŸ“… Release Date: September 6th, 2026

πŸ“’ Developer's Notes - Maintenance completed - Auctions, bids, comments, new static webpage

  • /auction route is enabled with "View Auction" button
  • Update helmet config to allow youtube videos
  • Use ensureAuth to protect POST & DELETE requests on the '/' route
  • POST requests on the '/' route now support multi-image uploads
  • Update postAuction controller method for multi-image uploads & updated several controller methods
  • Updated AuctionSchema to support multi-image uploads
  • Add modal, listing cards, badges, and a fallback image to auction.ejs. Create listings button moved to the nav
  • Refactored detailedAuction.ejs to render video, several images, and a fallback image
  • Change animation for .orbit-particle element
  • Add POST request to the /viewAuction/:id/comments route
  • Add comment section/box functionality
  • Add hamburger menu to nav for mobile viewports
  • Add CommentSchema
  • Add POST request to the /viewAuction/:id/bids route
  • Add bid functionality
  • Update AuctionSchema to support bids
  • Update mailer.js to send emails during auctions
  • Add BidSchema
  • Refactor Static webpage

πŸ› οΈ AstroAuction Patch 0.9.032

πŸ“… Release Date: September 4th, 2026

πŸ“’ Developer's Notes - Bug fix

  • Updated helmet's config
    • Unblock font file from downloading

πŸ› οΈ AstroAuction Patch 0.9.031

πŸ“… Release Date: August 30th, 2026

πŸ“’ Developer's Notes - Optimizations, Resending email verification feature, Thoughts

  • The business owner would like to host an auction while livestreaming. A single item is being focused, talked about for a set time. Does the audience see the item through a camera or as a listing? When the item is sold, what does the process look like for registered users & visitors? Several items can be auctioned, is the auctioneer creating listings live or prepared prior? Listings must go from picture to ad with ease.

    • An announcement feature
    • An auction feature
    • A listings feature - refactored
  • Signup & onboarding is enabled

    • Added validation onto the form during /onboard
    • Removed a vulnerability from mailer.js
  • Password recovery & reset is enabled

    • Tokens are hashed before db stores it
  • Profiles are enabled

    • Added validation onto the form seen on /profile/edit
    • Uploading a profile picture with an existing one will destroy the previous picture
    • Uploading a profile picture now displays the name of the file
    • Deleting your account will destroy your profile picture
    • Imported Node's built-in file system module to unlink temp files left by multer.js
    • Moved the delete profile button from /profile/edit to /profile
    • A button renamed & placeholder text updated
  • Optimized multer middleware

  • Email verification is enabled

    • Tokens are hashed before being stored
  • Resending email verification email is added

    • You can visit your profile and click a button to resend your verification email

πŸ› οΈ AstroAuction Patch 0.9.030

πŸ“… Release Date: August 29th, 2026

πŸ“’ Developer's Notes - Refactor/bug fix

  • Logging in & out is enabled, most things appear to be working
    • Our flash messages will now render after logging in (previously did not render)
    • I had redirections going all over, and the default is now the home route '/'
    • Updated pathing to error pages within the catch blocks

πŸ› οΈ AstroAuction Patch 0.9.029

πŸ“… Release Date: August 7th, 2026

πŸ“’ Developer's Notes - Front-end eye candy

  • Added hover effects & decorative corners to the hero image
  • Added several animated particle effects using the canvas API

πŸ› οΈ AstroAuction Patch 0.9.028

πŸ“… Release Date: August 6th, 2026

πŸ“’ Developer's Notes - Update dependencies

  • The weekend is coming up, and I hope to get my hands on the keyboard. Only did a few things tonight:
    • Added helmet as a dependency & update nodemailer
    • Added error handling

πŸ› οΈ AstroAuction Patch 0.9.027

πŸ“… Release Date: August 5th, 2026

πŸ“’ Developer's Notes - Down for maintenance & plans

  • Going to type into the void for a moment, or whoever decides to read-- hi. If you've followed this project, there's a lot of features that I promised. A handful were added, the rest forgotten. The internet does not forget

  • So. The plan is to add the features that we talked about. Put the web app in maintenance mode & optimize what already exists. Deliver a website that adds value to the business & to its community

  • Authentication is diabled


πŸ› οΈ AstroAuction Patch 0.9.026

πŸ“… Release Date: March 28th, 2026

πŸ“’ Developer's Notes - Password reset functionality

  • Added two landing pages on the /recover & /recover/:token routes

  • Added two GET & two POST requests on the routes above

  • Added 4 controller methods for the functionality on these two routes

  • The business owner wanted to change a few things:

    • Changes to AstroAuction Web Application (railway)
      • AstroAuction.com currently points to The Lost And Found webpage
      • Add password reset functionality

πŸ› οΈ AstroAuction Patch 0.9.025

πŸ“… Release Date: March 24th, 2026

πŸ“’ Developer's Notes

  • The business owner wanted to change a few things:

    • Changes to AstroAuction Web Application (railway)
      • AstroAuction.com currently points to The Lost And Found webpage
      • Change Astro Auction to AstroAuction.com
      • Change hero text (streamline)
      • Move login to left hand side
      • Center the logo
      • Add password reset functionality
    • The Lost And Found Web Page (netlify)
      • Change The Lost And Found to AstroAuction
      • Remove Boxes 2,3,4
      • Add Instagram to the Lost And Found
      • Instagram should be more visible

πŸ› οΈ AstroAuction Patch 0.9.024

πŸ“… Release Date: February 23th, 2026

πŸ“’ Developer's Notes

  • Remove before/after slider on static site

  • I apologize if this project was not the expectation

    • A variety of things that I wanted for this project:
      • Scrolling announcement banner - websockets
      • Optimize controller methods
      • Multi image support
      • Bidding functionality
      • Reset password
      • Admin control panel/moderation tools
      • Edit/Update listings
      • Listings marked as closed

πŸ› οΈ AstroAuction Patch 0.9.023

πŸ“… Release Date: February 10th, 2026

πŸ“’ Developer's Notes

  • Added before/after slider

    • Now viewable/functional on mobile viewports
  • Changed nav anchor text to an <i> element with font awesome icons


πŸ› οΈ AstroAuction Patch 0.9.022

πŸ“… Release Date: February 7th, 2026

πŸ“’ Developer's Notes

  • Updated the business email on several anchors on static website and web application

  • I'm back to work irl, worked on this project during the time off

  • The /viewAuction/:id landing page now renders dynamic data

    • Guest users & registered users may view detailed listings

πŸ› οΈ AstroAuction Patch 0.9.021

πŸ“… Release Date: February 3rd, 2026

πŸ“’ Developer's Notes

  • Bug: Creating a listing without an (optional) image resulted in error code 500

    • Fix: Use a conditional to determine if a file is uploaded vs uploading as the default
  • Todo: categories & detailed auction page

  • Add social media link to static site


πŸ› οΈ AstroAuction Patch 0.9.020

πŸ“… Release Date: January 30th, 2026

πŸ“’ Developer's Notes - Automatic emails w/ verification

  • Creating an account will send YOU an email.

    • You may use real, registered emails and get verified

πŸ› οΈ AstroAuction Patch 0.9.019

πŸ“… Release Date: January 29th, 2026

πŸ“’ Developer's Notes - Automatic emails

  • Creating an account automatically sends an email with nodemailer

    • Making an account will NOT send you an email (yet)
      • To do: Email verification being emailed to you with account verification code/button?

πŸ› οΈ AstroAuction Patch 0.9.018

πŸ“… Release Date: January 28th, 2026

πŸ“’ Developer's Notes

  • Updated the static web page for The Lost And Found LLC (company web page. Astro Auction is the web app for L&F LLC. The web page & web app are for the same business owner)

    • Optimized/updated several tags in the <head> & <body>
    • Converted jpg/pngs to webp (from 202 KB to 47.2 KB, wow fast load times)
    • Navigational menu now functional & displays on mobile viewports

πŸ› οΈ AstroAuction Patch 0.9.017

πŸ“… Release Date: January 27th, 2026

πŸ“’ Developer's Notes

  • Bug: Guest-users who attempted to create a listing received error 500

    • Fix: Dynamically render two forms, which determines if you are a guest or user
  • Removed a few font awesome icons from buttons

  • Add terms of use & privacy policy text content

  • Styling to mobile/tablet viewports

  • I used the :has() CSS pseudo-class to conditionally style elements. I can apply styles to an element based on whether it contains a specific child element. For example:

    • body:has(.auction-page) means to 'apply styles to the <body> tag only when it contains an element with the class of auction-page.'

πŸ› οΈ AstroAuction Patch 0.9.016

πŸ“… Release Date: January 26th, 2026

πŸ“’ Developer's Notes - Timeline can restore

  • Added a landing page for /terms and will use Termly for this
  • Optimized middleware for DRY code
  • Styled the navigation partial & /auction route
  • I accidentally deleted all my local changes with git restore .
    • Right-clicking a file, then opening a timeline saved my day

πŸ› οΈ AstroAuction Patch 0.9.015

πŸ“… Release Date: January 19th, 2026

πŸ“’ Developer's Notes - Delete profile

  • Registered users can now delete their profile
    • The listings the user posts do not delete when the profile is deleted
      • You must delete your listings then your profile if you want to ensure data is lost
    • All data (listings & profile pic) IS deleted when deleting a profile

πŸ› οΈ AstroAuction Patch 0.9.014

πŸ“… Release Date: January 18th, 2026

πŸ“’ Developer's Notes

  • A favicon now renders on browser tabs
  • Refactored accessibility on the frontend
  • Flash messages has icons & an animation

πŸ› οΈ AstroAuction Patch 0.9.013

πŸ“… Release Date: January 17th, 2026

πŸ“’ Developer's Notes

  • The landing page to update user personal information has been styled
  • Our header partial now can determine which page a user is on and render buttons dynamically.
    • Our header partial has been deleted & split into 3 different partials
      • head, nav, footer

πŸ› οΈ AstroAuction Patch 0.9.012

πŸ“… Release Date: January 15th, 2026

πŸ“’ Developer's Notes

  • A button has been added to every listing, which I intend to render the seller's profile, more details to the listing, and a comment section
    • I haven't built a comment section before, but I wondered if I could build my own "social media" network/website. Perfect time to learn
  • The edit profile page has been styled

πŸ› οΈ AstroAuction Patch 0.9.011

πŸ“… Release Date: January 12th, 2026

πŸ“’ Developer's Notes - Onboarding Flow

  • New accounts are now given some direction after registration

πŸ› οΈ AstroAuction Patch 0.9.010

πŸ“… Release Date: January 8th, 2026

πŸ“’ Developer's Notes

  • Auction listings now show the image you upload

Jan 9th:

  • Added status codes to try/catch blocks and render 500.ejs instead of 404.ejs
  • Created landing pages for status code responses

πŸ› οΈ AstroAuction Patch 0.9.009

πŸ“… Release Date: January 7th, 2026

πŸ“’ Developer's Notes

  • Users who create listings can delete their own listing
  • Unregistered users are now defined as null vs undefined
    • Explicitly passing this value allows EJS templating & conditionals to have less errors with rendering

πŸ› οΈ AstroAuction Patch 0.9.008

πŸ“… Release Date: January 6th, 2026

πŸ“’ Developer's Notes

  • Update getAuction & postAuction methods
    • Our header partial now displays logged in users on /auction route
    • User profile pictures and first name now displays on /auction route
    • Creating a listing now stores user id into the database
  • Update uploadProfilePicture method
    • If the user already has a picture uploaded,
      • The previous picture is deleted & the new picture is stored and displayed
      • I do not want to keep your data and the code reflects this
  • Update to our Auction Schema
    • My first time structuring relational data with MongoDB
      • The populate() method used in our postAuction method explicitly passes in user images & first name
        • Sensitive fields like email, password, etc. are not included and the code reflects this
  • Render referenced data & remove video player from /auction route
    • User profile picture & first name now show on listing
    • Video player will return along with detailed listing info
      • A modal or new route could be used here

πŸ› οΈ AstroAuction Patch 0.9.007

πŸ“… Release Date: January 2nd, 2026

πŸ“’ Developer's Notes - Render images dynamically, Updating personal info, Bug fix with signup/auth

  • AstroAuction Authentication now uses Passport.js Local strategy to sign up and log in.
    • Previous auth was generated slop. I'm sorry for being so lazy.
      • I referenced Passport.js documentation to implement authentication properly with this update.
    • Passport.js ensureAuth is being used to protect routes.
  • The /profile route now displays your profile picture if one is uploaded, otherwise a placeholder image is shown
    • Data is rendered if you update your information
  • The /profile/edit route now allows you to update your personal information
    • This personal information will be displayed on listing cards within the /auction route

πŸ› οΈ AstroAuction Patch 0.9.006 β€” PFP

πŸ“… Release Date: January 2nd, 2026

πŸ“’ Developer's Notes - Backend functionality on /profile

  • File uploads (image only) are now supported
    • Uploading an image will be stored into cloudinary
      • This applies to your profile picture
      • This is also how images from your listings/auction/items will be stored
    • Currently images are uploaded, but not rendered on the (View) profile page
      • Will be added

πŸ› οΈ AstroAuction Patch 0.9.005 β€” Dissect Da Slop++

πŸ“… Release Date: December 27th, 2025

πŸ“’ Developer's Notes - Optimize /auction page, versioning numbers

  • Move Profile button into the header partial
    • Visible to logged in users
  • Cleanup HTML within auction.ejs
    • All of it was slop
      • Should be slightly more digestable now
  • Rename several rules to use kebab case
  • Instead of 0.9d I will use 0.9.005 and yes I scrolled all the way down to determine which patch/update contained a change worth a version number

πŸ› οΈ AstroAuction Patch 0.9d β€” Backend until we're done

πŸ“… Release Date: December 26th, 2025

πŸ“’ Developer's Notes - Personal update, User profiles, styling /auction route

wya

  • Render landing page for user profiles & everything behind it
    • Add /profile route
    • Add profileController methods
      • Add GET Request
    • Add two properties to User schema
      • This will be used to store user avatars/profile pictures
    • Render landing page on /profile
  • Render dynamic data on /auction route
    • Logged in users will see their email displayed within the header as the default
      • This can be changed to render name or username instead of email
  • Style landing page on /auction
    • Add header partial to landing page on /auction

πŸ› οΈ AstroAuction Patch 0.9c β€” C.R.-no .U.D yet

πŸ“… Release Date: December 22nd, 2025

πŸ“’ Developer's Notes - Backend functionality testing

  • Registered users (& temporarily all users ) can create listings
    • Defined the Auction Schema
    • Added a form
    • Add a POST request to the /auction route
    • Add postAuction method
  • Data can now be displayed dynamically - listings created from registered users are visible to all users
    • Update getAuction method to dynamically render data from the database
    • Use EJS templating to iterate through the data

πŸ› οΈ AstroAuction Patch 0.9b β€” I'm Back from the mist

πŸ“… Release Date: December 18th, 2025

πŸ“’ Developer's Notes - Frontend changes to static landing page

  • I needed a break and this is fun again
    • The real fun will be reading my code from half a year ago
      • Muscle memory is very real & I'll be ok

πŸ› οΈ AstroAuction Patch 0.9a β€” Not quite a MVP yet - Plans for '/auction' page

πŸ“… Release Date: August 16th, 2025

πŸ“’ Developer's Notes - Destroy sessions, Optimize SVG, Unit tests, Plans for '/auction' route

  • The core logout functionality worked, but did not destroy the session
    • Ideally you want to destroy the session to optimize for security
      • We optimized
  • The SVGs used on our login and signup animated indefinitely and uses your CPU to render
    • I updated the animation to occur 1 time and stop
      • I considered using webGL for animations/backgrounds since it uses the GPU to render
        • Advised this is like using a rocket to fly to the grocery store
        • I still would like to try webGL to render a background someday
  • I want to approach this project differently
    • I'll dive deep vs wide on how the web application functions
      • Since this project is intended to be used in a business, I must have my ducks in a row
    • I am conducting experimentation on my functionalities
      • Unit testing our authentication to ensure no sneaky weird business can slip through
        • Validating and sanitizing every input & especially inputs that gets stored in our database
    • Still need to test the '/signup' route (& the several endpoints that the '/auction' route will have. rip future me)
  • If you're reading this, you have uncovered the scrolls from which it is written
    • The auction page will have a "staging" area
      • This area will contain a livestream from the business owner
        • The business owner has hinted it could be Facebook live, or instagram, or tiktok?
      • The business owner hinted to look toward eBay Live
    • The auction page will have dynamic posts
      • These posts can be created from registered users & is not hard-coded in HTML
    • The auction page will have a profile area
      • Will also serve as an admin control panel but dynamically rendered?
        • May need to lookup best practices & why/whynot it should be on a separate protected route or if dynamically rendered is fine?

πŸ› οΈ AstroAuction Patch 0.9 β€” Users can logout

πŸ“… Release Date: August 15th, 2025

πŸ“’ Developer's Notes - Rendering dynamic data, Logout functionality, Redirecting protected routes

  • I forgot how to render data from the database onto a web page
    • The moment I saw the code to do it, I remembered how to do it
      • Understanding > Memorization
  • The login/signup buttons are now dynamically rendered
    • The website can determine whether you are a guest or a registered user and displays content accordingly
      • If you are a registered user, you will see a different button
  • If you try to access the '/login' or '/signup' routes as registered user, you will be redirected
    • You could always log out and create a new account, but the point is to protect the routes through redirection

πŸ› οΈ AstroAuction Patch 0.8 β€” Users can login

πŸ“… Release Date: August 14th, 2025

πŸ“’ Developer's Notes - Login page enabled, Validate login credentials, Render auction page

  • I used Passport.js and localStrategy for authentication. I thought I could use the code from a previous project. Nope
    • Mongoose no longer accepts callbacks
      • Code must use async/await
  • The landing page on the '/auction' route now renders to both guest & authenticated users
    • Interacting may require authentication, but looking should work for both
      • Nothing to interact with atm, only text on a page

πŸ› οΈ AstroAuction Patch 0.7 β€” Validation & Flash

πŸ“… Release Date: August 11th, 2025

πŸ“’ Developer's Notes - Validating POST requests & displaying notifications

  • After enabling authentication, there was 0 response for user experience
    • I used express-validator to display messages during signup
      • These messages appear near the inputs and display tool tips on how to fill out the form
    • I used connect-flash to display success & error notifications during signup
      • These notifications appear near the header and display popups explaining why your account was not created

πŸ› οΈ AstroAuction Patch 0.6 β€” Signup page & authentication

πŸ“… Release Date: August 10th, 2025

πŸ“’ Developer's Notes - Add form to signup page, Enable authentication

  • I didn't get too much done and copied the same design from our login page on to the signup page
    • I would like to create differences between the two if I do not use a completely different design
      • I figured I should get the functionality of authentication going before worrying about styling
  • The barebones of passport/localStrategy works and accounts can now be created
    • The email and password you type into this form will be saved into a database
      • There's no verification on the email so you could use [email protected] and your account will be created

πŸ› οΈ AstroAuction Patch 0.5 β€” Backend stuff

πŸ“… Release Date: August 9th, 2025

πŸ“’ Developer's Notes - Connect to MongoDB, Define UserSchema, Passport & localStrategy, Render Views, free SVG generator

  • I've been slacking on these notes because sometimes I write things unrelated to the project. I also write things related to the project.
    • I don't know who reads this, but hello
  • I ran into a couple of errors when connecting to MongoDB with Mongoose
    • connect-mongo no longer needs a session argument passed in
    • using the new keyword on MongoStore results in a TypeError
      • MongoStore.Create({}) must be used instead
        • I probably have to update my other full stack apps
  • Added two GET routes on /login & /signup
    • Only renders a hello world for now
  • I've been getting AI to create SVGs for me and stumbled across a collection of free SVG generators
  • Rendered a form with inputs for the login page
    • It's purely frontend, the POST route for postLogin is not wired up with passport/localStrategy yet

πŸ› οΈ AstroAuction Patch 0.4 β€” Migrate from Netlify to Railway

πŸ“… Release Date: August 7th & 8th, 2025

πŸ“’ Developer's Notes - **Install dependencies, Wire up backend, Render Views, Deploy to Railway **

  • Heard ChatGPT-5 was FREE for a week
    • "DO YOU HAVE ANY IDEA HOW MUCH THIS IS WORTH"

πŸ› οΈ AstroAuction Patch 0.3 β€” Brain storming

πŸ“… Release Date: August 6th, 2025


πŸ“’ Developer's Notes - Styling changes & Meta tag updates

  • Added some padding changes and update to our meta tags

πŸ› οΈ AstroAuction Patch 0.2 β€” Hero section

πŸ“… Release Date: August 4th, 2025


πŸ“’ Developer's Notes - Hero section & image, etc

  • The business owner provided the hero image and a few others

πŸ› οΈ AstroAuction Patch 0.1 β€” Initial Commit

πŸ“… Release Date: July 30th & August 4th, 2025


πŸ“’ Developer's Notes - Meta tags, organizing stylesheets, creating navigation

  • I had to work late on Friday & come in on Saturday (August 1st & 2nd)
    • Not an excuse, but I will have signifcantly more free time this week than the previous week

About

A web page for Lost And Found & a web application, AstroAuction-- an in house community marketplace

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages