E-Dealership is a modern web application for a premium performance car dealership, providing an immersive online shopping experience for luxury vehicles.
- Overview
- Features
- Technologies Used
- Project Structure
- Installation
- Usage
- API Documentation
- Contributing
- License
E-Dealership is a fully-featured web application that allows users to browse, search, and purchase premium performance cars online. The application features a responsive design, interactive UI elements, and a comprehensive shopping experience including cart and wishlist functionality.
- Browse Vehicles: View all available vehicles with filtering and sorting options
- Detailed Vehicle Pages: Comprehensive information about each vehicle with multiple images
- Color Selection: View vehicles in different color options
- Shopping Cart: Add vehicles to cart, adjust quantities, and proceed to checkout
- Wishlist: Save favorite vehicles for later consideration
- Responsive Design: Works on desktop, tablet, and mobile devices
- Checkout Process: Complete purchase flow with delivery options and payment methods
- Stock Management: Real-time stock updates and availability notifications
-
Frontend:
- HTML5, CSS3, JavaScript (ES6+)
- CSS Animations and Transitions
- Responsive Design using Flexbox and Grid
- Custom UI Components
-
Backend:
- RESTful API
- JSON data format
- Local Storage for cart and wishlist persistence
-
External APIs:
- OpenCage Geocoding API for location services
e-dealership/
├── src/
│ ├── frontend/
│ │ ├── assets/
│ │ │ ├── css/ # Stylesheets
│ │ │ ├── icons/ # UI icons
│ │ │ └── images/ # Vehicle and UI images
│ │ ├── js/ # JavaScript files
│ │ ├── pages/ # HTML pages (details, wishlist, etc.)
│ │ └── index.html # Main homepage
│ └── backend/ # Backend API services
└── README.md # This file
- Node.js (v14.0.0 or higher)
- npm (v6.0.0 or higher)
-
Clone the repository:
git clone https://github.com/yourusername/e-dealership.git cd e-dealership -
Install dependencies:
npm install
-
Start the backend server:
npm start
-
Use open live server extention from vscode in the index.html file:
index.html
- The homepage displays all available vehicles
- Use the filter tags to narrow down by price range or other criteria
- Use the sort dropdown to order vehicles by price or popularity
- Click on a vehicle card to view detailed information
- View high-resolution images of the selected vehicle
- Switch between different color options
- See detailed specifications and pricing information
- Add the vehicle to your cart or wishlist
- Access your cart by clicking the cart icon in the navigation bar
- Adjust quantities or remove items
- View subtotal, tax, and total cost
- Proceed to checkout
- Save vehicles to your wishlist by clicking the heart icon
- View all saved vehicles in the wishlist page
- Move items from wishlist to cart with a single click
- Remove items from your wishlist
- Enter delivery information
- Choose delivery method
- Select payment method
- Review and confirm order
The backend API is available at http://localhost:8080 with the following endpoints:
GET /car: Get all available carsGET /car/:id: Get details for a specific carPOST /car/updateStock: Update stock quantities