0.1.209 • Published 11 years ago

open.core v0.1.209

Weekly downloads
6
License
-
Repository
github
Last release
11 years ago

Open.Core

Common utility functionality used between multiple applications.

Live demo.

Setup

Install using NPM

npm install open.core

Initialize

To initialize the open.core library from Express:

  express = require 'express'
  core    = require 'open.core/server'

  app = express.createServer()
  core.configure app
  app.listen 8000

Tests

To run server side tests, from the open.core module folder: $ cake specs Make sure Jasmine-Node has been installed globally: npm install -g jasmine-node

To run client-side tests in browser:

  1. Configure open.core in your host application (see above).
  2. Run tests in the browser at: http://localhost:8000/core/specs

To use the Jasmine test runner in the browser from your host application:

  core = require 'server'
  core.configure.specs app,
            title:      'My Specs'
            url:        '/specs'
            specsDir:   "#{__dirname}/specs/client/"
            sourceUrls: [
                '/javascripts/libs.js'
                '/javascripts/app.js' ]

Optional Dependencies

Some features require non-NPM installable dependencies. These are optional.

  • Pygments
    Source code highlighting. Requires Python.

    • To install: sudo easy_install Pygments
    • See server class: core.util.Pygments

License

The MIT License (MIT)
Copyright © 2011 Phil Cockfield

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

0.1.209

11 years ago

0.1.208

11 years ago

0.1.207

12 years ago

0.1.205

12 years ago

0.1.204

12 years ago

0.1.203

12 years ago

0.1.202

12 years ago

0.1.201

12 years ago

0.1.200

12 years ago

0.1.199

12 years ago

0.1.197

12 years ago

0.1.196

12 years ago

0.1.194

12 years ago

0.1.193

12 years ago

0.1.191

12 years ago

0.1.100

12 years ago

0.1.99

12 years ago

0.1.98

12 years ago

0.1.97

12 years ago

0.1.96

12 years ago

0.1.95

12 years ago

0.1.94

12 years ago

0.1.93

12 years ago

0.1.92

12 years ago

0.1.91

12 years ago

0.1.90

12 years ago

0.1.89

12 years ago

0.1.87

12 years ago

0.1.86

12 years ago

0.1.85

12 years ago

0.1.84

12 years ago

0.1.83

12 years ago

0.1.82

12 years ago

0.1.81

12 years ago

0.1.80

12 years ago

0.1.79

12 years ago

0.1.78

12 years ago

0.1.77

12 years ago

0.1.66

12 years ago

0.1.65

12 years ago

0.1.64

12 years ago

0.1.63

12 years ago

0.1.62

12 years ago

0.1.61

12 years ago

0.1.60

12 years ago

0.1.59

12 years ago

0.1.58

12 years ago

0.1.57

12 years ago

0.1.3

12 years ago

0.1.2

12 years ago

0.1.1

12 years ago

0.1.0

12 years ago

0.0.5

12 years ago

0.0.4

12 years ago

0.0.3

12 years ago

0.0.2

12 years ago

0.0.1

12 years ago

0.1.189

12 years ago

0.1.188

12 years ago

0.1.186

12 years ago

0.1.185

12 years ago

0.1.184

12 years ago

0.1.183

12 years ago

0.1.181

12 years ago

0.1.180

12 years ago

0.1.179

12 years ago

0.1.178

12 years ago

0.1.177

12 years ago

0.1.176

12 years ago

0.1.175

12 years ago

0.1.174

12 years ago

0.1.173

12 years ago

0.1.172

12 years ago

0.1.170

12 years ago

0.1.169

12 years ago

0.1.168

12 years ago

0.1.167

12 years ago

0.1.160

12 years ago

0.1.157

12 years ago

0.1.140

12 years ago

0.1.139

12 years ago

0.1.137

12 years ago

0.1.135

12 years ago

0.1.134

12 years ago

0.1.133

12 years ago

0.1.131

12 years ago

0.1.130

12 years ago

0.1.129

12 years ago

0.1.128

12 years ago

0.1.127

12 years ago

0.1.126

12 years ago

0.1.125

12 years ago

0.1.124

12 years ago

0.1.123

12 years ago

0.1.122

12 years ago

0.1.121

12 years ago

0.1.120

12 years ago

0.1.119

12 years ago

0.1.118

12 years ago

0.1.117

12 years ago

0.1.116

13 years ago

0.1.115

13 years ago

0.1.114

13 years ago

0.1.113

13 years ago

0.1.112

13 years ago

0.1.111

13 years ago

0.1.110

13 years ago

0.1.109

13 years ago

0.1.108

13 years ago

0.1.107

13 years ago

0.1.106

13 years ago

0.1.104

13 years ago

0.1.103

13 years ago

0.1.102

13 years ago