dynamoose

How to query local dynamoDB using dynamoose?

半世苍凉 提交于 2019-12-11 02:43:51
问题 As a developer, i don't want to connect all the time to Amazon web services, and I installed DynamoDB in my local computer referring the AWS Docs. I am using node.js in the backend. I am using dynamoose as the modeling tool for Amazon's DynamoDB in my production, How can I use the same dynamoose for querying my local DynamoDB tables for development? 回答1: You just use this in your code: dynamoose.local(); Assuming you have a properties file in your application, you probably want a property