{"id":18458516,"url":"https://github.com/appgeist/example-storage-with-auth","last_synced_at":"2025-04-23T15:14:52.724Z","repository":{"id":44106856,"uuid":"197628669","full_name":"appgeist/example-storage-with-auth","owner":"appgeist","description":"A sample project to demonstrate the usage of @appgeist/storage with authentication","archived":false,"fork":false,"pushed_at":"2022-12-10T22:53:28.000Z","size":581,"stargazers_count":1,"open_issues_count":9,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-04-23T15:14:49.183Z","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":"isc","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/appgeist.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}},"created_at":"2019-07-18T17:18:18.000Z","updated_at":"2020-08-08T16:23:17.000Z","dependencies_parsed_at":"2023-01-26T11:00:30.931Z","dependency_job_id":null,"html_url":"https://github.com/appgeist/example-storage-with-auth","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/appgeist%2Fexample-storage-with-auth","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/appgeist%2Fexample-storage-with-auth/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/appgeist%2Fexample-storage-with-auth/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/appgeist%2Fexample-storage-with-auth/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/appgeist","download_url":"https://codeload.github.com/appgeist/example-storage-with-auth/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250457792,"owners_count":21433734,"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-06T08:18:59.589Z","updated_at":"2025-04-23T15:14:52.707Z","avatar_url":"https://github.com/appgeist.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# [@appgeist/storage](https://github.com/appgeist/storage) example with authentication\n\nAn example to demonstrate the usage of [@appgeist/storage](https://github.com/appgeist/storage) with authentication.\n\n## Running\n\n1. `yarn install` or `npm install`\n2. `yarn dev` or `npm run dev`\n3. Upload files by `POST`ing requests to paths such as `http://localhost:3000` or `http://localhost:3000/subfolder/to/store`. In Postman, make sure to:\n\n   - set Authorization to **Bearer Token** and set the token to `--DUMMY-TOKEN--` (as specified in [auth.js](auth.js));\n   - set Body type to `form-data`, add a File property with `file` key and select a file to upload.\n\n4. In Postman, set Authorization to **Bearer Token** and set the token to `--DUMMY-TOKEN--` and request uploaded files by `GET`ting from URLs such as `http://localhost:3000/ceb88dea-5135-4321-8af8-846e29b7efc4.webp`, `http://localhost:3000/assets/ceb88dea-5135-4321-8af8-846e29b7efc4.jpg`, `http://localhost:3000/ceb88dea-5135-4321-8af8-846e29b7efc4-w200-h200.webp`, `http://localhost:3000/ceb88dea-5135-4321-8af8-846e29b7efc4-w50-h50-lq.jpg`, where `ceb88dea-5135-4321-8af8-846e29b7efc4` is the UUID returned by successfully uploading a picture to `http://localhost:3000`.\n\nSee [@appgeist/storage](https://github.com/appgeist/storage) README for more info and feel free to inspect the source code.\n\n## License\n\nThe [ISC License](LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fappgeist%2Fexample-storage-with-auth","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fappgeist%2Fexample-storage-with-auth","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fappgeist%2Fexample-storage-with-auth/lists"}