{"id":18878317,"url":"https://github.com/captaincluster/file-metadata-microservice","last_synced_at":"2025-04-14T18:32:10.824Z","repository":{"id":239071393,"uuid":"798410165","full_name":"CaptainCluster/File-Metadata-Microservice","owner":"CaptainCluster","description":"The fifth, and final, project for the \"Back End Development and APIs\" course provided by FreeCodeCamp. ","archived":true,"fork":false,"pushed_at":"2024-05-09T18:48:31.000Z","size":13,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-20T12:47:04.013Z","etag":null,"topics":["backend","expressjs","freecodecamp","freecodecamp-project","microservice"],"latest_commit_sha":null,"homepage":"","language":"HTML","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/CaptainCluster.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-05-09T18:07:33.000Z","updated_at":"2024-09-26T07:29:59.000Z","dependencies_parsed_at":"2024-05-09T20:47:04.868Z","dependency_job_id":"163f3c42-2cde-44b9-9412-afbe1a762950","html_url":"https://github.com/CaptainCluster/File-Metadata-Microservice","commit_stats":null,"previous_names":["captaincluster/file-metadata-microservice"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CaptainCluster%2FFile-Metadata-Microservice","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CaptainCluster%2FFile-Metadata-Microservice/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CaptainCluster%2FFile-Metadata-Microservice/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CaptainCluster%2FFile-Metadata-Microservice/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/CaptainCluster","download_url":"https://codeload.github.com/CaptainCluster/File-Metadata-Microservice/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248936855,"owners_count":21186115,"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":["backend","expressjs","freecodecamp","freecodecamp-project","microservice"],"created_at":"2024-11-08T06:25:53.576Z","updated_at":"2025-04-14T18:32:10.577Z","avatar_url":"https://github.com/CaptainCluster.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# File Metadata Microservice\n\n![Express.js](https://img.shields.io/badge/express.js-%23404d59.svg?style=for-the-badge\u0026logo=express\u0026logoColor=%2361DAFB)\n\n\nFile Metadata Microservice is the 5th, and final, project for FreeCodeCamp *Back End Development and APIs* course. The program\nutilizes **multer** to handle the file uploaded. The handled data will then be displayed to the user via a JSON response.\n\n🙏 Credits\n---\n![FreeCodeCamp](https://img.shields.io/badge/Freecodecamp-%23123.svg?\u0026style=for-the-badge\u0026logo=freecodecamp\u0026logoColor=green)\n\nEverything **not** written by me has been cloned from [this GitHub repository](https://github.com/freeCodeCamp/boilerplate-project-filemetadata/).\n\nThe default README that comes with the cloned repository:\n\u003e This is the boilerplate for the File Metadata Microservice project. Instructions for building your project can be found at https://www.freecodecamp.org/learn/apis-and-microservices/apis-and-microservices-projects/file-metadata-microservice\n\nHere is the solution I wrote for this project:\n```\nconst multer  = require('multer')\nconst upload  = multer({ dest: \"uploads/\" });\n\napp.post(\"/api/fileanalyse\", upload.single(\"upfile\"), function(req, res)\n{\n  try\n  {\n    res.json({\n      name: req.file.originalname,\n      type: req.file.mimetype,\n      size: req.file.size\n    });\n  }\n  catch(error)\n  {\n    console.error(error);\n  }\n});\n```\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcaptaincluster%2Ffile-metadata-microservice","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcaptaincluster%2Ffile-metadata-microservice","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcaptaincluster%2Ffile-metadata-microservice/lists"}