目標:
run dynamodb example locally on macOS環境:
macOS Sierra 10.12.5node js
步驟:
1. install aws-sdk for nodenpm install aws-sdk
2. install java (do not use oracle website to install or fail)
brew update;brew cask install java;
3. download dynamodb jar file
http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/DynamoDBLocal.html
4. run dynamodb locally
java -Djava.library.path=./DynamoDBLocal_lib -jar DynamoDBLocal.jar -sharedDb
5. edit js file named
MoviesCreateTable.js
http://docs.aws.amazon.com/amazondynamodb/latest/gettingstartedguide/GettingStarted.NodeJs.01.html
6. run js
node MoviesCreateTable.js
來源:
http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/DynamoDBLocal.html遇到的問題:
some api will not work