GithubHelp home page GithubHelp logo

anmolkoul / node-dc-mongo Goto Github PK

View Code? Open in Web Editor NEW
212.0 18.0 144.0 1.83 MB

Source code for the project demonstrating data visualization using d3.js, dc.js, node.js and mongodb

License: Apache License 2.0

JavaScript 86.21% CSS 12.81% HTML 0.97%

node-dc-mongo's Introduction

node-dc-mongo

Source code for the project demonstrating data visualization using d3.js, dc.js, node.js and mongodb


For the full post please visit:

Required Components:
D3.js
Dc.js
Node.js
Crossfilter.js
Jquery
MongoDB

Steps for successful execution:

  1. Install MongoDB
    2.Insert the data into mongoDB as given in the blog
    3.Install Nodejs and NPM
  2. Navigate to the node-dc-mongo directory using command prompt and run npm install, this will install the dependencies
  3. Navigate to the node-dc-mongo directory using command prompt and run npm start
  4. In your browser go to localhost:8080/index.html

node-dc-mongo's People

Contributors

anmolkoul avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

node-dc-mongo's Issues

Connection defined but not required or accessed correctly.

Hello Anmol Koul,

Thanks alot for this fantastic project. Both your explanation on the blog and the codes provided
me a good reading and learning experience.

However, I noticed a little issue and identified a way it can be fixed.

Issue:
The mongoose connection (connectionsubject) used in SubjectViews.js was neither defined nor required in
SubjectViews.js. Hence its undefined there.
However, this mongoose connection was defined in server.js and never used there.

Fix:
Move require db.js to SubjectViews.js like this: var db = require('../../config/db');
This stepback (../../) can be avoided but it is ok just to keep the structure of the app and the blogpost in sync.

Also, move:
var mongoose = require('mongoose'); and
var connectionsubject = mongoose.createConnection(db.urlSubjectViews);
to SubjectViews.js

I have fixed this and made a pull request.

Cannot find your dataset

How do I access the dataset that you used? It gives 404 Error when I click on the link to your dropbox.

Error : npm start

Hi Anmol,
Thank you very much for this tutorial.
When I run "npm install" I had this error:

{ [Error: Cannot find module '../build/Release/bson'] code: 'MODULE_NOT_FOUND' }
js-bson: Failed to load c++ bson extension, using pure JS version
Magic happens on port 8080
Error: ENOENT, stat 'C:\Users\Home\Desktop\node-dc-mongo-master\public\login.html'
at Error (native)
Error: ENOENT, stat 'C:\Users\Home\Desktop\node-dc-mongo-master\public\login.html'
at Error (native)

And when I try localhost:8080 I can just see titles whitout charts.
I'm using Windows 7 64 bits
Thank you

Can't use js file correctly

Hi Anmolkoul,
thans a lot for your post and this amazing project.

I followed all your step to set up the sever and open the index.html in my browser. However I can't do any visualization because the js file can't run successfully.

I got the following error when I start get the index file:

Dashboard.js:10 Uncaught TypeError: Cannot read property 'forEach' of undefined
at makeGraphs (Dashboard.js:10)
at notify (queue.js:45)
at Object. (queue.js:35)
at Object.event (d3.js:491)
at XMLHttpRequest.respond (d3.js:1904)

Where did you call the makeGraphs function and what kind of parameter did you pass into it?

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.