Skip to content

yosiasz/d3-node-express-dynamoDB

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Chart Stack

A simple repo to demo use of data from dynamoDB to plot charts using D3.js with a rest api with express.js

Dependencies

NodeJS runs the server-side of the app. dynamoDB is used for storing population data to be displayed on graphs.

Setting up database

Make sure you initialize dynamodb before running.

Windows

  1. 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

  1. This sample uses DynamoDBLocal NOT TO BE USED FOR PROD!!!

  2. Firing up dynamodb java -Djava.library.path=./DynamoDBLocal_lib -jar DynamoDBLocal.jar -sharedDb

Project Setup and Running Server

1. Initial Setup

git clone https://github.com/yosiasz/d3-node-express-dynamoDB.git
cd d3-node-express-dynamoDB/
npm install -g nodemon
npm install

4. Running the server

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/.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published