A modern web application showcasing a directory of suppliers across various industries. Built with Vite and vanilla JavaScript.
- Responsive design
- Category-based supplier filtering
- Detailed supplier information including:
- Company name
- Description
- Product images
- Website links
- Industry tags
The directory includes suppliers from various categories:
- Shoes
- Bags
- Sports & Recreational
- Clothing
- Jewelry
- Kitchen
- Furniture
- Automotive & Industrial
- Others
├── public/
│ ├── images/
│ │ └── suppliers/ # Supplier images
│ └── suppliers.json # Supplier data
├── src/
├── index.html
├── main.js
├── style.css
└── package.json
- Node.js (v14 or higher)
- npm (v6 or higher)
- Clone the repository:
git clone [repository-url]- Install dependencies:
npm install- Start the development server:
npm run dev- Build for production:
npm run buildnpm run dev- Start development servernpm run build- Build for productionnpm run preview- Preview production build locally
The suppliers data is stored in public/suppliers.json with the following structure:
{
"title": "Company Name",
"desc": "Company Description",
"image": "/images/suppliers/image.jpg",
"imageFilename": "image.jpg",
"url": "https://company-website.com",
"tags": ["category1", "category2"]
}- Fork the repository
- Create your feature branch (
git checkout -b feature/AmazingFeature) - Commit your changes (
git commit -m 'Add some AmazingFeature') - Push to the branch (
git push origin feature/AmazingFeature) - Open a Pull Request
FancyChina is dual-licensed:
- AGPLv3 — for personal and non-commercial use. See
LICENSE - Commercial Use — Pay what you want (buy me a coffee ☕). See
COMMERCIAL-LICENSE.md
If you're using this in a commercial project, we kindly ask that you support the work 🙏
→ Buy me a coffee