Skip to content

Commit

Permalink
Change: Switched to mmh as framework (wip)
Browse files Browse the repository at this point in the history
Signed-off-by: Christian Roth <christian.roth@port17.de>
  • Loading branch information
cr0 committed Aug 7, 2013
1 parent e06c0dd commit 50ab7d2
Show file tree
Hide file tree
Showing 34 changed files with 53 additions and 700 deletions.
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "node_modules/mmh"]
path = node_modules/mmh
url = https://cr0@github.com/cr0/mmh.git
Empty file removed assets/.gitkeep
Empty file.
20 changes: 0 additions & 20 deletions config.sample.yml

This file was deleted.

6 changes: 6 additions & 0 deletions config/extensions.coffee
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
module.exports =

passport:
enabled: yes
model: 'User'
provider: ['amazon', 'google', 'facebook']
11 changes: 11 additions & 0 deletions config/policies.coffee
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
module.exports =
# true = allow, false = deny, function = evaluate

'*': true

'FooController':
'*': 'authenticated'

'UserController':
'*': true
'me': 'authenticated'
16 changes: 16 additions & 0 deletions config/routes.coffee
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
module.exports =

'/': 'home#index'
'/login': 'home#index'
'/logout': 'home#index'
'/imprint': 'home#index'
'/gallery': 'home#index'
'/settings': 'home#index'

'/auth/req': 'auth#required'
'/auth/failed': 'auth#failed'
'/auth/logout': 'auth#logout'

'/auth/:provider/callback': 'auth#validate'

'/user/me': 'user#me'
1 change: 1 addition & 0 deletions node_modules/mmh
Submodule mmh added at 6c61d9
16 changes: 3 additions & 13 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"name": "node-galerie",
"private": true,
"version": "0.0.0",
"description": "a gallery written in node, nothing more.",
"main": "server.js",
Expand All @@ -9,6 +10,7 @@
"scripts": {
"install": "grunt build",
"test": "grunt test",
"start": "node start.js",
"blanket": {
"pattern": [
".test"
Expand All @@ -29,24 +31,12 @@
"readmeFilename": "README.md",
"dependencies": {
"coffee-script": "1.6.x",
"express": "3.x",
"mongoose": "3.6.x",
"jade": "0.33.x",
"grunt": "0.4.x",
"grunt-cli": "0.1.x",
"grunt-contrib-coffee": "0.7.x",
"grunt-contrib-clean": "0.5.x",
"passport": "0.1.x",
"passport-amazon": "0.1.x",
"passport-google-oauth": "0.1.x",
"passport-facebook": "0.1.x",
"passport-local": "0.1.x",
"yaml-config": "0.2.x",
"connect-ensure-login": "0.1.x",
"basic-auth-mongoose": "0.1.x",
"mongoose-schema-extend": "0.1.x",
"source-map-support": "0.2.x",
"jquery-file-upload-middleware": "0.0.8"
"mongoose": "3.6.x"
},
"devDependencies": {
"grunt-contrib-watch": "0.5.x",
Expand Down
7 changes: 0 additions & 7 deletions server.js

This file was deleted.

Empty file removed src/.gitkeep
Empty file.
98 changes: 0 additions & 98 deletions src/index.coffee

This file was deleted.

44 changes: 0 additions & 44 deletions src/models/album.coffee

This file was deleted.

19 changes: 0 additions & 19 deletions src/models/role.coffee

This file was deleted.

68 changes: 0 additions & 68 deletions src/models/user.coffee

This file was deleted.

Loading

0 comments on commit 50ab7d2

Please sign in to comment.