Skip to content

Instantly share code, notes, and snippets.

杨舟 Troy-Yang

Block or report user

Report or block Troy-Yang

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@Troy-Yang
Troy-Yang / README.md
Last active Mar 24, 2019
starter-es6-project
View README.md

ES6 starter template

Installation

  1. Clone the repo and start your own:
git clone gist.github.com/74894d99417d3d0e876f267736e85c4f.git
rm -rf .git
git init
  1. Install dependencies:
@Troy-Yang
Troy-Yang / config.json
Created May 12, 2018
auto upload content to s3 bucket
View config.json
{
"accessKeyId": "xxxxx",
"secretAccessKey": "xxxxxxx",
"region": "ap-northeast-1"
}
View GURD-dynamo-node-demo.js
// https://docs.aws.amazon.com/zh_cn/sdk-for-javascript/v2/developer-guide/dynamodb-example-document-client.html
// Load the AWS SDK for Node.js
var AWS = require('aws-sdk');
AWS.config.loadFromPath('./config.json');
// Create DynamoDB document client
var docClient = new AWS.DynamoDB.DocumentClient({ apiVersion: '2012-08-10' });
deleteItem();
You can’t perform that action at this time.