Welcome to the Auction Web Application, a full-stack online auction platform where users can list items, place bids, and manage their accounts. This repository serves as a central hub linking the frontend and backend repositories.
/AuctionWebApplication
│── /backend # Placeholder for backend setup
│ └── server.js # Backend entry point (Full code in separate repo)
│── /frontend # Placeholder for frontend setup
│── README.md # Documentation
🔹 Full Backend Code: Online-Auction-Platform_backend
🔹 Full Frontend Code: Online-Auction-Platform_frontend
✅ User Authentication - Sign Up & Sign In with JWT stored in LocalStorage
✅ Auction Dashboard - View all auction items with pagination
✅ Post Auction - Users can add auction items
✅ Responsive UI - Built with React-Bootstrap
✅ Protected Routes - Users must be authenticated to post/view auctions
✅ JWT-based Authentication - Secure login & registration
✅ Auction Items Management - Add, edit, delete, and fetch auction items
✅ Bidding System - Place bids with automatic highest bid tracking
✅ MongoDB & Mongoose Integration - Efficient NoSQL database handling
✅ CORS Enabled - Supports seamless frontend communication
- React.js (Vite) - Fast frontend framework
- React-Bootstrap - UI components
- React-Router-Dom - Routing
- LocalStorage - Persist user session
- Node.js + Express.js - Server and API
- MongoDB & Mongoose - NoSQL database
- JWT (jsonwebtoken) - Authentication
- bcryptjs - Password hashing
- nodemon - Development server auto-restart
git clone https://github.com/ab00s1/AuctionWebApplication.git
cd AuctionWebApplicationClone the backend repository inside the backend/ folder:
git clone https://github.com/ab00s1/Online-Auction-Platform_backend.git backend
cd backend
npm install- Create a
.envfile with:MONGO_URI=mongodb://localhost:27017/AuctionPlatform JWT_SECRET=your_jwt_secret_key - Start the backend server:
The backend runs on
npm run dev
http://localhost:5001/.
Clone the frontend repository inside the frontend/ folder:
cd ..
git clone https://github.com/ab00s1/Online-Auction-Platform_frontend.git frontend
cd frontend
npm install
npm run devThe frontend runs on http://localhost:5173/.
Refer to the backend repository for full API documentation:
🔹 Backend API Documentation
- Sign Up for a new account.
- Sign In to access the dashboard.
- Post Auction Items with details (only for logged-in users).
- View Auctions on the Dashboard.
- Place Bids on auction items.
- Log Out from the navbar dropdown.
🔹 Real-time bidding using WebSockets
🔹 Image uploads for auction items
🔹 Email notifications for bid updates
- Ensure MongoDB is running locally.
- If backend fails to start, check the
.envfile forMONGO_URI. - If CORS issues occur, ensure backend allows
http://localhost:5173.
working url: https://place-the-bid.netlify.app/