Skip to content

Commit

Permalink
first real commit
Browse files Browse the repository at this point in the history
  • Loading branch information
mwawrusch committed Aug 4, 2014
1 parent 39c6695 commit c037699
Show file tree
Hide file tree
Showing 44 changed files with 14,777 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
node_modules
config.json
tmp
public/assets
*.log
.DS_Store
*.swp
*.swo
keys.txt
4 changes: 4 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
language: node_js
node_js:
- "0.10"
services: mongodb
101 changes: 101 additions & 0 deletions Gruntfile.coffee
Original file line number Diff line number Diff line change
@@ -0,0 +1,101 @@
_ = require 'underscore'

coffeeRename = (destBase, destPath) ->
destPath = destPath.replace 'src/',''
destBase + destPath.replace /\.coffee$/, '.js'

module.exports = (grunt) ->

filterGrunt = ->
gruntFiles = require("matchdep").filterDev("grunt-*")
_.reject gruntFiles, (x) -> x is 'grunt-cli'

filterGrunt().forEach grunt.loadNpmTasks

config =
coffee:
compile:
options:
sourceMap: true
files: grunt.file.expandMapping(['src/**/*.coffee'], 'lib/', {rename: coffeeRename })

shell:
options:
stdout: true
npm_install:
command: "npm install"

env:
dev:
NODE_ENV: "development"
test:
NODE_ENV: "test"

codo:
options:
undocumented: true
private: true
analytics: false
src: ['src/**/*.coffee']


mochaTest:
test:
options:
reporter: 'spec'
require: 'coffee-script/register'
src: ['test/**/*-tests.coffee']

mochacov:
options:
coveralls:
repoToken: "9TE8NsKQWe94SUDmDeytRGcvuiYsYrabI"
require: ['coffee-script/register','should']
all: ['test/**/*-tests.coffee']

config.watch =
scripts:
files: ['src/**/*.coffee']
tasks: ['build']
options:
livereload: false

tests:
files: ['test/**/*.coffee']
tasks: ['build']
options:
livereload: false

grunt.initConfig config

grunt.registerTask "install", [
"shell:npm_install"
]

grunt.registerTask "build", [
'env:dev'
'codo'
'coffee'
'test'
]

grunt.registerTask "test", [
'env:test'
'mochaTest:test'
]

grunt.registerTask "testandcoverage", [
'env:test'
'mochaTest:test'
'mochacov'
]


grunt.registerTask 'deploy', [
'build'
'release'
]

grunt.registerTask 'default', ['build', 'watch']


49 changes: 49 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
[![Build Status](https://travis-ci.org/codedoctor/hapi-routes-users-authorizations.svg?branch=master)](https://travis-ci.org/codedoctor/hapi-routes-users-authorizations)
[![Coverage Status](https://img.shields.io/coveralls/codedoctor/hapi-routes-users-authorizations.svg)](https://coveralls.io/r/codedoctor/hapi-routes-users-authorizations)
[![NPM Version](http://img.shields.io/npm/v/hapi-routes-users-authorizations.svg)](https://www.npmjs.org/package//hapi-routes-users-authorizations)
[![Dependency Status](https://gemnasium.com/codedoctor/hapi-routes-users-authorizations.svg)](https://gemnasium.com/codedoctor/hapi-routes-users-authorizations)
[![NPM Downloads](http://img.shields.io/npm/dm/hapi-routes-users-authorizations.svg)](https://www.npmjs.org/package/hapi-routes-users-authorizations)
[![Issues](http://img.shields.io/github/issues/codedoctor/hapi-routes-users-authorizations.svg)](https://github.com/codedoctor/hapi-routes-users-authorizations/issues)
[![HAPI 6.0](http://img.shields.io/badge/hapi-6.0-blue.svg)](http://hapijs.com)
[![API Documentation](http://img.shields.io/badge/API-Documentation-ff69b4.svg)](http://coffeedoc.info/github/codedoctor/hapi-routes-users-authorizations)

(C) 2014 Martin Wawrusch

Provides API endpoints for HAPI servers to manage users.

## Dependencies

* Requires HAPI >= 6.0.0 and hapi-identity-store


## See also

* [hapi-auth-bearer-mw](https://github.com/codedoctor/hapi-auth-bearer-mw)
* [hapi-identity-store](https://github.com/codedoctor/hapi-identity-store)
* [hapi-mongoose-db-connector](https://github.com/codedoctor/hapi-mongoose-db-connector)
* [hapi-routes-authorization-and-session-management](https://github.com/codedoctor/hapi-routes-authorization-and-session-management)
* [hapi-routes-status](https://github.com/codedoctor/hapi-routes-status)
* [hapi-routes-users](https://github.com/codedoctor/hapi-routes-users)
* [hapi-routes-users-authorizations](https://github.com/codedoctor/hapi-routes-users-authorizations)

and additionally

* [mongoose-identity-store-multi-tenant](https://github.com/codedoctor/mongoose-identity-store-multi-tenant)
* [mongoose-rest-helper](https://github.com/codedoctor/mongoose-rest-helper)


## Contributing

* Check out the latest master to make sure the feature hasn't been implemented or the bug hasn't been fixed yet
* Check out the issue tracker to make sure someone already hasn't requested it and/or contributed it
* Fork the project
* Start a feature/bugfix branch
* Commit and push until you are happy with your contribution
* Make sure to add tests for it. This is important so I don't break it in a future version unintentionally.
* Please try not to mess with the package.json, version, or history. If you want to have your own version, or is otherwise necessary, that is fine, but please isolate to its own commit so I can cherry-pick around it.

## Copyright

Copyright (c) 2014 Martin Wawrusch


165 changes: 165 additions & 0 deletions doc/alphabetical_index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,165 @@
<!DOCTYPE html>
<html>
<head>
<meta charset='UTF-8'>
<title>Documentation</title>
<script src='javascript/application.js'></script>
<script src='javascript/search.js'></script>
<link rel='stylesheet' href='stylesheets/application.css' type='text/css'>
</head>
<body>
<div id='base' data-path=''></div>
<div id='header'>
<div id='menu'>
</div>
</div>
<div id='content'>
<h1 class='noborder title'></h1>
<div id='listing'>
<h1 class='alphaindex'>Alphabetical Index</h1>
<h2>Extra File Listing</h2>
<ul id='files'>
<li>
<a href='extra/README.md.html' title='README.md'>
README.md
</a>
</li>
</ul>
<h2>File Listing A-Z</h2>
<div class='index'>
<ul>
<li class='letter'>h</li>
<ul>
<li>
<a href='file/src/helper-obj-to-rest.coffee.html'>
helper-obj-to-rest.coffee
</a>
<small>
(src)
</small>
</li>
</ul>
</ul>
<ul>
<li class='letter'>i</li>
<ul>
<li>
<a href='file/src/i18n.coffee.html'>
i18n.coffee
</a>
<small>
(src)
</small>
</li>
<li>
<a href='file/src/index.coffee.html'>
index.coffee
</a>
<small>
(src)
</small>
</li>
</ul>
</ul>
<ul>
<li class='letter'>r</li>
<ul>
<li>
<a href='file/src/routes.coffee.html'>
routes.coffee
</a>
<small>
(src)
</small>
</li>
</ul>
</ul>
<ul>
<li class='letter'>v</li>
<ul>
<li>
<a href='file/src/validation-schemas.coffee.html'>
validation-schemas.coffee
</a>
<small>
(src)
</small>
</li>
</ul>
</ul>
</div>
</div>
</div>
<div id='footer'>
August 04, 14 16:01:11 by
<a href='https://github.com/coffeedoc/codo' title='CoffeeScript API documentation generator'>
Codo
</a>
2.0.9
&#10034;
Press H to see the keyboard shortcuts
&#10034;
<a href='http://twitter.com/netzpirat' target='_parent'>@netzpirat</a>
&#10034;
<a href='http://twitter.com/_inossidabile' target='_parent'>@_inossidabile</a>
</div>
<iframe id='search_frame'></iframe>
<div id='fuzzySearch'>
<input type='text'>
<ol></ol>
</div>
<div id='help'>
<p>
Quickly fuzzy find classes, mixins, methods, file:
</p>
<ul>
<li>
<span>T</span>
Open fuzzy finder dialog
</li>
</ul>
<p>
Control the navigation frame:
</p>
<ul>
<li>
<span>L</span>
Toggle list view
</li>
<li>
<span>C</span>
Show class list
</li>
<li>
<span>I</span>
Show mixin list
</li>
<li>
<span>F</span>
Show file list
</li>
<li>
<span>M</span>
Show method list
</li>
<li>
<span>E</span>
Show extras list
</li>
</ul>
<p>
You can focus and blur the search input:
</p>
<ul>
<li>
<span>S</span>
Focus search input
</li>
<li>
<span>Esc</span>
Blur search input
</li>
</ul>
</div>
</body>
</html>
33 changes: 33 additions & 0 deletions doc/class_list.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
<!DOCTYPE html>
<html>
<head>
<meta charset='UTF-8'>
<title>Documentation</title>
<script src='javascript/application.js'></script>
<script src='javascript/search.js'></script>
<link rel='stylesheet' href='stylesheets/application.css' type='text/css'>
</head>
<body class='list'>
<div class='list tree' id='content'>
<h1 class='full_list_header'>Class List</h1>
<nav>
<a target='_self' href='file_list.html'>
Files
</a>
<a target='_self' href='method_list.html'>
Methods
</a>
<a target='_self' href='extra_list.html'>
Extras
</a>
</nav>
<div id='search'>
Search:
<input type='text'>
</div>
<ul>
</ul>

</div>
</body>
</html>
Loading

0 comments on commit c037699

Please sign in to comment.