{"id":49540410,"url":"https://github.com/ztacole/recyclens-fe","last_synced_at":"2026-05-02T15:05:28.122Z","repository":{"id":288274837,"uuid":"967434751","full_name":"ztacole/recyclens-fe","owner":"ztacole","description":null,"archived":false,"fork":false,"pushed_at":"2025-04-16T15:17:48.000Z","size":99417,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-16T20:02:52.709Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://recyclens-fe.vercel.app","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ztacole.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-04-16T12:59:03.000Z","updated_at":"2025-04-16T15:17:52.000Z","dependencies_parsed_at":"2025-04-16T20:19:18.646Z","dependency_job_id":null,"html_url":"https://github.com/ztacole/recyclens-fe","commit_stats":null,"previous_names":["ztacole/recyclens-fe"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ztacole/recyclens-fe","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ztacole%2Frecyclens-fe","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ztacole%2Frecyclens-fe/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ztacole%2Frecyclens-fe/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ztacole%2Frecyclens-fe/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ztacole","download_url":"https://codeload.github.com/ztacole/recyclens-fe/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ztacole%2Frecyclens-fe/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32538278,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-02T12:25:33.646Z","status":"ssl_error","status_checked_at":"2026-05-02T12:24:51.733Z","response_time":132,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-05-02T15:05:20.735Z","updated_at":"2026-05-02T15:05:28.115Z","avatar_url":"https://github.com/ztacole.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Recyclens - AI-Powered Waste Classification System\n\n\u003e An intelligent web application for automated waste type classification and environmental education\n\nRecyclens is a modern, user-friendly platform designed to help users identify and properly manage different types of waste through artificial intelligence. The application leverages computer vision to classify waste into three categories: organic, inorganic, and hazardous (B3) waste, promoting environmental responsibility and proper waste management practices.\n\n![Recyclens](https://img.shields.io/badge/React-19.0-61DAFB?style=flat-square\u0026logo=react)\n![Vite](https://img.shields.io/badge/Vite-6.2-646CFF?style=flat-square\u0026logo=vite)\n![Tailwind CSS](https://img.shields.io/badge/Tailwind-4.1-06B6D4?style=flat-square\u0026logo=tailwindcss)\n![Status](https://img.shields.io/badge/Status-Active-brightgreen?style=flat-square)\n\n---\n\n## 🌟 Features\n\n- **AI Waste Scanner**: Upload images to automatically classify waste types using machine learning\n- **Waste Education**: Learn about different waste categories:\n  - Organic Waste (Sampah Organik)\n  - Inorganic Waste (Sampah Anorganik)\n  - Hazardous Waste (Sampah B3)\n- **Blog Section**: Stay updated with articles about environmental sustainability and waste management best practices\n- **Responsive Design**: Optimized for desktop, tablet, and mobile devices\n- **Fast Navigation**: Smooth page transitions with React Router\n- **Modern UI**: Built with Tailwind CSS and complemented by icon libraries\n\n---\n\n## 🛠️ Tech Stack\n\n- **Framework**: [React 19](https://react.dev) - UI library\n- **Build Tool**: [Vite 6.2](https://vitejs.dev) - Next-generation build tool\n- **Styling**: [Tailwind CSS 4.1](https://tailwindcss.com) - Utility-first CSS framework\n- **Routing**: [React Router DOM 7.4](https://reactrouter.com) - Client-side routing\n- **Icons**: \n  - [React Icons 5.5](https://react-icons.github.io/react-icons)\n  - [Font Awesome](https://fontawesome.com)\n  - [Lucide React](https://lucide.dev)\n- **Carousel**: [React Slick](https://react-slick.neostack.com)\n- **ML Integration**: Connected to railway-hosted ML API for waste prediction\n- **Code Quality**: ESLint for JavaScript linting\n\n---\n\n## 📋 Prerequisites\n\n- Node.js v14 or higher\n- npm or yarn package manager\n- Git (optional, for cloning the repository)\n\n---\n\n## 🚀 Installation\n\n1. **Clone the repository**\n   ```bash\n   git clone \u003crepository-url\u003e\n   cd recyclens-fe\n   ```\n\n2. **Install dependencies**\n   ```bash\n   npm install\n   # or\n   yarn install\n   ```\n\n3. **Environment Setup** (if needed for API configuration)\n   - The application is configured to connect to the ML API at: `https://web-production-c8bf2.up.railway.app/predict`\n   - Update API endpoints in [api/predict.js](api/predict.js) if necessary\n\n---\n\n## 💻 Development\n\n### Start Development Server\n```bash\nnpm run dev\n```\nThe application will be available at `http://localhost:5173` with hot module replacement (HMR) enabled.\n\n### Build for Production\n```bash\nnpm run build\n```\nCreates an optimized production build in the `dist` directory.\n\n### Preview Production Build\n```bash\nnpm run preview\n```\nServes the production build locally for testing.\n\n### Lint Code\n```bash\nnpm run lint\n```\nRuns ESLint to check for code quality issues.\n\n---\n\n## 📁 Project Structure\n\n```\nrecyclens-fe/\n├── api/\n│   ├── blogs.js              # Blog API integration\n│   └── predict.js            # ML waste prediction API handler\n├── public/                   # Static assets\n├── src/\n│   ├── components/\n│   │   └── layout/\n│   │       ├── navbar.jsx    # Navigation component\n│   │       └── footer.jsx    # Footer component\n│   ├── pages/\n│   │   ├── home.jsx          # Home page with hero section\n│   │   ├── about.jsx         # About page\n│   │   ├── scan.jsx          # Waste scanner/prediction page\n│   │   ├── blog.jsx          # Blog listing page\n│   │   ├── contact.jsx       # Contact page\n│   │   └── education/        # Educational pages\n│   │       ├── organik.jsx        # Organic waste info\n│   │       ├── anorganik.jsx      # Inorganic waste info\n│   │       └── berbahaya.jsx      # Hazardous waste info\n│   ├── assets/               # Images and media files\n│   │   └── image/\n│   │       ├── Article/      # Blog article images\n│   │       ├── background/   # Background images\n│   │       └── team/         # Team images\n│   ├── App.jsx               # Main app component with routing\n│   ├── App.css               # App styles\n│   ├── main.jsx              # React DOM entry point\n│   └── index.css             # Global styles\n├── eslint.config.js          # ESLint configuration\n├── vite.config.js            # Vite configuration\n├── tailwind.config.js        # Tailwind CSS configuration\n├── postcss.config.js         # PostCSS configuration\n├── package.json              # Project dependencies\n└── index.html                # HTML entry point\n```\n\n---\n\n## 🔗 Available Routes\n\n| Route | Page | Description |\n|-------|------|-------------|\n| `/` | Home | Landing page with hero section |\n| `/about` | About | About Recyclens and its mission |\n| `/scan` | Scan | Waste classification scanner |\n| `/organik` | Organic Waste | Educational content on organic waste |\n| `/anorganik` | Inorganic Waste | Educational content on inorganic waste |\n| `/b3` | Hazardous Waste | Educational content on hazardous waste |\n| `/blog` | Blog | Environmental sustainability articles |\n| `/contact` | Contact | Contact and support page |\n\n---\n\n## 🧠 How It Works\n\n1. **Upload Image**: Users visit the `/scan` page and upload a waste item image\n2. **AI Processing**: The image is sent to the ML API for classification\n3. **Result**: The system returns the waste category and handling recommendations\n4. **Education**: Users can learn more through educational pages tailored to each waste type\n\n---\n\n## 🌐 Deployment\n\n### Vercel\nThis project is configured for Vercel deployment:\n```bash\nnpm run build\n# Deploy using Vercel CLI\nvercel deploy\n```\n\nCheck `vercel.json` for deployment configuration.\n\n### Environment Variables\nEnsure the API endpoint is correctly set in your deployment environment:\n- ML API Base: `https://web-production-c8bf2.up.railway.app`\n\n---\n\n## 📝 Scripts Reference\n\n| Script | Command | Description |\n|--------|---------|-------------|\n| Dev | `npm run dev` | Start development server with HMR |\n| Build | `npm run build` | Build for production |\n| Lint | `npm run lint` | Check code quality |\n| Preview | `npm run preview` | Preview production build |\n\n---\n\n## 🐛 Troubleshooting\n\n### Port Already in Use\nIf port 5173 is in use, Vite will automatically try the next available port. Check the terminal output.\n\n### API Connection Issues\n- Verify the ML API endpoint is accessible\n- Check network connectivity\n- Review browser console for CORS issues\n\n### Build Errors\n```bash\n# Clear cache and reinstall\nrm -rf node_modules package-lock.json\nnpm install\nnpm run build\n```\n\n---\n\n## 🤝 Contributing\n\nContributions are welcome! Please follow these steps:\n\n1. Create a feature branch (`git checkout -b feature/YourFeature`)\n2. Make your changes\n3. Run linting (`npm run lint`)\n4. Commit your changes (`git commit -m 'Add YourFeature'`)\n5. Push to the branch (`git push origin feature/YourFeature`)\n6. Open a Pull Request\n\n---\n\n## 📄 License\n\nThis project is part of the Recyclens initiative. All rights reserved.\n\n---\n\n## 📧 Contact \u0026 Support\n\nFor questions, issues, or support:\n- Visit the [Contact Page](/contact)\n- Check out the [About Page](/about)\n\n---\n\n## 🙏 Acknowledgments\n\n- React and Vite communities for excellent tools\n- Tailwind CSS for beautiful styling framework\n- All contributors and team members dedicated to environmental sustainability\n\n---\n\n**Happy recycling with Recyclens! 🌍♻️**\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fztacole%2Frecyclens-fe","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fztacole%2Frecyclens-fe","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fztacole%2Frecyclens-fe/lists"}