Git Product home page Git Product logo

s3deployjs's Introduction

#S3DeployJS ##NodeJS Tool Deploying Files to AWS S3

This project is all about showing a NodeJS command-line tool pushing files up to an S3 bucket.

Why does it look like there's a website here? It's a simple one I made serving as sample files showing at least what this file upload tool can do deploying a typical website to Amazon S3. These are the types of static resources best served from their service.

Automating deployments is always a good thing. Reducing friction makes a process more fun, people are more willing to do it, and shiping working code to users is a blast!

##Accompanying Article For lots more details and analysis read the accompanying technical article

##Setup

  • "git clone" the repo of course
  • "npm install" to bring down dependency packages
  • edit the AwsConfig.json file replacing these placeholder values with your proper AWS credentials:
{
  "accessKeyId": "XXXXXXX",
  "secretAccessKey": "YYYYYYYY",
  "region": "us-east-1"
}
  • Edit S3Deploy.js changing line #2 with your own bucket name avoiding conflict with any existing ones
var BUCKET_NAME = 's3deploy.example';

##Command-line Params Run this from a Terminal command line, naturally.

node S3Deploy.js [param]
  • audio folderName
  • code
  • createBucket
  • css
  • images
  • index
  • list

##Learn Have a good look at S3Deploy.js because it's where all the good stuff goes on. Reading that code gives lots of concrete examples all of you can well use.

##Further Info

Please share this repo and the accompanying article with those who will benefit.

s3deployjs's People

Contributors

kdawg avatar

Watchers

James Cloos avatar Ajitkumar Kaller 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.