{"id":14957536,"url":"https://github.com/hasan-py/mern_stack_project_ecommerce_hayroo","last_synced_at":"2025-05-16T05:07:55.842Z","repository":{"id":41166863,"uuid":"285856040","full_name":"hasan-py/MERN_Stack_Project_Ecommerce_Hayroo","owner":"hasan-py","description":"E-commerce Website | Payment gateway | Reactjs | Nodejs | Mongodb | Expressjs | JWT | Tailwind Css","archived":false,"fork":false,"pushed_at":"2024-08-18T15:10:59.000Z","size":1401,"stargazers_count":843,"open_issues_count":0,"forks_count":398,"subscribers_count":11,"default_branch":"master","last_synced_at":"2025-05-16T05:07:34.020Z","etag":null,"topics":["css","ecommerce-website","expressjs","html","jwt-authentication","mongodb","nodejs","reactjs","tailwindcss"],"latest_commit_sha":null,"homepage":"https://www.youtube.com/watch?v=lXk14qt2D28","language":"CSS","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/hasan-py.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":"2020-08-07T15:00:49.000Z","updated_at":"2025-05-15T07:44:34.000Z","dependencies_parsed_at":"2024-01-21T12:24:07.068Z","dependency_job_id":"a6e027f3-8d97-48cb-bcf6-b53261c41e3a","html_url":"https://github.com/hasan-py/MERN_Stack_Project_Ecommerce_Hayroo","commit_stats":{"total_commits":81,"total_committers":5,"mean_commits":16.2,"dds":0.09876543209876543,"last_synced_commit":"5fbc0a49a3e08d8186065044c21a1e9aabd7a5c7"},"previous_names":["hasan-py/mern_stack_project_hayroo_ecommerce"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hasan-py%2FMERN_Stack_Project_Ecommerce_Hayroo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hasan-py%2FMERN_Stack_Project_Ecommerce_Hayroo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hasan-py%2FMERN_Stack_Project_Ecommerce_Hayroo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hasan-py%2FMERN_Stack_Project_Ecommerce_Hayroo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hasan-py","download_url":"https://codeload.github.com/hasan-py/MERN_Stack_Project_Ecommerce_Hayroo/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254471058,"owners_count":22076585,"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":["css","ecommerce-website","expressjs","html","jwt-authentication","mongodb","nodejs","reactjs","tailwindcss"],"created_at":"2024-09-24T13:15:06.408Z","updated_at":"2025-05-16T05:07:50.833Z","avatar_url":"https://github.com/hasan-py.png","language":"CSS","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Project Demo\n\n[![Alt text](https://img.youtube.com/vi/lXk14qt2D28/0.jpg)](https://www.youtube.com/watch?v=lXk14qt2D28)\n\n## Getting Started\n\nThese instructions will get you a copy of the project up and running on your local machine for development and testing purposes.\n\n### Prerequisites\n\nNPM / Yarn and Node.js installed\n\n### .env\n\nIn the server \u003e .env file, you can find some information. Please use your own API key for future use, as this key may not work in the future.\n\n```\nBRAINTREE_MERCHANT_ID=your_id\nBRAINTREE_PUBLIC_KEY=your_public_key\nBRAINTREE_PRIVATE_KEY=your_private_key\n```\n\n### Installing\n\nInstalling NPM modules on both client and server folders\n\nExecute these commands from the project directory\n\n```\ncd client \u0026\u0026 npm install\n```\n\n```\ncd server \u0026\u0026 npm install\n```\n\n### Running the app\n\nOpen a terminal on server directory\n\n```\nnpm run start:dev\n```\n\nand open another terminal on client directory\n\n```\nnpm run start\n```\n\nAccess the web app at http://localhost:3000/\n\n### Deploying the backend server to render\n\nFollow these setps 👇👇\n\n1. Create your render account in https://render.com/\n2. Connect your github to render and give the project permission for that\n3. Then create a new Web Service and add your repo (your repo must be look like this repo's folder structure like frontend and backend both in that repo)\n4. For deploying this, every change will be in this `render-deploy-backend` branch. So don't change your `.evn` from master branch.\n5. You have to change your database to local to mongodb atlas. Because in this deployment we are not creating db server. So we will be using mongo atlas url. So find your mongodb cloud url with database which will look like this: `mongodb+srv://myusername:myclusterpassword@mycluster.mongodb.net/ecommerce?retryWrites=true\u0026w=majority`\n   and\n   \u003cb\u003egoto the `render-deploy-backend` branch\u003c/b\u003e\n   and goto `.env` file and replace the first variable to your latest mongodb cloud url like this:\n   `DATABASE=mongodb+srv://myusername:myclusterpassword@mycluster.mongodb.net/ecommerce?retryWrites=true\u0026w=majority`\n   Don't just put this url. Your url will be different. You will find it in your mongo cluster setting.\n   The old variable will be like this: `DATABASE=mongodb://127.0.0.1:27017/ecommerce\n` and your new one should look like this:\n   `DATABASE=mongodb+srv://myusername:myclusterpassword@mycluster.mongodb.net/ecommerce?retryWrites=true\u0026w=majority`\n   you can find the mongo url by goto the mongodb atlas website and goto your database and you can find a connect button and click on that you will see the url. And modify the url quite like my one with your secret info.\n   N.B: And you must need to provide the cluster password not your account password! So find your cluster password from database access menu in mongodb atlast cloud and change accoding to you. Here I provide all image's that you can undarstand better\n   ![Alt Text](assetREADME.md/atlasUrl.png)\n   ![Alt Text](assetREADME.md/clusterPassword.png)\n   ![Alt Text](assetREADME.md/networkAccess.png)\n\n6. Then come to render website. Give all of the imformations I set in the image below just change the name of your project and then must be change the branch name to `master` to `render-deploy-backend`\n\n7. This is the setup for render\n   ![Alt Text](assetREADME.md/renderDeployBackendSetup.png)\n\n8. After all the setup you finished create the web service and It will deploy the project.\n\nYou can deploy frontend into vercel or netlify also. Thanks\n\n`Build with 💛 by Hasan`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhasan-py%2Fmern_stack_project_ecommerce_hayroo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhasan-py%2Fmern_stack_project_ecommerce_hayroo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhasan-py%2Fmern_stack_project_ecommerce_hayroo/lists"}