A modern web application for a pet store that allows customers to browse and purchase pet-related products.
- Browse products by category (Food, Toys, Furniture, Accessories)
- Shopping cart functionality
- Real-time stock tracking
- Responsive design for mobile and desktop
- Product quantity controls
- Order confirmation system
- Frontend: HTML, CSS, JavaScript
- Backend: Node.js with Express
- Static file serving
- Local storage for cart persistence
- Install dependencies:
npm install
- Start the server:
npm start
- Open your browser and navigate to:
http://localhost:3000
server.js
- Express server setup and API endpointsindex.html
- Main application pageproducts.js
- Product catalog datascript.js
- Client-side application logicstyles.css
- Application styling
- Browse products by using the category filters at the top of the page
- Click the plus/minus buttons to adjust product quantities
- Click "Add to Cart" to add items to your shopping cart
- Click the cart icon to view your cart
- Use the checkout button to place your order
The application uses a simple Express server to serve static files and handle API requests. Product data is stored in a JavaScript file for easy modification. The frontend uses vanilla JavaScript with no external dependencies for core functionality.