All Projects → paulogdm → s3-example

paulogdm / s3-example

Licence: other
Simple example using micro for uploading stuff to AWS S3.

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to s3-example

Micro Medium Api
Microservice for fetching the latest posts of Medium with GraphQL.
Stars: ✭ 138 (+206.67%)
Mutual labels:  now, micro
dev-gateway
Local development cluster with "now" path aliases syntax support. Allows running multiple microservices as one solid server.
Stars: ✭ 32 (-28.89%)
Mutual labels:  now, micro
hooked
Microservice for communicating between Contentful and Shopify
Stars: ✭ 17 (-62.22%)
Mutual labels:  now, micro
prismy
🌈 Simple and fast type safe server library for now.sh v2 and API routes of next.js.
Stars: ✭ 46 (+2.22%)
Mutual labels:  now, micro
s3-concat
Concat multiple files in s3
Stars: ✭ 35 (-22.22%)
Mutual labels:  s3
secure-media
Store private media securely in WordPress.
Stars: ✭ 22 (-51.11%)
Mutual labels:  s3
svelte-pwa-now
A PWA ready Svelte v3.0 starter template with Tailwind, Now integration and optional Typescript suppot
Stars: ✭ 138 (+206.67%)
Mutual labels:  now
s3bundler
ARCHIVED - see https://aws.amazon.com/about-aws/whats-new/2019/04/Amazon-S3-Introduces-S3-Batch-Operations-for-Object-Management/ Amazon S3 Bundler downloads billions of small S3 objects, bundles them into archives, and uploads them back into S3.
Stars: ✭ 26 (-42.22%)
Mutual labels:  s3
magento-s3
Use Amazon S3 as the file storage solution for your Magento store
Stars: ✭ 62 (+37.78%)
Mutual labels:  s3
backblaze
Backblaze.Agent is a high-performance .NET Core implementation of the Backblaze B2 Cloud Storage API.
Stars: ✭ 32 (-28.89%)
Mutual labels:  s3
smockin
Dynamic API, S3 & Mail mocking for web, mobile & microservice development.
Stars: ✭ 74 (+64.44%)
Mutual labels:  s3
myethereumapp
Web client for viewing data from the Etherscan API
Stars: ✭ 18 (-60%)
Mutual labels:  now
Sree
S3 client for human beings
Stars: ✭ 55 (+22.22%)
Mutual labels:  s3
s3 asset deploy
Deploy & manage static assets on S3 with rolling deploys & rollbacks in mind.
Stars: ✭ 63 (+40%)
Mutual labels:  s3
krawler
A minimalist (geospatial) ETL
Stars: ✭ 51 (+13.33%)
Mutual labels:  s3
logstash-output-s3
No description or website provided.
Stars: ✭ 55 (+22.22%)
Mutual labels:  s3
xyr
Query any data source using SQL, works with the local filesystem, s3, and more. It should be a very tiny and lightweight alternative to AWS Athena, Presto ... etc.
Stars: ✭ 58 (+28.89%)
Mutual labels:  s3
cottoncandy
sugar for s3
Stars: ✭ 33 (-26.67%)
Mutual labels:  s3
nextjs-antd-custom
This project we created a simple project with Nextjs and use Ant Design for CSS components and also deploy that with Now.sh
Stars: ✭ 28 (-37.78%)
Mutual labels:  now
micro-superstruct
A Superstruct wrapper for Micro to validate your request body and query parameters
Stars: ✭ 15 (-66.67%)
Mutual labels:  micro

Serverless S3 example

Simple example using Now 2.0, Zeit's micro and the AWS SDK to upload files to the cloud.

JavaScript Style Guide

Deploy to now

How to use

Getting Started

Clone this repo:

Edit config.js:

// ...
  BUCKET_NAME: isNOW ? process.env.BUCKET_NAME : 'micro-s3-example',
  ACCESS_KEY: isNOW ? process.env.ACCESS_KEY : 'ACCESSKEY',
  SECRET_KEY: isNOW ? process.env.SECRET_KEY : 'SECRETKEY',
  REGION: isNOW ? process.env.REGION : 'us-west-1'
// ...

If you are running this example locally, you should edit the fields on the right. If you are planning to test it on now.sh you need to add secrets. Please refer to the section "deploying to now.sh".

Deploying to now.sh

First install now:

npm install -g now

Second you need to add a few now secrets:

now secrets add bucket_name "micro-s3-example"
now secrets add access_key "ACCESSKEY"
now secrets add secret_key "SECRETKEY"
now secrets add region "us-west-1"

PS: The key of those secrets will always be lower case (E.g: BUCKET_NAME will be process.env.bucket_name)

Deploy it to the cloud with now:

now

Check the script "deploy" inside "package.json".

Rest Clients

You can also see this example in action with Insomnia importing the requests from insomnia.json.

Packages Used In This Example

Author

@paulogdm

License

MIT

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].