Permalink
Browse files

add mean.io

  • Loading branch information...
1 parent fdc162a commit 67c40a8e4c31169a22183a968382d2b2322c62f4 @rrajkowski committed Jun 27, 2014
Showing with 3,432 additions and 45 deletions.
  1. +8 −0 .bowerrc
  2. +20 −0 .csslintrc
  3. +14 −0 .gitignore
  4. +1 −0 .jshintignore
  5. +41 −0 .jshintrc
  6. +1 −0 .slugignore
  7. +7 −0 .travis.yml
  8. +71 −0 AUTHORS
  9. +128 −0 Gruntfile.js
  10. +19 −0 LICENSE
  11. +1 −1 Procfile
  12. +168 −3 README.md
  13. +15 −0 bower.json
  14. +1 −0 heroku-app
  15. +0 −15 index.js
  16. +83 −26 package.json
  17. +1 −0 packages/articles/README.md
  18. +51 −0 packages/articles/app.js
  19. +16 −0 packages/articles/package.json
  20. +6 −0 packages/articles/public/assets/css/articles.css
  21. BIN packages/articles/public/assets/img/logo.png
  22. +75 −0 packages/articles/public/controllers/articles.js
  23. +57 −0 packages/articles/public/routes/articles.js
  24. +14 −0 packages/articles/public/services/articles.js
  25. +28 −0 packages/articles/public/views/create.html
  26. +28 −0 packages/articles/public/views/edit.html
  27. +21 −0 packages/articles/public/views/list.html
  28. +14 −0 packages/articles/public/views/view.html
  29. +97 −0 packages/articles/server/controllers/articles.js
  30. +54 −0 packages/articles/server/models/article.js
  31. +25 −0 packages/articles/server/routes/articles.js
  32. +198 −0 packages/articles/test/karma/controllers/articles.spec.js
  33. +64 −0 packages/articles/test/mocha/article/model.js
  34. BIN public/auth/assets/img/icons/facebook.png
  35. BIN public/auth/assets/img/icons/favicon.ico
  36. BIN public/auth/assets/img/icons/github.png
  37. BIN public/auth/assets/img/icons/google.png
  38. BIN public/auth/assets/img/icons/linkedin.png
  39. BIN public/auth/assets/img/icons/twitter.png
  40. +3 −0 public/auth/auth.js
  41. +68 −0 public/auth/controllers/auth.js
  42. +43 −0 public/auth/routes/auth.js
  43. +31 −0 public/auth/views/index.html
  44. +24 −0 public/auth/views/login.html
  45. +46 −0 public/auth/views/register.html
  46. +15 −0 public/humans.txt
  47. +24 −0 public/init.js
  48. +3 −0 public/robots.txt
  49. +48 −0 public/system/assets/css/common.css
  50. BIN public/system/assets/img/apple/apple-touch-icon-114x114-precomposed.png
  51. BIN public/system/assets/img/apple/apple-touch-icon-144x144-precomposed.png
  52. BIN public/system/assets/img/apple/apple-touch-icon-57x57-precomposed.png
  53. BIN public/system/assets/img/apple/apple-touch-icon-72x72-precomposed.png
  54. BIN public/system/assets/img/apple/apple-touch-icon-precomposed.png
  55. BIN public/system/assets/img/apple/apple-touch-icon.png
  56. BIN public/system/assets/img/apple/splash.png
  57. BIN public/system/assets/img/apple/splash2x.png
  58. BIN public/system/assets/img/favicon.ico
  59. BIN public/system/assets/img/loaders/loader.gif
  60. BIN public/system/assets/img/sprites/glyphicons-halflings-white.png
  61. BIN public/system/assets/img/sprites/glyphicons-halflings.png
  62. +38 −0 public/system/controllers/header.js
  63. +5 −0 public/system/controllers/index.js
  64. +24 −0 public/system/routes/system.js
  65. +19 −0 public/system/services/global.js
  66. +29 −0 public/system/services/interceptor.js
  67. +8 −0 public/system/services/menus.js
  68. +3 −0 public/system/system.js
  69. +38 −0 public/system/views/header.html
  70. +3 −0 public/system/views/index.html
  71. +34 −0 server.js
  72. +26 −0 server/config/assets.json
  73. +18 −0 server/config/config.js
  74. +36 −0 server/config/env/all.js
  75. +33 −0 server/config/env/development.js
  76. +33 −0 server/config/env/production.js
  77. +34 −0 server/config/env/test.js
  78. +194 −0 server/config/express.js
  79. +206 −0 server/config/passport.js
  80. +52 −0 server/config/system/bootstrap.js
  81. +34 −0 server/controllers/index.js
  82. +104 −0 server/controllers/users.js
  83. +138 −0 server/models/user.js
  84. +11 −0 server/routes/index.js
  85. +26 −0 server/routes/menus.js
  86. +22 −0 server/routes/middlewares/authorization.js
  87. +98 −0 server/routes/users.js
  88. +17 −0 server/views/404.html
  89. +17 −0 server/views/500.html
  90. +9 −0 server/views/includes/foot.html
  91. +28 −0 server/views/includes/head.html
  92. +8 −0 server/views/index.html
  93. +20 −0 server/views/layouts/default.html
  94. +24 −0 server/views/users/auth.html
  95. +24 −0 server/views/users/signin.html
  96. +36 −0 server/views/users/signup.html
  97. +91 −0 test/karma/karma.conf.js
  98. +145 −0 test/karma/unit/controllers/auth.spec.js
  99. +26 −0 test/karma/unit/controllers/headers.spec.js
  100. +26 −0 test/karma/unit/controllers/index.spec.js
  101. +63 −0 test/mocha/user/model.js
View
@@ -0,0 +1,8 @@
+{
+ "directory": "public/system/lib",
+ "storage": {
+ "packages": ".bower-cache",
+ "registry": ".bower-registry"
+ },
+ "tmp": ".bower-tmp"
+}
View
@@ -0,0 +1,20 @@
+{
+ "adjoining-classes": false,
+ "box-model": false,
+ "box-sizing": false,
+ "compatible-vendor-prefixes": false,
+ "floats": false,
+ "font-sizes": false,
+ "gradients": false,
+ "important": false,
+ "known-properties": false,
+ "outline-none": false,
+ "overqualified-elements": false,
+ "qualified-headings": false,
+ "regex-selectors": false,
+ "shorthand": false,
+ "text-indent": false,
+ "unique-headings": false,
+ "universal-selector": false,
+ "unqualified-attributes": false
+}
View
@@ -0,0 +1,14 @@
+.DS_Store
+.nodemonignore
+.sass-cache/
+.bower-*/
+.idea/
+nbproject/
+node_modules/
+public/system/lib
+mean.iml
+test/coverage/
+modules/public/
+modules/views/
+/public/build/
+/nbproject/private/
View
@@ -0,0 +1 @@
+test/coverage/**
View
@@ -0,0 +1,41 @@
+{
+ "node": true, // Enable globals available when code is running inside of the NodeJS runtime environment.
+ "browser": true, // Standard browser globals e.g. `window`, `document`.
+ "esnext": true, // Allow ES.next specific features such as `const` and `let`.
+ "bitwise": false, // Prohibit bitwise operators (&, |, ^, etc.).
+ "camelcase": false, // Permit only camelcase for `var` and `object indexes`.
+ "curly": false, // Require {} for every new block or scope.
+ "eqeqeq": true, // Require triple equals i.e. `===`.
+ "immed": true, // Require immediate invocations to be wrapped in parens e.g. `( function(){}() );`
+ "latedef": true, // Prohibit variable use before definition.
+ "newcap": true, // Require capitalization of all constructor functions e.g. `new F()`.
+ "noarg": true, // Prohibit use of `arguments.caller` and `arguments.callee`.
+ "quotmark": "single", // Define quotes to string values.
+ "regexp": true, // Prohibit `.` and `[^...]` in regular expressions.
+ "undef": true, // Require all non-global variables be declared before they are used.
+ "unused": "vars", // Warn unused variables, but not unused params
+ "strict": true, // Require `use strict` pragma in every file.
+ "trailing": true, // Prohibit trailing whitespaces.
+ "smarttabs": false, // Suppresses warnings about mixed tabs and spaces
+ "globals": { // Globals variables.
+ "angular": true
+ },
+ "predef": [ // Extra globals.
+ "define",
+ "require",
+ "exports",
+ "module",
+ "describe",
+ "before",
+ "beforeEach",
+ "after",
+ "afterEach",
+ "it",
+ "inject",
+ "expect",
+ "spyOn"
+ ],
+ "indent": 4, // Specify indentation spacing
+ "devel": true, // Allow development statements e.g. `console.log();`.
+ "noempty": true // Prohibit use of empty blocks.
+}
View
@@ -0,0 +1 @@
+/test
View
@@ -0,0 +1,7 @@
+language: node_js
+node_js:
+ - "0.10"
+env:
+ - NODE_ENV=development
+services:
+ - mongodb
View
@@ -0,0 +1,71 @@
+# Authors ordered by first contribution
+
+Amos Haviv <mail@amoshaviv.com>
+Shachar Zohar <shacharz@gmail.com>
+Lior Kesos <lior@linnovate.net>
+Anders Riutta <anders.riutta@gmail.com>
+Brent Westmoreland <brent@westmoreland.us>
+Roie Schwaber-Cohen <roie@gomango.com>
+Mitch Pirtle <mitch@spacemonkeylabs.com>
+Diego Netto <diegormnetto@gmail.com>
+Brian Oley <brian.oley@gmail.com>
+Mattia Asti <the.oozic@gmail.com>
+Martins Untals <martins.untals@gmail.com>
+Yutaka Yamaguchi <yyamaguchi@sixapart.com>
+Jon-Biz <github@elbizri.com>
+Amitai Burstein <amitai@gizra.com>
+RafaDev7 <rafadev7@gmail.com>
+Clay Diffrient <clay.diffrient@gmail.com>
+William Ngo <will@mrngoitall.net>
+Dev Mehta <dpmehta02@gmail.com>
+Drew Fyock <fyockm@gmail.com>
+Ferrari <shiyung@gmail.com>
+Dave Rapin <dave@rapin.com>
+John Fenley <Pontifier@gmail.com>
+pontifier <pontifier@gmail.com>
+William Ngo <will@mrngoitall.net>
+Jason Weaver <indyplanets@gmail.com>
+Rob Zolkos <robzolkos@gmail.com>
+Eric Thomas <eric.l.m.thomas@gmail.com>
+Michael Lai <themichaellai@gmail.com>
+Rudi Starcevic <ooly.me@gmail.com>
+Mark Stosberg <mark@rideamigos.com>
+Kieu Anh Tuan <passkey1510@gmail.com>
+Opi Danihelka <opicacek@seznam.cz>
+Peter Blazejewicz <peter.blazejewicz@gmail.com>
+Davy Chiu <davychiu@gmail.com>
+John Williams <john@creoagency.com>
+Jonathan Dizdarevic <dizzda@gmail.com>
+Saulo Vallory <me@saulovallory.com>
+Andrew Pierce <andrunix@gmail.com>
+Maciej Rzepiński <maciej.rzepinski@gmail.com>
+Marcin Jekot <marcin@jekot.net>
+Geert-Jan Brits <gbrits@gmail.com>
+Richard McIntyre <richard.mackstar@gmail.com>
+Nicolas Forney <nicolas@eforney.com>
+jonaswindey <jonas.windey@gmail.com>
+Liran Tal <liran.tal@gmail.com>
+VikramTiwari <Vikramtheone1@gmail.com>
+Yonatan Ellman <yonatan@linnovate.net>
+jonaswindey <jonas.windey@gmail.com>
+Harshad Kale <harshad.kale@hotmail.com>
+Ibes Mongabure <developpement@studiowaaz.com>
+vygis <vygintas.ranonis@gmail.com>
+david howard <dmh2000@gmail.com>
+elmalto <malte.buecken@gmail.com>
+Francesco Pavone <ciccio1986@gmail.com>
+Krishnan Mani <kmani@equalexperts.com>
+MaximAL <almaximal@ya.ru>
+James Yin <coocoon@gmail.com>
+Ehud Shahak <ehud@linnovate.net>
+Jeremy Greer <jeremygreer@reergymerej.com>
+Jerry Chanut <jerry.chanut@steria.com>
+leejessy <jessylee@yobi3d.com>
+Reed Dadoune <r@thriveline.com>
+Squ34k3rZ <Squ34k3rZ@gmail.com>
+Erlend Oftedal <erlend@oftedal.no>
+wspurgin <will.spurgin@gmail.com>
+Jack Hsu <jack@biztera.com>
+Monthy Python <monthypython@users.noreply.github.com>
+Adrian Edworthy <git@adrianedworthy.com>
+Joseph Heck <joseph.heck@gmail.com>
View
@@ -0,0 +1,128 @@
+'use strict';
+
+var paths = {
+ js: ['*.js', 'server/**/*.js', 'public/**/*.js', 'test/**/*.js', '!test/coverage/**', '!public/system/lib/**', 'packages/**/*.js', '!packages/**/node_modules/**'],
+ html: ['public/**/views/**', 'server/views/**', 'packages/**/public/**/views/**', 'packages/**/server/views/**'],
+ css: ['public/**/css/*.css', '!public/system/lib/**', 'packages/**/public/**/css/*.css']
+};
+
+module.exports = function(grunt) {
+
+ if (process.env.NODE_ENV !== 'production') {
+ require('time-grunt')(grunt);
+ }
+
+ // Project Configuration
+ grunt.initConfig({
+ pkg: grunt.file.readJSON('package.json'),
+ assets: grunt.file.readJSON('server/config/assets.json'),
+ clean: ['public/build'],
+ watch: {
+ js: {
+ files: paths.js,
+ tasks: ['jshint'],
+ options: {
+ livereload: true
+ }
+ },
+ html: {
+ files: paths.html,
+ options: {
+ livereload: true
+ }
+ },
+ css: {
+ files: paths.css,
+ tasks: ['csslint'],
+ options: {
+ livereload: true
+ }
+ }
+ },
+ jshint: {
+ all: {
+ src: paths.js,
+ options: {
+ jshintrc: true
+ }
+ }
+ },
+ uglify: {
+ core: {
+ options: {
+ mangle: false
+ },
+ files: '<%= assets.core.js %>'
+ }
+ },
+ csslint: {
+ options: {
+ csslintrc: '.csslintrc'
+ },
+ src: paths.css
+ },
+ cssmin: {
+ core: {
+ files: '<%= assets.core.css %>'
+ }
+ },
+ nodemon: {
+ dev: {
+ script: 'server.js',
+ options: {
+ args: [],
+ ignore: ['public/**', 'node_modules/**'],
+ ext: 'js,html',
+ nodeArgs: ['--debug'],
+ delayTime: 1,
+ cwd: __dirname
+ }
+ }
+ },
+ concurrent: {
+ tasks: ['nodemon', 'watch'],
+ options: {
+ logConcurrentOutput: true
+ }
+ },
+ mochaTest: {
+ options: {
+ reporter: 'spec',
+ require: [
+ 'server.js',
+ function() {
+ require('mongoose').connection.once('open', function() {});
+ }
+ ]
+ },
+ src: ['test/mocha/**/*.js', 'packages/**/test/mocha/**/*.js']
+ },
+ env: {
+ test: {
+ NODE_ENV: 'test'
+ }
+ },
+ karma: {
+ unit: {
+ configFile: 'test/karma/karma.conf.js'
+ }
+ }
+ });
+
+ //Load NPM tasks
+ require('load-grunt-tasks')(grunt);
+
+ //Default task(s).
+ if (process.env.NODE_ENV === 'production') {
+ grunt.registerTask('default', ['clean', 'cssmin', 'uglify', 'concurrent']);
+ } else {
+ grunt.registerTask('default', ['clean', 'jshint', 'csslint', 'concurrent']);
+ }
+
+ //Test task.
+ grunt.registerTask('test', ['env:test', 'mochaTest', 'karma:unit']);
+
+ // For Heroku users only.
+ // Docs: https://github.com/linnovate/mean/wiki/Deploying-on-Heroku
+ grunt.registerTask('heroku:production', ['cssmin', 'uglify']);
+};
View
@@ -0,0 +1,19 @@
+The MIT License
+
+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.
View
@@ -1 +1 @@
-web: node index.js
+web: ./node_modules/.bin/forever -m 5 server.js
Oops, something went wrong.

0 comments on commit 67c40a8

Please sign in to comment.