GithubHelp home page GithubHelp logo

bandstats's Introduction

Bandstats Version 0.1

Installation

Bandstats server requires the following packages and libraries to be present at the operating system:

node mongodb

You'll need to do npm install . to install all required packages that the Bandstats server requires.

Deployment

No real deloyment yet, but will implement upstart eventually.

  1. Do npm install
  2. node app.js

Configuration

The Bandstats application can be configured by editing the app/config/app.conf file.
I'm using nconf so will eventually add support for ENV config as well.

Testing

Not implemented yet, plan to use mochajs

Project Structure

package.json

Contains node package dependencies. See installation section above.

npm-shrinkwrap.json

Contains node package dependencies, with explicit versioning even for, submodules, e.g. for the whole module tree.

The existence of this file makes npm ignore the package.json. You can create this file with npm shrinkwrap

app.js

Assembles files and boots up the app to listen for connections, collects models, controllers and sets up the database connection.

app/

Server side scripting

app/lib/

General-purpose libraries used throughout the application. Contains the controller Router.

app/controllers/

Contains Controllers.

Controller classes reside in files called *Controller.js and route the HTTP world to server side functions. They work pretty much like rails style controllers and routes map all HTTP methods to endpoints by default.

Manager classes reside in files called *Manager.coffee and mostly do database related tasks. They serve as collections of model related functionalities.

app/repositories/

Implementation of the Repository pattern with mongoskin. Repositories extend BaseRepository which contains basic CRUD function.

app/views/

Jinjs templates.

public/

Anything stored here is accessible from outside.

bin/

Command line tools (collectors, exporters, importers, etc)

node_modules/

Contains all node modules after installed by npm via npm install .

logs/

Untracked by git and initially not present. Contains log files sorted by date. Disable the log file functionality in order to not create log files. See the script start_server for details.

bandstats's People

Contributors

thnkloud9 avatar

Watchers

James Cloos avatar Pete Haughie 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.