Giter Club home page Giter Club logo

heroku-nodejs-s3-demo's Introduction

This is a demo application that shows how to manage file uploads and AWS using Node.js on Heroku. This sample app makes use of the Heroku 'ephemeral file system'.

Reference

Requirements

  • AWS Account and defined bucket.
  • Heroku Account
  • Node installed locally.

Setup

To test this application you need to define the following variables in either your local node workspace (.bash_profile) or as heroku configuration variables. I usually create a .settings file in my local workspace and add .setting to my repos .gitignore.

For local development (.settings or ~/.bash_profile)

export AWS_ACCESS_KEY_ID=XXXXX
export AWS_ACCESS_ACCESS_KEY=XXXX
export AWS_S3_BUCKET=XXXXXXXX
export BLITLINE_API_KEY=XXXXX

For Heroku Config SDK

heroku config:add AWS_ACCESS_KEY_ID=XXXXX
heroku config:add AWS_ACCESS_ACCESS_KEY=XXXX
heroku config:add AWS_S3_BUCKET=XXXXXXXX
heroku config:add BLITLINE_API_KEY=XXXXX

Blitline.com Setup

The blitline image resize API is an optional element in this demo. If you do not want to setup an account, then leave the BLITLINE_API_KEY variable defined. The code code will only call the resizing code when it is defined.

Remember to allow Blitline to save resized images back to your AWS bucket, you need to define the access rules in your AWS console to give them specific write access. Get the API specific settings from https://blitline.com/docs/s3_permissions

heroku-nodejs-s3-demo's People

Contributors

d1b1 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.