{"id":18449912,"url":"https://github.com/alincode/image-sharing-server","last_synced_at":"2025-04-18T00:21:02.258Z","repository":{"id":81410977,"uuid":"416536848","full_name":"alincode/image-sharing-server","owner":"alincode","description":null,"archived":false,"fork":false,"pushed_at":"2021-10-19T14:52:18.000Z","size":246,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-15T23:00:01.373Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/alincode.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":"2021-10-13T00:19:40.000Z","updated_at":"2021-10-19T14:52:21.000Z","dependencies_parsed_at":null,"dependency_job_id":"d31e1e5e-241f-4428-b09a-d206273b0732","html_url":"https://github.com/alincode/image-sharing-server","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/alincode%2Fimage-sharing-server","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alincode%2Fimage-sharing-server/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alincode%2Fimage-sharing-server/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alincode%2Fimage-sharing-server/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/alincode","download_url":"https://codeload.github.com/alincode/image-sharing-server/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249167442,"owners_count":21223505,"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-11-06T07:22:39.333Z","updated_at":"2025-04-15T23:00:05.283Z","avatar_url":"https://github.com/alincode.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Image sharing server\n\n- For demonstration purposes only.\n- The system will reset data every day (or every redeploy), because Heroku does not provide any sort of persistent storage on dynos.\n\n## API docs\n\nVisit https://image-sharing-api-server.herokuapp.com/docs/\n\n## Available Scripts\n\n### How to set up development env?\n\n```\nnpm install\nnpm run dev\n\n```\n\n### How to run test?\n\n```\nnpm test\n\n```\n\n### Test upload file via curl or REST Client\n\n#### curl\n\n```\ncurl http://localhost:5000/v1/attachments -F 'file=@./test/dog.jpeg' -F 'description=hi image' -H \"Authorization: Bearer your_jwt_access_token\"\ncurl https://image-sharing-api-server.herokuapp.com/v1/attachments -F 'file=@./test/dog.jpeg' -F 'description=hi image' -H \"Authorization: Bearer your_jwt_access_token\"\n```\n\n#### REST Client\n\nThe file **test.http** can be used to make requests if you are using the [VSCode Rest Client extension](https://marketplace.visualstudio.com/items?itemName=humao.rest-client)\n\n## How to deploy to heroku?\n\n```\nheroku create image-sharing-api-server\nheroku git:remote -a image-sharing-api-server\nheroku config:set JWT_SECRET=ooxxooxx\nheroku config:set IMAGE_PREFIX_URL=https://image-sharing-api-server.herokuapp.com/uploads/\ngit push heroku master\n```\n\nthen go to\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falincode%2Fimage-sharing-server","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falincode%2Fimage-sharing-server","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falincode%2Fimage-sharing-server/lists"}