A user-friendly website for a washing machine shop, built with React, Next.js, Tailwind CSS, and more.
- π Overview
- π¦ Features
- π Structure
- π» Installation
- ποΈ Usage
- π Hosting
- π License
- π Authors
This repository contains a web application called "washing-machine-shop-website" that provides a comprehensive solution for a washing machine shop's online presence, serving as a digital hub for product showcases, repair service bookings, customer engagement, and more. The project is built with a modern tech stack, including React, Next.js, Tailwind CSS, and custom LLMs.
Feature | Description | |
---|---|---|
π | Homepage | An engaging homepage with an eye-catching banner, shop description, and clear call-to-action buttons for customer interaction. |
π | Product Showcase | A section to display washing machine models with high-quality images, detailed descriptions, and filtering options for easy navigation. |
π§ | Repair Services | A detailed section outlining the shop's repair services, common issues addressed, pricing guidelines, and warranty information. |
π | Online Booking | A user-friendly online booking system for scheduling repair appointments at the customer's convenience. |
πΈ | Photo/Video Upload | An option for customers to upload photos or videos of their washing machine issue for faster diagnosis and potential solutions. |
π€ | About Us | A page showcasing the shop's history, team, values, and positive customer testimonials to build trust and credibility. |
π° | Blog/News | A section featuring informative blog posts or articles related to washing machine care, maintenance tips, and industry news. |
π± | Responsive Design | The website is designed with a responsive layout, adapting to different screen sizes for optimal viewing on desktops, tablets, and smartphones. |
π€ | AI-Powered Chatbot | An AI-powered chatbot to provide instant support, answer common customer queries, and enhance customer satisfaction. (Optional) |
π | Augmented Reality (AR) | An immersive augmented reality experience allowing customers to virtually "try out" different washing machine models in their own homes. (Optional) |
π― | Personalized Recommendations | The website analyzes user browsing history and preferences to provide personalized product recommendations. (Optional) |
π³ | Online Payment Integration | A secure online payment gateway for customers to purchase products and book services directly on the website. (Optional) |
π | Loyalty Program | A loyalty program to reward repeat customers, encourage ongoing engagement, and foster long-term customer relationships. (Optional) |
washing-machine-shop-website
βββ public
β βββ assets
β β βββ images
β β β βββ hero-banner.jpg
β β β βββ washing-machines.jpg
β β β βββ repair-services.jpg
β β β βββ about-us.jpg
β β β βββ testimonials.jpg
β β β βββ blog-posts.jpg
β β βββ fonts
β β β βββ roboto-regular.ttf
β β β βββ roboto-bold.ttf
β β β βββ roboto-light.ttf
β β βββ icons
β β βββ logo.svg
β β βββ shopping-cart.svg
β β βββ repair-tool.svg
β β βββ about-us.svg
β β βββ blog.svg
β β βββ contact.svg
β βββ favicon.ico
βββ components
β βββ Header.js
β βββ HeroBanner.js
β βββ ShopDescription.js
β βββ CallToAction.js
β βββ ProductCard.js
β βββ ProductFilters.js
β βββ RepairServicesSection.js
β βββ BookingForm.js
β βββ UploadForm.js
β βββ AboutUsSection.js
β βββ Testimonials.js
β βββ BlogPost.js
β βββ Footer.js
β βββ Layout.js
βββ pages
β βββ index.js
β βββ products.js
β βββ repairs.js
β βββ about.js
β βββ blog.js
β βββ contact.js
βββ styles
β βββ globals.css
β βββ components.css
β βββ pages.css
βββ utils
β βββ fetchProducts.js
β βββ filterProducts.js
β βββ handleBooking.js
β βββ handleUpload.js
β βββ getTestimonials.js
β βββ getBlogPosts.js
β βββ handleContactForm.js
βββ server
βββ index.js
βββ routes
βββ products.js
βββ repairs.js
βββ testimonials.js
βββ blog.js
βββ contact.js
- Node.js (v18 or later recommended)
- npm (or yarn)
- Docker (Optional for development and deployment)
- Clone the repository:
git clone https://github.com/spectra-ai-codegen/washing-machine-shop-website.git
- Navigate to the project directory:
cd washing-machine-shop-website
- Install dependencies:
npm install
- Start the development server:
npm run dev
- Open your browser and navigate to http://localhost:3000.
- Environment Variables: Configure environment variables in a
.env
file at the root of the project. Refer to the.env.example
file for available variables and their descriptions. - Database Configuration: Configure your PostgreSQL database connection details in the
.env
file. - API Keys: Configure API keys for services like Google Maps, Stripe, Twilio, and OpenAI in the
.env
file.
- Homepage: http://localhost:3000
- Products: http://localhost:3000/products
- Repair Services: http://localhost:3000/repairs
- About Us: http://localhost:3000/about
- Blog: http://localhost:3000/blog
- Contact: http://localhost:3000/contact
- Vercel:
- Configure your Vercel project with the appropriate settings.
- Deploy your code using the Vercel CLI or the Vercel website.
- Set up environment variables in your Vercel project settings.
- Netlify:
- Configure your Netlify project with the appropriate settings.
- Deploy your code using the Netlify CLI or the Netlify website.
- Set up environment variables in your Netlify project settings.
- GitHub Pages:
- Configure your GitHub Pages deployment settings in the repository's settings.
- Push your code to the
gh-pages
branch.
- AWS:
- Create an AWS S3 bucket to store your website files.
- Configure an AWS CloudFront distribution for serving your website content.
- Deploy your code to the S3 bucket.
- Google Cloud:
- Create a Google Cloud Storage bucket to store your website files.
- Configure a Google Cloud CDN for serving your website content.
- Deploy your code to the Google Cloud Storage bucket.
NEXT_PUBLIC_GOOGLE_MAPS_API_KEY
: Google Maps API keySTRIPE_PUBLISHABLE_KEY
: Stripe publishable keyTWILIO_ACCOUNT_SID
: Twilio account SIDTWILIO_AUTH_TOKEN
: Twilio auth tokenOPENAI_API_KEY
: OpenAI API key (Optional)
- GET /api/products: Retrieves a list of washing machine products.
- POST /api/bookings: Creates a new repair booking.
- POST /api/uploads: Uploads images or videos related to a repair issue.
- GET /api/testimonials: Retrieves customer testimonials.
- GET /api/blog-posts: Retrieves blog posts.
- POST /api/contact: Submits a contact form message.
The API endpoints do not require authentication.
curl -X GET http://localhost:3000/api/products
curl -X POST http://localhost:3000/api/bookings -H 'Content-Type: application/json' -d '{"customerName": "John Doe", "machineModel": "Samsung WF45R6300AW", "issueDescription": "Machine is not draining properly", "appointmentDate": "2024-10-26"}'
This project is licensed under the GNU AGPLv3.
- Author Name - Spectra.codes
- Creator Name - DRIX10
Why only generate Code? When you can generate the whole Repository!