Downloading and Running DynamoDB
http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/DynamoDBLocal.html
To start DynamoDB on your computer, open a command prompt window, navigate to the directory where you extracted DynamoDBLocal.jar, and enter the following command:
java -Djava.library.path=./DynamoDBLocal_lib -jar DynamoDBLocal.jar -sharedDb
In your project directory, run:
npm run db all init
to create table and add sample data
If you have error about "credentials".
http://docs.aws.amazon.com/AWSSdkDocsNET/V2/DeveloperGuide/net-dg-config-creds.html
Install the npm packages described in the package.json
and verify that it works:
npm install
Install the tsd packages described in the tsd.json
tsd install
Compile source from typescript to es6
npm run grunt
Start your server
npm start
We've captured many of the most useful commands in npm scripts defined in the package.json
:
npm start
- start servernpm run grunt
- compile source from typescript into es6npm run db [table] [command]
- script for database ( command: init, reset, delete, create, sample )
table: thread, message, user ( default: all )
command: init, reset, delete, create, sample ( default: init )
init = create -> sample
reset = delete -> create -> sample