{"id":17787791,"url":"https://github.com/hazemmeqdad/cdn","last_synced_at":"2025-03-16T08:32:12.487Z","repository":{"id":118501730,"uuid":"581829560","full_name":"HazemMeqdad/cdn","owner":"HazemMeqdad","description":"images \u0026 videos host api with simple panel to upload files","archived":false,"fork":false,"pushed_at":"2024-07-09T23:11:59.000Z","size":147,"stargazers_count":4,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-27T05:51:27.260Z","etag":null,"topics":["api","cdn","expressjs","host","image-host","nodejs"],"latest_commit_sha":null,"homepage":"https://cdn.hazemmeqdad.com","language":"JavaScript","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/HazemMeqdad.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-12-24T13:51:59.000Z","updated_at":"2024-07-09T23:12:02.000Z","dependencies_parsed_at":"2023-11-20T05:26:23.595Z","dependency_job_id":"17e055e0-d9c7-4c4d-8505-ce263b55e86c","html_url":"https://github.com/HazemMeqdad/cdn","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HazemMeqdad%2Fcdn","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HazemMeqdad%2Fcdn/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HazemMeqdad%2Fcdn/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HazemMeqdad%2Fcdn/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/HazemMeqdad","download_url":"https://codeload.github.com/HazemMeqdad/cdn/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243806070,"owners_count":20350775,"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":["api","cdn","expressjs","host","image-host","nodejs"],"created_at":"2024-10-27T10:12:43.599Z","updated_at":"2025-03-16T08:32:12.190Z","avatar_url":"https://github.com/HazemMeqdad.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# cdn\n\nYou can upload your images \u0026 videos \u0026 other files to your server and use the interface \u0026 api.\nI know the forntend is trash but this i can do \n\n## Pages\n- `/` - home page\n- `/logout` - logout page\n- `/auth` - redirect to github auth page\n- `/github/callback` - redirect from github to website and it call github api to fetch user\n- `/upload` - has two methods. GET the interface of upload page. POST is api to upload files\n- `/files` - open your files\n- `/files/:file` - has two methods. GET method open file. DELETE method to delete file using api\n- `/f/:file` - open file\n- `/d/:file` - download file\n- `/files/:file/public` - PATCH method to change visible of file\n\n## Installation\n### Running on localhost (Testing mode)\nmake sure you are create `.env` file and config the porject\n```\nnpm i\nnode .\n```\n### Running using docker (recommended)\nmake sure you are create `.env` file and config the porject and setup mongodb configration\n```\ndocker compose build\ndocker compose up -d\n```\n\n## Images\nnotice: If this images doesn't open maybe the host was broken\n\u003cimg src=\"https://cdn.hazemmeqdad.com/f/Screenshot from 2023-12-15 02-07-11.png\"\u003e\n\u003cimg src=\"https://cdn.hazemmeqdad.com/f/Screenshot from 2023-12-15 02-08-23.png\"\u003e\n\u003cimg src=\"https://cdn.hazemmeqdad.com/f/Screenshot from 2023-12-15 02-09-03.png\"\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhazemmeqdad%2Fcdn","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhazemmeqdad%2Fcdn","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhazemmeqdad%2Fcdn/lists"}