{"id":27160227,"url":"https://github.com/prat555/Shizuka_Sustainable_Ecommerce","last_synced_at":"2025-12-30T20:22:29.184Z","repository":{"id":286646082,"uuid":"960284632","full_name":"prat555/Shizuka","owner":"prat555","description":"Shizuka is a sustainable e-commerce platform built with React, Node.js and MongoDB, offering eco-friendly products with cart, wishlist and secure checkout. It combines ethical shopping with modern web tech to promote conscious consumerism.","archived":false,"fork":false,"pushed_at":"2025-04-07T16:03:31.000Z","size":5922,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-07T17:24:00.852Z","etag":null,"topics":["expressjs","mongodb","nodejs","react","sustainability","vercel"],"latest_commit_sha":null,"homepage":"https://shizuka-san.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/prat555.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}},"created_at":"2025-04-04T07:03:57.000Z","updated_at":"2025-04-07T16:03:35.000Z","dependencies_parsed_at":"2025-04-07T17:34:15.078Z","dependency_job_id":null,"html_url":"https://github.com/prat555/Shizuka","commit_stats":null,"previous_names":["prat555/shizuka"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prat555%2FShizuka","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prat555%2FShizuka/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prat555%2FShizuka/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prat555%2FShizuka/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/prat555","download_url":"https://codeload.github.com/prat555/Shizuka/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247947823,"owners_count":21023058,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["expressjs","mongodb","nodejs","react","sustainability","vercel"],"created_at":"2025-04-08T23:40:42.119Z","updated_at":"2025-12-30T20:22:29.179Z","avatar_url":"https://github.com/prat555.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Shizuka – Sustainable E‑Commerce Platform\n\nShizuka is a full‑stack e‑commerce app for eco‑friendly products. It offers a clean, fast shopping experience, user‑scoped cart and wishlist, and a Carbon Footprint Tracker to encourage sustainable choices.\n\n![Shizuka Platform](https://img.shields.io/badge/Platform-E--Commerce-green) ![React](https://img.shields.io/badge/React-19-blue) ![Express](https://img.shields.io/badge/Backend-Express-lightgreen) ![MongoDB](https://img.shields.io/badge/Database-MongoDB-darkgreen) ![Tailwind](https://img.shields.io/badge/Styling-Tailwind%20CSS-cyan)\n\n## Key features\n\n- Product browsing with categories, search, featured carousels\n- User‑scoped Wishlist and Cart (persisted via backend)\n- Buy Now, Add to Cart, and Wishlist actions require sign‑in (redirects to Login)\n- Carbon Footprint Tracker (auth‑gated view; shows static demo data for now)\n- Polished UI with Tailwind and a consistent gray background (custom `bg-gray-75`)\n- Home hero uses an animated eco GIF; Login auto‑scrolls to top on navigation\n\n## Tech stack\n\n- Frontend: React 19, React Router, Tailwind CSS, React Icons, React Multi Carousel, Axios\n- Auth: Firebase Authentication (Email/Password + Google)\n- Backend: Node.js, Express, MongoDB, Mongoose, CORS, dotenv\n\n## 📁 Project structure\n\n```\nShizuka/\n├─ public/\n│  ├─ images/\n│  └─ index.html\n├─ src/\n│  ├─ components/\n│  ├─ pages/\n│  ├─ utils/\n│  └─ firebase.js\n├─ backend/\n│  ├─ config/\n│  ├─ models/\n│  ├─ routes/\n│  └─ server.js\n└─ README.md\n```\n\n## Auth behavior\n\n- Actions that modify user data (Add to Cart, Wishlist, Buy Now) require authentication.\n- If a guest clicks these, they are redirected to `/login`.\n- The Login page auto‑scrolls to the top so the form is always visible.\n- Carbon Tracker requires sign‑in; when signed in it shows static demo data (no backend writes yet).\n\n## Available scripts\n\nFrontend (root):\n\n- `npm start` – start CRA dev server\n- `npm run build` – build for production (note: current script moves build to `src/build`)\n\nBackend (`backend/`):\n\n- `npm start` – start Express server\n- `npm run dev` – start with nodemon (if you have it installed)\n\n## API overview\n\nBase URL (dev): `http://localhost:5000`\n\nProducts\n\n- `GET /products` – list products (supports `?category=` and `?search=`)\n- `GET /products/featured` – featured products\n- `GET /products/categories` – dynamic category list\n\nCart\n\n- `POST /cart/add` – add/increase\n- `POST /cart/update` – update quantity or remove (`quantity: 0`)\n- `GET /cart/:userId` – get user cart\n- `DELETE /cart/remove/:id` – remove item by productId\n\nWishlist\n\n- `POST /wishlist/toggle` – add/remove\n- `GET /wishlist/:userId` – get user wishlist\n- `POST /wishlist/remove` – remove specific item\n\nCarbon (experimental; prefixed with `/api/carbon`)\n\n- `GET /api/carbon/profile`\n- `GET /api/carbon/dashboard`\n- `GET /api/carbon/activities`\n- `POST /api/carbon/activity`\n- `POST /api/carbon/goal`\n- `GET /api/carbon/goals`\n- `POST /api/carbon/purchase-impact`\n\n## 📄 License\n\nLicensed under the MIT License – see [LICENSE](./LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprat555%2FShizuka_Sustainable_Ecommerce","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fprat555%2FShizuka_Sustainable_Ecommerce","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprat555%2FShizuka_Sustainable_Ecommerce/lists"}