Coder Social home page Coder Social logo

f3r / nodedirectuploader Goto Github PK

View Code? Open in Web Editor NEW

This project forked from willwebberley/nodedirectuploader

0.0 1.0 0.0 133 KB

Companion code for the direct-to-S3 uploads Node.js article on Heroku's Dev Center

Home Page: https://devcenter.heroku.com/articles/s3-upload-node

JavaScript 100.00%

nodedirectuploader's Introduction

NodeDirectUploader

Direct-to-S3 uploads in a Node.js application running on Heroku

Simple example demonstrating how to accomplish a direct upload to Amazon's S3 in a Node.js web application.

This example uses the express web framework to facilitate request-handling. However, the process of signing the S3 PUT request would be identical in most Node apps.

This code is mostly ready to be run as cloned, but a function update_account() will need to be defined to handle the storing of the POSTed information. The current example simply demonstrates the upload to S3.

Dependencies and Installation

Ensure Node is installed. This can be done through your package manager or from their website.

Clone this repository and install the dependencies with npm:

$ git clone [email protected]:f3r/NodeDirectUploader.git
$ cd NodeDirectUploader
$ npm install

Running the application

$ foreman start

Deploying the application

See the article Deploying with Git for more detailed information on deploying to Heroku.

  • Download and install the Heroku toolbelt
  • Create the application on Heroku by adding a Git remote ($ heroku create)
  • Push your code to the new Heroku repo ($ git push heroku master)

nodedirectuploader's People

Contributors

willwebberley avatar f3r avatar bisque33 avatar

Watchers

James Cloos 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.