{"id":14970013,"url":"https://github.com/mohamedsamara/mern-ecommerce","last_synced_at":"2025-10-05T20:13:46.178Z","repository":{"id":37648812,"uuid":"192452145","full_name":"mohamedsamara/mern-ecommerce","owner":"mohamedsamara","description":":balloon: Fullstack MERN Ecommerce Application","archived":false,"fork":false,"pushed_at":"2024-08-31T01:11:47.000Z","size":30034,"stargazers_count":1897,"open_issues_count":44,"forks_count":890,"subscribers_count":49,"default_branch":"master","last_synced_at":"2025-08-06T19:49:49.946Z","etag":null,"topics":["express","mern","mern-ecommerce","mern-stack","mongoose","node","react","redux","redux-thunk"],"latest_commit_sha":null,"homepage":"https://mern-store-gold.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/mohamedsamara.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":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-06-18T02:38:45.000Z","updated_at":"2025-08-06T04:44:05.000Z","dependencies_parsed_at":"2023-02-17T11:01:21.844Z","dependency_job_id":"7a229463-c25f-4ded-8f41-41cb1b0504d8","html_url":"https://github.com/mohamedsamara/mern-ecommerce","commit_stats":{"total_commits":308,"total_committers":7,"mean_commits":44.0,"dds":0.06493506493506496,"last_synced_commit":"7f73dfbd68a27b6945fe7fbf654067004816d09e"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/mohamedsamara/mern-ecommerce","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mohamedsamara%2Fmern-ecommerce","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mohamedsamara%2Fmern-ecommerce/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mohamedsamara%2Fmern-ecommerce/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mohamedsamara%2Fmern-ecommerce/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mohamedsamara","download_url":"https://codeload.github.com/mohamedsamara/mern-ecommerce/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mohamedsamara%2Fmern-ecommerce/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278510949,"owners_count":25999012,"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","status":"online","status_checked_at":"2025-10-05T02:00:06.059Z","response_time":54,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["express","mern","mern-ecommerce","mern-stack","mongoose","node","react","redux","redux-thunk"],"created_at":"2024-09-24T13:42:52.751Z","updated_at":"2025-10-05T20:13:46.146Z","avatar_url":"https://github.com/mohamedsamara.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# MERN Ecommerce\n\n## Description\n\nAn ecommerce store built with MERN stack, and utilizes third party API's. This ecommerce store enable three main different flows or implementations:\n\n1. Buyers browse the store categories, products and brands\n2. Sellers or Merchants manage their own brand component\n3. Admins manage and control the entire store components \n\n### Features:\n\n  * Node provides the backend environment for this application\n  * Express middleware is used to handle requests, routes\n  * Mongoose schemas to model the application data\n  * React for displaying UI components\n  * Redux to manage application's state\n  * Redux Thunk middleware to handle asynchronous redux actions\n\n## Demo\n\nThis application is deployed on Vercel Please check it out :smile: [here](https://mern-store-gold.vercel.app).\n\nSee admin dashboard [demo](https://mernstore-bucket.s3.us-east-2.amazonaws.com/admin.mp4)\n\n## Docker Guide\n\nTo run this project locally you can use docker compose provided in the repository. Here is a guide on how to run this project locally using docker compose.\n\nClone the repository\n```\ngit clone https://github.com/mohamedsamara/mern-ecommerce.git\n```\n\nEdit the dockercompose.yml file and update the the values for MONGO_URI and JWT_SECRET\n\nThen simply start the docker compose:\n\n```\ndocker-compose build\ndocker-compose up\n```\n\n## Database Seed\n\n* The seed command will create an admin user in the database\n* The email and password are passed with the command as arguments\n* Like below command, replace brackets with email and password. \n* For more information, see code [here](server/utils/seed.js)\n\n```\nnpm run seed:db [email-***@****.com] [password-******] // This is just an example.\n```\n\n## Install\n\n`npm install` in the project root will install dependencies in both `client` and `server`. [See package.json](package.json)\n\nSome basic Git commands are:\n\n```\ngit clone https://github.com/mohamedsamara/mern-ecommerce.git\ncd project\nnpm install\n```\n\n## ENV\n\nCreate `.env` file for both client and server. See examples:\n\n[Frontend ENV](client/.env.example)\n\n[Backend ENV](server/.env.example)\n\n\n## Vercel Deployment\n\nBoth frontend and backend are deployed on Vercel from the same repository. When deploying on Vercel, make sure to specifiy the root directory as `client` and `server` when importing the repository. See [client vercel.json](client/vercel.json) and [server vercel.json](server/vercel.json).\n\n## Start development\n\n```\nnpm run dev\n```\n\n## Languages \u0026 tools\n\n- [Node](https://nodejs.org/en/)\n\n- [Express](https://expressjs.com/)\n\n- [Mongoose](https://mongoosejs.com/)\n\n- [React](https://reactjs.org/)\n\n- [Webpack](https://webpack.js.org/)\n\n\n### Code Formatter\n\n- Add a `.vscode` directory\n- Create a file `settings.json` inside `.vscode`\n- Install Prettier - Code formatter in VSCode\n- Add the following snippet:  \n\n```json\n\n    {\n      \"editor.formatOnSave\": true,\n      \"prettier.singleQuote\": true,\n      \"prettier.arrowParens\": \"avoid\",\n      \"prettier.jsxSingleQuote\": true,\n      \"prettier.trailingComma\": \"none\",\n      \"javascript.preferences.quoteStyle\": \"single\",\n    }\n\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmohamedsamara%2Fmern-ecommerce","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmohamedsamara%2Fmern-ecommerce","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmohamedsamara%2Fmern-ecommerce/lists"}