jazzy - a framework that makes your apps swing
Disclaimer: Jazzy is in early beta stage, documentation is non-existent, you want to look at other, more popular choices.
Jazzy attempts to leverage your existing node skills and best choice of modules.
Logging
As of now Jazzy provides Logger objects.
var logger = "/var/log/daemon/%Y/%m/%d.log"; logger;
However one of the goals of the future releases is to rather provide a Winston transport.
Custom errors
var NotFoundError = NotOwnedError = ; Keywords
CustomError
uses the technique described by disfated here: http://stackoverflow.com/questions/464359/custom-exceptions-in-javascript .
Web applications
This is an example config file, you could put in you app's etc/config.dev.json
:
"server": "http": "port": 5000 "https": "port": 5001 "cert": "cert+key.pem" "router": "routes": "*": "pattern": "^/bootstrap$" "module": "../src/bootstrap.js" "web.site.com:5000": "pattern": "^/$" "module": "src/controllers/web_site_com/template.js" "pattern": "^/(app.js|app.css|app.manifest)$" "module": "src/controllers/web_site_com/pipeline.js" "pattern": "^/(css/|img/|js/|favicon.ico$)" "module": "src/controllers/web_site_com/static.js" "module": "src/controllers/web_site_com/error404.js"
Command-line applications
#!/usr/bin/env node // vim: filetype=javascript var CommandLineApp = ; app = ; app; app; app; app; app; app;
Object validation schemas
var Schema = validators = ; var schema = { return validators; } { return validators; } { return validators; } ; var onGetEnd = exports { schema; }
Goals
Version 1 should provide:
- File Winston transport which uses strftime to parse file path.
- Importer / Updater / Yielder / ( Fetcher Parser ) for your cold webservices needs.
- Scheduler.
- Tributes.
- JSON-RPC.
- Way to define errors and common error types.
Version 2 should provide:
- Secure API calls with URL.
- Some more object and string helpers than the ones in underscore.
- Daemonize.
Version 3 should provide:
- Helpers for web apps.
- Grunt support.
- Grok support.
LICENSE - "BSD License"
Copyright (c) 2012, Raphaël Monrouzeau raphael.monrouzeau@gmail.com All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
- Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
- Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
- Neither the name of the authors, contributors or copyright holders may be used to endorse or promote products derived from this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.