Skip to content

Luxor Bidding System - Full-Stack Implementation#1

Open
omayconaguiar wants to merge 6 commits into
LuxorLabs:mainfrom
omayconaguiar:feat/ma/bid-system
Open

Luxor Bidding System - Full-Stack Implementation#1
omayconaguiar wants to merge 6 commits into
LuxorLabs:mainfrom
omayconaguiar:feat/ma/bid-system

Conversation

@omayconaguiar

@omayconaguiar omayconaguiar commented Jul 4, 2025

Copy link
Copy Markdown

Luxor Bidding System - Full-Stack Implementation

🎥 Demo

📹 Watch Application Demo

📋 Summary

Complete implementation of the Luxor bidding system challenge with NestJS backend and Next.js frontend.

🔄 Changes Made

Backend (frontend-coding-challenge/)

  • Authentication: JWT-based auth with login/register/profile
  • Collections API: CRUD with ownership validation
  • Bids API: Create, accept/reject with auto-rejection logic
  • Database: PostgreSQL + Prisma with 100+ collections, 1000+ bids
  • Documentation: Swagger at /api/swagger

Frontend (bidding-system/)

  • Auth Flow: Login/register with JWT management
  • Collections UI: Browse, create, edit with pagination (10/page)
  • Bidding UI: Place, edit, accept/reject bids
  • Responsive Design: Mobile-friendly with Tailwind CSS
  • Real-time Updates: Optimistic updates without refreshes

🔑 Key Features Implemented

  • Business Rules: Can't bid on own collections, one pending bid per user/collection
  • Auto-rejection: Accepting a bid rejects all other pending bids
  • Ownership Control: Users can only modify their own resources
  • Error Handling: Comprehensive validation and user feedback

🧪 How to Test

  1. Start Backend: cd backend && npm install && npm run db:seed && npm run start:dev
  2. Start Frontend: cd frontend && npm install && npm run dev
  3. Login: Use user1@example.com / password123
  4. Test Flow: Browse collections → Place bid → Accept/reject as owner

📊 Technical Highlights

  • Architecture: Clean separation with proper validation layers
  • Performance: Client-side pagination, optimistic updates
  • Security: JWT protection, input validation, ownership checks
  • UX: No page refreshes, instant feedback, mobile-responsive

📁 File Structure

@omayconaguiar omayconaguiar changed the title feat: implement bid system Luxor Bidding System - Full-Stack Implementation Jul 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant