{"id":23670488,"url":"https://github.com/ankushkun/backend","last_synced_at":"2025-12-16T04:30:15.721Z","repository":{"id":229886503,"uuid":"777898035","full_name":"ankushKun/backend","owner":"ankushKun","description":null,"archived":false,"fork":false,"pushed_at":"2024-03-26T18:40:31.000Z","size":3221,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-12-29T09:35:31.677Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://ritika-maam-backend.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/ankushKun.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}},"created_at":"2024-03-26T17:54:33.000Z","updated_at":"2024-03-26T18:25:03.000Z","dependencies_parsed_at":"2024-03-26T19:56:17.484Z","dependency_job_id":null,"html_url":"https://github.com/ankushKun/backend","commit_stats":null,"previous_names":["ankushkun/backend"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ankushKun%2Fbackend","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ankushKun%2Fbackend/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ankushKun%2Fbackend/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ankushKun%2Fbackend/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ankushKun","download_url":"https://codeload.github.com/ankushKun/backend/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239685796,"owners_count":19680398,"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":[],"created_at":"2024-12-29T09:35:49.610Z","updated_at":"2025-12-16T04:30:15.675Z","avatar_url":"https://github.com/ankushKun.png","language":"JavaScript","readme":"# mern-ecommerce\r\n\r\n\u003e Frontend-\u003e React JS\r\n\r\n\u003e Backend-\u003e Node JS \u0026 Express JS\r\n\r\n\u003e Database-\u003e MongoDB\r\n\r\n## Installation process\r\n1. #### clone the repo using this command\r\n    ```bash\r\n    git clone https://github.com/ashraf-kabir/mern-ecommerce.git\r\n    ```\r\n2. #### install npm packages\r\n    1. install backend packages\r\n    ```bash\r\n    cd mern-ecommerce\r\n    npm install\r\n    ```\r\n    2. install frontend packages\r\n    ```bash\r\n    cd client\r\n    npm install\r\n    ```\r\n3. go to the parent folder of mern-ecommerce \u0026 create .env for connection, JWT_SECRET, BRAINTREE_MERCHANT_ID, BRAINTREE_PUBLIC_KEY and BRAINTREE_PRIVATE_KEY.\r\n\r\n    ```bash\r\n    cd mern-ecommerce\r\n    sudo nano .env\r\n    ```\r\n    (ctrl+x to save \u0026 nano follow instruction there)\r\n    \r\n    ##### sample code for backend .env\r\n    ```env\r\n    MONGODB_URI=YOUR_MONGODB_URI\r\n    JWT_SECRET=YOUR_JWT_SECRET\r\n    BRAINTREE_MERCHANT_ID=YOUR_BRAINTREE_MERCHANT_ID\r\n    BRAINTREE_PUBLIC_KEY=YOUR_BRAINTREE_PUBLIC_KEY\r\n    BRAINTREE_PRIVATE_KEY=YOUR_BRAINTREE_PRIVATE_KEY\r\n    ```\r\n4.  create another .env file inside client directory for REACT_APP_API_URL.\r\n\r\n    ```bash\r\n    cd mern-ecommerce/client\r\n    sudo nano .env\r\n    ```\r\n    ##### sample code for frontend .env\r\n    ```env\r\n    REACT_APP_API_URL=YOUR_API_URL\r\n    ```\r\n    ##### Instructions:\r\n    1. for mongodb atlas database creation follow this tutorial-\u003ehttps://www.youtube.com/watch?v=KKyag6t98g8\r\n    2. you can use any random string as JWTSECRET\r\n    3. for localhost REACT_APP_API_URL is http://localhost:5000/api\r\n       but for heroku (server deployment) it will be different\r\n    4. #### note: add .env on .gitignore\r\n    5. for server deployment use secrets directly\r\n\r\n5. \u003cb\u003edeploy this project\u003c/b\u003e on your local server by using this command\r\n    ```bash\r\n    cd mern-ecommerce\r\n    npm run dev\r\n    ```\r\n    #### note: both backend \u0026 frontend server will start at once with the above command.\r\n\r\n6. #### Database Structure: (Table: columns)\r\n    1. categories: _id, name, createdAt, updatedAt;\r\n    2. orders:  _id, status, products (Array), transaction_id, amount, address, user (Object), createdAt, updatedAt\r\n    3. products: _id, photo (Object), sold, name, description, price, category, shipping, quantity, createdAt, updatedAt\r\n    4. users: _id, role, history (Array), name, email, salt, hashed_password, createdAt, updatedAt\r\n\r\n### App Description:\r\n    1. user can view all products\r\n    2. user can view single product\r\n    3. user can search products and view products by category and price range\r\n    4. user can add to cart checkout products using credit card info\r\n    5. user can register \u0026 sign in\r\n    6. admin can create, edit, update \u0026 delete products\r\n    7. admin can create categories\r\n    8. admin can view ordered products\r\n    9. admin can change the status of a product (processing, shipped, delivered, etc.)\r\n\r\n6. \u003cb\u003eDeployed on\u003c/br\u003e https://ecommerce-ak.herokuapp.com/ \r\n7. raise a star to support me# mern-parikshit\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fankushkun%2Fbackend","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fankushkun%2Fbackend","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fankushkun%2Fbackend/lists"}