{"id":18152297,"url":"https://github.com/deepraj21/canvas","last_synced_at":"2026-02-16T19:03:03.451Z","repository":{"id":237308608,"uuid":"793527269","full_name":"deepraj21/Canvas","owner":"deepraj21","description":"Canvas is an e-commerce platform designed to sell paintings with an intuitive, user-friendly interface and real-time updates. The application consists of three major components: a Frontend for users, a Backend for handling API requests and database management, and an Admin Panel for product management.","archived":false,"fork":false,"pushed_at":"2024-10-18T13:58:06.000Z","size":84591,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-22T09:49:17.996Z","etag":null,"topics":["admin-panel","cloudinary","expressjs","jwt","mongodb","reactjs","vitejs"],"latest_commit_sha":null,"homepage":"https://canvas-v1.vercel.app","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/deepraj21.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":"2024-04-29T11:48:07.000Z","updated_at":"2025-08-07T17:09:50.000Z","dependencies_parsed_at":"2025-08-22T09:43:05.399Z","dependency_job_id":null,"html_url":"https://github.com/deepraj21/Canvas","commit_stats":null,"previous_names":["deepraj21/canvas"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/deepraj21/Canvas","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deepraj21%2FCanvas","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deepraj21%2FCanvas/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deepraj21%2FCanvas/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deepraj21%2FCanvas/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/deepraj21","download_url":"https://codeload.github.com/deepraj21/Canvas/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deepraj21%2FCanvas/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29515504,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-16T18:37:19.720Z","status":"ssl_error","status_checked_at":"2026-02-16T18:36:46.920Z","response_time":115,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: 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":["admin-panel","cloudinary","expressjs","jwt","mongodb","reactjs","vitejs"],"created_at":"2024-11-02T02:06:45.861Z","updated_at":"2026-02-16T19:03:03.436Z","avatar_url":"https://github.com/deepraj21.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Canvas - Painting E-Commerce Web Application\n\n**Canvas** is an e-commerce platform designed to sell paintings with an intuitive, user-friendly interface and real-time updates. The application consists of three major components: a **Frontend** for users, a **Backend** for handling API requests and database management, and an **Admin Panel** for product management.\n\n\n## Features\n\n### **User Features**\n- **Product Upload:** Upload paintings/products via the admin panel with Cloudinary for image storage.\n- **Add to Cart:** Seamless product addition to the cart with real-time updates.\n- **Filter and Categorize Products:** Browse products by category for easy filtering and selection.\n- **Cart Updates:** Add items with real-time quantity and price updates in the cart.\n- **New Collections:** Automatically include the newest products in the \"New Collection\" section.\n- **Remove from Cart:** Easily remove items from the cart with real-time feedback.\n- **Cart Notification:** Real-time notification updates with cart icon badges showing the number of items.\n- **Auto-Update Prices:** Both total and individual product prices are automatically updated as items are added or removed from the cart.\n  \n### **Admin Features**\n- **Product Management:** Easily add or remove products through the admin panel with just a few clicks.\n- **Real-Time Image Upload:** Upload and store images using Cloudinary for efficient image management.\n- **Delete Products:** Quickly remove items from the catalog in the Admin Panel.\n\n---\n\n## Tech Stack\n\n- **Frontend**: React.js (deployed on Vercel)\n- **Backend**: Node.js, Express.js (deployed on Render)\n- **Database**: MongoDB (for storing user and product data)\n- **Image Hosting**: Cloudinary (for storing and serving images)\n- **State Management**: React useState and Context API\n- **Authentication**: JWT-based user authentication for secure login and signup.\n\n---\n\n## Installation and Setup\n\n### **1. Clone the Repository**\n```bash\ngit clone https://github.com/deepraj21/canvas\ncd canvas\n```\n\n### **2. Install Dependencies**\nNavigate to the backend, frontend, and admin panel directories individually and install the required dependencies.\n\n```bash\ncd Backend\nnpm install\n```\n\n```bash\ncd Frontend\nnpm install\n```\n\n```bash\ncd Admin\nnpm install\n```\n\n### **3. Environment Variables**\nCreate a `.env` file in your backend directory with the following credentials:\n\n```\nMONGODB_URI=\u003cyour-mongodb-uri\u003e\nCLOUDINARY_CLOUD_NAME=\u003cyour-cloudinary-cloud-name\u003e\nCLOUDINARY_API_KEY=\u003cyour-cloudinary-api-key\u003e\nCLOUDINARY_API_SECRET=\u003cyour-cloudinary-api-secret\u003e\n```\n\n### **4. Run the Applications**\nRun the backend and frontend locally for development.\n\n- **Backend**:\n  ```bash\n  node index.js\n  ```\n  The backend should run on `http://localhost:4000/`\n\n- **Frontend**:\n  ```bash\n  npm start\n  ```\n  The frontend should run on `http://localhost:3000/`\n\n- **Admin Panel**:\n  ```bash\n  npm run dev\n  ```\n  The admin panel should run on `http://localhost:5173/`\n\n---\n\n## API Endpoints\n\n### **User APIs**\n\n- **Signup**: `POST /signup`\n- **Login**: `POST /login`\n- **Get All Products**: `GET /allProducts`\n- **Add to Cart**: `POST /addtocart`\n- **Remove from Cart**: `POST /removefromcart`\n- **Get Cart Data**: `POST /getcart`\n- **New Collection**: `GET /newcollection`\n- **Popular Items**: `GET /popularitems`\n\n### **Admin APIs**\n\n- **Upload Product Image**: `POST /upload` (Uses Cloudinary for image storage)\n- **Add Product**: `POST /addProduct`\n- **Delete Product**: `POST /deleteProduct`\n\n---\n\n## Deployment\n\n### **Frontend**: Vercel\n\nThe frontend is deployed on Vercel for ease of deployment and scalability. \n\nAccess: [Canvas Frontend](https://canvas-v1.vercel.app/)\n\n### **Backend**: Render\n\nThe backend is deployed on Render, which handles the API requests, database connections, and image storage management.\n\nAccess: [Canvas Backend](https://canvas-backend-vgcc.onrender.com/)\n\n### **Admin Panel**: Vercel\n\nThe admin panel is deployed separately on Vercel for managing the product catalog.\n\nAccess: [Canvas Admin Panel](https://canvas-admin-panel.vercel.app/)\n\n---\n\n## Future Enhancements\n\n- **Payment Gateway Integration**: Add support for online payments using Stripe or PayPal.\n- **User Profile \u0026 Orders**: Implement user profiles with order history.\n- **Search Functionality**: Add product search across the site for easier navigation.\n- **Wishlist**: Allow users to save products to their wishlist.\n  \n---\n\n## Contributing\n\nFeel free to raise issues or submit pull requests to contribute to this project. You can reach out with any questions or feature suggestions.\n\n---\n\n## License\n\nThis project is licensed under the MIT License.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdeepraj21%2Fcanvas","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdeepraj21%2Fcanvas","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdeepraj21%2Fcanvas/lists"}