Giter Club home page Giter Club logo

bigdata's Introduction

bigdata

minimal big data sample nodejs and mongodb web app (just an exercise)

not working yet (wip)

install dependencies and run

git clone https://github.com/fjsnogueira/bigata cd bigata git clone https://github.com/fjsnogueira/JSON-Schema-Builder npm intall npm start

map-reduce

way of finding number of projects by author and storing in the outCollection1 (from the mongodb shell)

function m () {
    emit(this.name, 1);
}

function r(k,v) {
    return Array.sum(v);
}

db.projects.mapReduce(m,r,'outCollection1');

passing a condition to the map reduce function to filter

var options = { out: { merge: "projectsByAuthor", query { by : /^[a-g]/ }};

function m () {
    emit(this.name, 1);
}

function r(k,v) {
    return Array.sum(v);
}

db.projects.mapReduce(m,r,options);

Client file structure

.
├── assets
│   └── images
│       └── favicon.ico
├── index.css
├── index.js
├── libs
│   ├── jquery.min.js
│   ├── material.min.css
│   └── material.min.js
└── views
    ├── error.html
    ├── index.html
    └── new.html

Server file structure

.
├── controllers
│   └── projects.server.controller.js
├── models
│   └── project.server.model.js
├── public
│   └── uploads
├── routes
│   ├── index.js
│   ├── schema.js
│   └── upload.js
├── routes..
│   └── public
│       └── uploads
└── schemas
    └── schema.json

bigdata's People

Contributors

fjsnogueira avatar

Watchers

James Cloos avatar  avatar  avatar

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.