{"id":15646987,"url":"https://github.com/paulogdm/s3-example","last_synced_at":"2025-08-21T08:07:00.302Z","repository":{"id":86793184,"uuid":"125378546","full_name":"paulogdm/s3-example","owner":"paulogdm","description":"Simple example using micro for uploading stuff to AWS S3.","archived":false,"fork":false,"pushed_at":"2019-01-10T21:35:53.000Z","size":46,"stargazers_count":46,"open_issues_count":1,"forks_count":5,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-12-10T14:59:24.081Z","etag":null,"topics":["example","micro","microservice","microservices","now","s3"],"latest_commit_sha":null,"homepage":"","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/paulogdm.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":"2018-03-15T14:21:00.000Z","updated_at":"2023-06-12T12:15:41.000Z","dependencies_parsed_at":null,"dependency_job_id":"cce94d5a-50f3-4d0b-a623-3cf5fc9756d7","html_url":"https://github.com/paulogdm/s3-example","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/paulogdm%2Fs3-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/paulogdm%2Fs3-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/paulogdm%2Fs3-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/paulogdm%2Fs3-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/paulogdm","download_url":"https://codeload.github.com/paulogdm/s3-example/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":230859355,"owners_count":18291151,"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":["example","micro","microservice","microservices","now","s3"],"created_at":"2024-10-03T12:16:06.583Z","updated_at":"2024-12-22T16:42:04.350Z","avatar_url":"https://github.com/paulogdm.png","language":"JavaScript","readme":"# Serverless S3 example\n\nSimple example using Now 2.0, Zeit's micro and the AWS SDK to upload files to the cloud.\n\n[![JavaScript Style Guide](https://cdn.rawgit.com/standard/standard/master/badge.svg)](https://github.com/standard/standard)\n\n[![Deploy to now](https://deploy.now.sh/static/button.svg)](https://deploy.now.sh/?repo=https://github.com/paulogdm/s3-example)\n\n## How to use\n\n### Getting Started\n\nClone this [repo](https://github.com/paulogdm/s3-example):\n\nEdit `config.js`:\n\n```javascript\n// ...\n  BUCKET_NAME: isNOW ? process.env.BUCKET_NAME : 'micro-s3-example',\n  ACCESS_KEY: isNOW ? process.env.ACCESS_KEY : 'ACCESSKEY',\n  SECRET_KEY: isNOW ? process.env.SECRET_KEY : 'SECRETKEY',\n  REGION: isNOW ? process.env.REGION : 'us-west-1'\n// ...\n```\n\nIf you are running this example locally, you should edit the fields on the right. If you are planning to test it on [now.sh](https://now.sh) you need to add [secrets](https://zeit.co/docs/v2/deployments/environment-variables-and-secrets/). Please refer to the section \"[deploying to now.sh](https://github.com/paulogdm/s3-example#deploying-to-nowsh)\".\n\n### Deploying to `now.sh`\n\nFirst install `now`:\n\n```bash\nnpm install -g now\n```\n\nSecond you need to add a few `now` [secrets](https://zeit.co/docs/getting-started/secrets):\n\n```bash\nnow secrets add bucket_name \"micro-s3-example\"\nnow secrets add access_key \"ACCESSKEY\"\nnow secrets add secret_key \"SECRETKEY\"\nnow secrets add region \"us-west-1\"\n```\n\n*PS: The key of those secrets will always be lower case (E.g: `BUCKET_NAME` will be `process.env.bucket_name`)*\n\nDeploy it to the cloud with [now](https://zeit.co/now):\n\n```bash\nnow\n```\nCheck the script \"deploy\" inside \"package.json\".\n\n### Rest Clients\n\nYou can also see this example in action with [Insomnia](https://insomnia.rest/) importing the requests from [insomnia.json](insomnia.json).\n\n## Packages Used In This Example\n\n * [micro](https://github.com/zeit/micro)\n * [AWS SDK](https://github.com/aws/aws-sdk-js)\n\n## Author\n\n[@paulogdm](https://github.com/paulogdm)\n\n## License\n\nMIT\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpaulogdm%2Fs3-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpaulogdm%2Fs3-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpaulogdm%2Fs3-example/lists"}