A simple repo to demo use of data from dynamoDB to plot charts using D3.js with a rest api with express.js
NodeJS runs the server-side of the app. dynamoDB is used for storing population data to be displayed on graphs.
1. aws-sdk
2. express.js
3. d3.js
Make sure you initialize dynamodb before running.
- Refer to Detailed installation guides to set up a dynamoDB instance. Go to http://localhost:8000/shell/
http://docs.aws.amazon.com/AWSJavaScriptSDK/guide/node-configuring.html
-
This sample uses DynamoDBLocal NOT TO BE USED FOR PROD!!!
-
Firing up dynamodb java -Djava.library.path=./DynamoDBLocal_lib -jar DynamoDBLocal.jar -sharedDb
git clone https://github.com/yosiasz/d3-node-express-dynamoDB.git
cd d3-node-express-dynamoDB/
npm install -g nodemon
npm install
This will use node to launch the server (this will also seed your DynamoDB authors table using authors.json):
npm start
Leave the server running, and now you can access http://localhost:5000/.