Git Product home page Git Product logo

d3-node-express-postgresql's Introduction

Chart Stack

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

Dependencies

NodeJS runs the server-side of the app. PostgreSQL is used for storing population data to be displayed on graphs. pg-promise talks to the database

Setting up databases

Make sure you initialize PostgreSQL before running.

Windows

  1. Refer to Detailed installation guides to set up a PostgreSQL instance.
  2. Run sample seeding script on your PostgreSQL server
  3. Change config to point to your PostgreSQL server

Project Setup and Running Server

1. Initial Setup

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

4. Running the server

This will use node to launch the server:

npm start

Leave the server running, and now you can access http://localhost:5000/.

d3-node-express-postgresql's People

Contributors

vitaly-t avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

poursafe

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.