Welcome to the AI-Powered Virtual Try-On Clothing Store! This Next.js-based website allows users to browse and purchase clothing items while leveraging AI technology to virtually try on clothes before buying. The project integrates with Hugging Face API for AI-powered virtual try-on and Edge Store for secure file storage.
- AI Virtual Try-On: Users can upload their photos and virtually try on clothing items using AI-powered technology.
- Product Catalog: Browse a wide range of clothing items with detailed descriptions, images, and pricing.
- Responsive Design: Optimized for desktop, tablet, and mobile devices.
- Secure File Storage: Uploaded user images are securely stored using Edge Store.
- User-Friendly Interface: Intuitive and easy-to-use interface for seamless shopping.
Before you begin, ensure you have the following installed:
-
Clone the repository:
git clone https://github.com/your-username/your-repo-name.git cd your-repo-name
-
Install dependencies:
npm install # or yarn install
-
Set up environment variables:
Create a
.env.local
file in the root directory and add the following keys:# Hugging Face API HUGGING_FACE_API_KEY=your_hugging_face_api_key_here # Edge Store EDGE_STORE_SECRET_KEY=your_edge_store_secret_key_here EDGE_STORE_ACCESS_KEY=your_edge_store_access_key_here
Replace the placeholders with your actual API keys.
-
Run the development server:
npm run dev # or yarn dev
The website will be available at
http://localhost:3000
.
- User Uploads Photo: The user uploads a photo of themselves through the website interface.
- AI Processing: The photo is sent to the Hugging Face API, which processes the image and overlays the selected clothing item.
- Virtual Try-On Result: The processed image is returned to the user, allowing them to see how the clothing item looks on them.
- Secure Storage: Uploaded images are securely stored using Edge Store for future reference.
This project is optimized for deployment on Vercel. Follow these steps to deploy:
- Push your code to a GitHub repository.
- Import the repository into Vercel.
- Add the environment variables in the Vercel dashboard under Settings > Environment Variables.
- Deploy!
- Missing Environment Variables: Ensure all required environment variables are set in
.env.local
. - API Errors: Check the Hugging Face API and Edge Store documentation for any API-related issues.
- Image Upload Issues: Verify that the Edge Store keys are correct and the service is operational.
We welcome contributions! If you'd like to contribute, please follow these steps:
- Fork the repository.
- Create a new branch (
git checkout -b feature/YourFeatureName
). - Commit your changes (
git commit -m 'Add some feature'
). - Push to the branch (
git push origin feature/YourFeatureName
). - Open a pull request.
This project is licensed under the MIT License. See the LICENSE file for details.
- Next.js for the awesome framework.
- Hugging Face for AI models.
- Edge Store for file storage.
Made with ❤️ by Anh Thu.