{"id":18972977,"url":"https://github.com/sumer16/hotelmart-ecommerce","last_synced_at":"2025-04-16T09:33:24.671Z","repository":{"id":155365111,"uuid":"587697108","full_name":"Sumer16/hotelmart-ecommerce","owner":"Sumer16","description":"A fully functional E-commerce website which allows the users to login, add/delete products to/from cart, view products in detail and process payment of the products. This application has been built using React, NextJS, React MUI, Sanity (Headless CMS), and Stripe (Payment API).","archived":true,"fork":false,"pushed_at":"2024-11-04T06:11:24.000Z","size":2036,"stargazers_count":2,"open_issues_count":0,"forks_count":2,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-03-22T11:48:15.390Z","etag":null,"topics":["auth","ecommerce","javascript","mui-material","nextjs","paypal","reactjs","sanity-io","stripe-payments"],"latest_commit_sha":null,"homepage":"","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/Sumer16.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2023-01-11T11:18:54.000Z","updated_at":"2025-01-30T21:13:45.000Z","dependencies_parsed_at":null,"dependency_job_id":"6451bb57-9b1a-4a65-9cdc-af85ee5e49b9","html_url":"https://github.com/Sumer16/hotelmart-ecommerce","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Sumer16%2Fhotelmart-ecommerce","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Sumer16%2Fhotelmart-ecommerce/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Sumer16%2Fhotelmart-ecommerce/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Sumer16%2Fhotelmart-ecommerce/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Sumer16","download_url":"https://codeload.github.com/Sumer16/hotelmart-ecommerce/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249223935,"owners_count":21232833,"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":["auth","ecommerce","javascript","mui-material","nextjs","paypal","reactjs","sanity-io","stripe-payments"],"created_at":"2024-11-08T15:10:38.011Z","updated_at":"2025-04-16T09:33:24.203Z","avatar_url":"https://github.com/Sumer16.png","language":"JavaScript","funding_links":["https://paypal.com"],"categories":[],"sub_categories":[],"readme":"# [HotelMart Ecommerce](https://hotelmart.vercel.app)\n[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](/LICENSE)\n\n![HotelMart Landing Page](/hotelmart.png)\n\n### NOTE: This project is no longer maintained.\n\n## About HotelMart\n\nThis is a fully functional e-commerce website that allows users to login, add/delete products to/from cart, view products in detail, and process payment for products. This platform is built using React, Next.js, React MUI, Sanity (Headless CMS), and Stripe \u0026 PayPal (Payment APIs), and deployed on Vercel.\n\n## Key Featues\n\n- Server-rendered pages using [Next.js](https://nextjs.org)\n- User authentication \u0026 Product management using [Sanity Headless CMS](https://sanity.io)\n- Shopping cart functionality using React Context API\n- Payment processing using [Stripe](https://stripe.com/) \u0026 [PayPal](https://paypal.com) Payment APIs\n- Stunning UI designed using React Material UI\n- Secure authentication method using JWT \u0026 bycrypt\n- Light \u0026 Dark mode available for better user accessibility\n\n## Installation\n\n### Clone the repository\nTo get started, you'll need to clone this repository to your local machine. You can do this by running the following in the command line:\n\n```bash \ngit clone https://github.com/Sumer16/hotelmart-ecommerce.git \n```\n\n### Install dependencies\n\nOnce you've cloned the repository, navigate to the project directory and run npm/yarn install to install all the necessary dependencies.\n\n```bash\ncd hotelmart-ecommerce\n\nnpm install\n# or\nyarn install\n```\n\n### Setup the environment variables\n\nAfter the dependencies have been installed, create a ```.env``` file in the root of the project and add all your necessary API credentials such as Stripe, PayPal and Sanity:\n\n```bash\nSANITY_PROJECT_ID=your_sanity_project_id\nSANITY_DATASET=your_sanity_dataset\n\nJWT_WEB_SECRET=your_secret_key\n\nNEXT_PUBLIC_STRIPE_PUBLISHABLE_KEY=your_stripe_publishable_key\nNEXT_PUBLIC_STRIPE_SECRET_KEY=your_stripe_secret_key\n\nPAYPAL_CLIENT_ID=your_paypal_client_id\n```\n\n### Setup Sanity\n\nCreate your own Sanity project using the following command:\n```bash\nnpm create sanity@latest -- --template clean --create-project \"{Your project name}\" --dataset production\n```\n\nAfter creating your Sanity project, run the Sanity studio locally:\n```bash\ncd sanity-project\n\nnpm run dev\n```\n\nThis will build the studio application and start a local development server so you can run the app in your browser. Once the build is complete, you can head over to [`http://localhost:3333`](http://localhost:3333) to use the Sanity Studio.\n\n### Run the development server\n\nAfter the dependencies have been installed, you can start the development server by running:\n\n```bash\nnpm run dev\n# or\nyarn dev\n```\n\nThis will start the server at `http://localhost:3000`, and you can view the website in your browser.\n\nOpen [`http://localhost:3000`](http://localhost:3000) with your browser to see the result.\n\n## Build for production\n\n```bash\nnpm run build\n# or\nyarn build\n```\n\n## Deploy on Vercel\n\nThe easiest way to deploy your Next.js app is to use the [Vercel Platform](https://vercel.com/new?utm_medium=default-template\u0026filter=next.js\u0026utm_source=create-next-app\u0026utm_campaign=create-next-app-readme) from the creators of Next.js.\n\n```bash\nnpm install -g vercel\n# or\nyarn global add vercel\n\nvercel\n```\n\nCheck out our [Next.js deployment documentation](https://nextjs.org/docs/deployment) for more details.\n\n## Things to say\n\nI hope you find this e-commerce website to be a solid starting point for building your own online store. If you have any questions or feedback, please feel free to open an issue in this repository. Happy shopping!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsumer16%2Fhotelmart-ecommerce","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsumer16%2Fhotelmart-ecommerce","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsumer16%2Fhotelmart-ecommerce/lists"}