{"id":20416019,"url":"https://github.com/imimran/task","last_synced_at":"2026-04-13T19:32:14.462Z","repository":{"id":135191565,"uuid":"446836929","full_name":"imimran/task","owner":"imimran","description":null,"archived":false,"fork":false,"pushed_at":"2022-01-14T15:42:19.000Z","size":58,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-05T03:41:46.227Z","etag":null,"topics":["express","filesystem","fs","mongodb","mongoose"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/imimran.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":"2022-01-11T13:42:19.000Z","updated_at":"2022-01-20T17:05:40.000Z","dependencies_parsed_at":null,"dependency_job_id":"842378e8-cb3a-4cfb-bf22-2bd99399284c","html_url":"https://github.com/imimran/task","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/imimran/task","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imimran%2Ftask","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imimran%2Ftask/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imimran%2Ftask/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imimran%2Ftask/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/imimran","download_url":"https://codeload.github.com/imimran/task/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imimran%2Ftask/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31768637,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-13T15:25:13.801Z","status":"ssl_error","status_checked_at":"2026-04-13T15:25:09.162Z","response_time":93,"last_error":"SSL_read: 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":["express","filesystem","fs","mongodb","mongoose"],"created_at":"2024-11-15T06:18:24.951Z","updated_at":"2026-04-13T19:32:14.427Z","avatar_url":"https://github.com/imimran.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# task\n\n\nUpdate functionality:\ncreate root \u0026 child folder\nroot folder can not be deleted\nif delete a folder, delete from database also\nyou can know from db- folder empty or not\n\n\n//.env\nPORT=5000\nMONGO_URL=mongodb+srv://imimran:12345@cluster0.yuvqm.mongodb.net/task?retryWrites=true\u0026w=majority\n\n\n\nGet Order details:\n\nGet: http://127.0.0.1:5000/api/v1/order/61de77f9b0f0ec295a90e5cb\n\nit return-----\n{\n    \"_id\": \"61de77f9b0f0ec295a90e5cb\",\n    \"orderItems\": [\n        {\n            \"_id\": \"61de77f9b0f0ec295a90e5c7\",\n            \"products\": \"Orange\",\n            \"quantity\": 3,\n            \"createdAt\": \"2022-01-12T06:40:57.463Z\",\n            \"updatedAt\": \"2022-01-12T06:40:57.463Z\",\n            \"__v\": 0\n        },\n        {\n            \"_id\": \"61de77f9b0f0ec295a90e5c9\",\n            \"products\": \"Banana\",\n            \"quantity\": 2,\n            \"createdAt\": \"2022-01-12T06:40:57.512Z\",\n            \"updatedAt\": \"2022-01-12T06:40:57.512Z\",\n            \"__v\": 0\n        }\n    ],\n    \"phone\": \"+420702241333\"\n}\n\n\n\n\n\nCreate order:\nPost: http://127.0.0.1:5000/api/v1/order/create\n\nto make order (req.body)--- You need to pass \n{\n    \"orderItems\" : [\n        {\n            \"quantity\": 3,\n            \"products\" : \"Orange\"\n        },\n        {\n            \"quantity\": 2,\n            \"products\" : \"Banana\"\n        }\n    ],\n    \"phone\": \"+420702241333\"\n}\n\nit will save orderItem in OrderItem table, and order data to Order table\nit return--this formet\n{\n    \"orderItems\": [\n        \"61dec0c93000cc80026ade5a\",\n        \"61dec0c93000cc80026ade5c\"\n    ],\n    \"phone\": \"+420702241333\",\n    \"_id\": \"61dec0c93000cc80026ade5e\",\n    \"createdAt\": \"2022-01-12T11:51:37.967Z\",\n    \"updatedAt\": \"2022-01-12T11:51:37.967Z\",\n    \"__v\": 0\n}\n\n\n\n\n\n\nCreate Folder:\n  post:  http://127.0.0.1:5000/api/v1/folder/create\n   parameter- folderName,folderPath\n   \n   Example data:\n   \n   // it will create folder in root(uploads) folder and  show  \"msg\": \"Folder Create Successfully\"  and save folderName and folderPath in db\n   {\n    \"folderName\": \"imran\",  \n   }\n   \n   \n   //it will create \"imran\" folder in \"uploads/aih/\" and  show  \"msg\": \"Folder Create Successfully\"\n   {\n    \"folderName\": \"imran\",\n    \"folderPath\": \"aih\"\n   }\n   \n   \n  if same name exist it show \"msg\": \"Folder already exist\"\n   \n  you can more child folder by passing path like-  \"folderPath\": \"aih/imran/1/2/3\"\n  \n  \n  \n  \n Get Folder details:\n http://127.0.0.1:5000/api/v1/folder/all ---it show all folder in uploads(root) dir\n \n http://127.0.0.1:5000/api/v1/folder/all?folderName=imran  ---- list of folder \u0026 files in \"uploads/imran\" folder\n \n http://127.0.0.1:5000/api/v1/folder/all?folderName=imran/aih ----- list of folder \u0026 files in \"uploads/imran/aih\" folder\n \n \n \n \n remove folder:\n  post: http://127.0.0.1:5000/api/v1/folder/remove\n  parameter -folder\n  \n  // it will remove \"imran\" folder in root(uploads) dir\n  {\n    \"folder\": \"imran\"\n  }\n  \n  // it will remove \"imran\" folder in 'uploads/aih' dir\n   {\n    \"folder\": \"aih/imran\"\n   }\n   \n   if delete successfuly show--- msg: \"Folder delete Successfully\"\n   if not found----msg: \"Folder not found\"\n   \n   ","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fimimran%2Ftask","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fimimran%2Ftask","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fimimran%2Ftask/lists"}