{"id":19797057,"url":"https://github.com/udoy2/e-commerce-mern","last_synced_at":"2026-04-08T20:36:16.192Z","repository":{"id":252750141,"uuid":"837682055","full_name":"Udoy2/E-commerce-mern","owner":"Udoy2","description":"An advanced MERN stack e-commerce platform for seamless online shopping 🛒✨.","archived":false,"fork":false,"pushed_at":"2024-08-28T16:17:23.000Z","size":564,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-28T16:17:08.950Z","etag":null,"topics":["bycrpt","expressjs","jtest","mongodb","mongodb-atlas","nodejs","reactjs","supertest"],"latest_commit_sha":null,"homepage":"","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/Udoy2.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":"2024-08-03T17:39:04.000Z","updated_at":"2024-08-28T16:17:27.000Z","dependencies_parsed_at":null,"dependency_job_id":"8853eebb-ecbf-44fd-a684-f9e3a3c59cac","html_url":"https://github.com/Udoy2/E-commerce-mern","commit_stats":null,"previous_names":["udoy2/e-commerce-mern"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Udoy2/E-commerce-mern","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Udoy2%2FE-commerce-mern","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Udoy2%2FE-commerce-mern/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Udoy2%2FE-commerce-mern/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Udoy2%2FE-commerce-mern/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Udoy2","download_url":"https://codeload.github.com/Udoy2/E-commerce-mern/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Udoy2%2FE-commerce-mern/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31573788,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-08T14:31:17.711Z","status":"ssl_error","status_checked_at":"2026-04-08T14:31:17.202Z","response_time":54,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5: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":["bycrpt","expressjs","jtest","mongodb","mongodb-atlas","nodejs","reactjs","supertest"],"created_at":"2024-11-12T07:23:32.540Z","updated_at":"2026-04-08T20:36:16.177Z","avatar_url":"https://github.com/Udoy2.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# E-commerce mern\n\nA mern application\n\n## Project Structure\n\nThe project is organized as follows:\n\n- **src**\n  - **server.js**: Initializes and starts the server.\n  - **app**: Contains the main application logic.\n    - **router**: Defines all the routes.\n    - **controller**: Contains all the controller functions.\n    - **model**: Defines the user schema and model.\n  - **config**\n    - **db.js**: Manages the database connection using Mongoose.\n  - **middleware**\n    - **errorHandler.js**: Handles all the errors.\n- **.env**: Stores crucial environment variables like MongoDB connection string.\n- **secret.js**: Manages the .env file and makes the data available to all project files.\n\n## Setup Instructions\n\n1. **Install Dependencies**: Run `npm install` to install the required packages.\n2. **Start the Server**: Use `npm run dev` to start the server with nodemon.\n\n## Key Packages Used\n\n- **morgan**: Logs incoming requests.\n- **xss-clean**: Filters XSS requests (note: this package is out of date).\n- **express-rate-limit**: Limits the number of requests that can be sent in a particular time frame.\n- **http-errors**: Generates and handles HTTP errors.\n- **dotenv**: Manages environment variables.\n\n## Routes\n\n- **GET /users**: Retrieves users with pagination, search, and limiting functionality.\n- **GET /users/:id**: Retrieves a particular user by ID.\n\n## Environment Variables\n\nMake sure to set the following variables in the `.env` file:\n\n- `MONGODB_URI`: Your MongoDB connection string.\n\n---\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fudoy2%2Fe-commerce-mern","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fudoy2%2Fe-commerce-mern","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fudoy2%2Fe-commerce-mern/lists"}