-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
312 changed files
with
33,238 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
"directory": "bower_components", | ||
"storage": { | ||
"packages": ".bower-cache", | ||
"registry": ".bower-registry" | ||
}, | ||
"tmp": ".bower-tmp" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
# -------------------- | ||
# OSX Files | ||
# -------------------- | ||
.DS_Store | ||
.AppleDouble | ||
.LSOverride | ||
Icon | ||
._* | ||
.Spotlight-V100 | ||
.Trashes | ||
|
||
# -------------------- | ||
# Eclipse or Nodeclipse "Enide Studio" Files | ||
# -------------------- | ||
# recommended to add to Git SCM | ||
# or generate with `nodeclipse -p` command | ||
.project | ||
.settings/ | ||
.*.md.html | ||
|
||
|
||
# -------------------- | ||
# IntelliJ Files | ||
# -------------------- | ||
*.iml | ||
*.ipr | ||
*.iws | ||
.idea/ | ||
|
||
# -------------------- | ||
# Netbeans Files | ||
# -------------------- | ||
nbproject/private/ | ||
build/ | ||
nbbuild/ | ||
dist/ | ||
nbdist/ | ||
nbactions.xml | ||
nb-configuration.xml | ||
|
||
# -------------------- | ||
# Node Files | ||
# -------------------- | ||
.nodemonignore | ||
npm-debug.log | ||
node_modules/ | ||
|
||
# -------------------- | ||
# SASS Files | ||
# -------------------- | ||
.sass-cache/ | ||
|
||
# -------------------- | ||
# Bower Files | ||
# -------------------- | ||
.bower-*/ | ||
bower_components | ||
|
||
# -------------------- | ||
# App Files | ||
# -------------------- | ||
data/ | ||
tests/results/** | ||
modules/public/ | ||
modules/views/ | ||
/public/build/ | ||
/packages/contrib/ | ||
/packages/**/**/public/assets/lib | ||
|
||
|
||
# -------------------- | ||
# vim Files | ||
# -------------------- | ||
*.swp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
test/coverage/** |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,92 @@ | ||
{ | ||
"maxerr" : 50, // {int} Maximum error before stopping | ||
|
||
// Enforcing | ||
"bitwise" : true, // true: Prohibit bitwise operators (&, |, ^, etc.) | ||
"camelcase" : false, // true: Identifiers must be in camelCase | ||
"curly" : false, // true: Require {} for every new block or scope | ||
"eqeqeq" : true, // true: Require triple equals (===) for comparison | ||
"forin" : false, // true: Require filtering for..in loops with obj.hasOwnProperty() | ||
"immed" : true, // true: Require immediate invocations to be wrapped in parens e.g. `(function () { } ());` | ||
"indent" : 2, // {int} Number of spaces to use for indentation | ||
"latedef" : true, // true: Require variables/functions to be defined before being used | ||
"newcap" : true, // true: Require capitalization of all constructor functions e.g. `new F()` | ||
"noarg" : true, // true: Prohibit use of `arguments.caller` and `arguments.callee` | ||
"noempty" : true, // true: Prohibit use of empty blocks | ||
"nonew" : true, // true: Prohibit use of constructors for side-effects (without assignment) | ||
"plusplus" : false, // true: Prohibit use of `++` & `--` | ||
"quotmark" : "single", // Quotation mark consistency: | ||
// false : do nothing (default) | ||
// true : ensure whatever is used is consistent | ||
// "single" : require single quotes | ||
// "double" : require double quotes | ||
"undef" : true, // true: Require all non-global variables to be declared (prevents global leaks) | ||
"unused" : "vars", // true: Require all defined variables be used | ||
"strict" : true, // true: Requires all functions run in ES5 Strict Mode | ||
"maxparams" : false, // {int} Max number of formal params allowed per function | ||
"maxdepth" : false, // {int} Max depth of nested blocks (within functions) | ||
"maxstatements" : false, // {int} Max number statements per function | ||
"maxcomplexity" : false, // {int} Max cyclomatic complexity per function | ||
"maxlen" : false, // {int} Max number of characters per line | ||
|
||
// Relaxing | ||
"asi" : true, // true: Tolerate Automatic Semicolon Insertion (no semicolons) | ||
"boss" : false, // true: Tolerate assignments where comparisons would be expected | ||
"debug" : false, // true: Allow debugger statements e.g. browser breakpoints. | ||
"eqnull" : false, // true: Tolerate use of `== null` | ||
"es5" : false, // true: Allow ES5 syntax (ex: getters and setters) | ||
"esnext" : true, // true: Allow ES.next (ES6) syntax (ex: `const`) | ||
"moz" : false, // true: Allow Mozilla specific syntax (extends and overrides esnext features) | ||
// (ex: `for each`, multiple try/catch, function expression…) | ||
"evil" : false, // true: Tolerate use of `eval` and `new Function()` | ||
"expr" : false, // true: Tolerate `ExpressionStatement` as Programs | ||
"funcscope" : false, // true: Tolerate defining variables inside control statements | ||
"globalstrict" : false, // true: Allow global "use strict" (also enables 'strict') | ||
"iterator" : false, // true: Tolerate using the `__iterator__` property | ||
"lastsemic" : false, // true: Tolerate omitting a semicolon for the last statement of a 1-line block | ||
"laxbreak" : false, // true: Tolerate possibly unsafe line breakings | ||
"laxcomma" : false, // true: Tolerate comma-first style coding | ||
"loopfunc" : false, // true: Tolerate functions being defined in loops | ||
"multistr" : false, // true: Tolerate multi-line strings | ||
"proto" : false, // true: Tolerate using the `__proto__` property | ||
"scripturl" : false, // true: Tolerate script-targeted URLs | ||
"shadow" : false, // true: Allows re-define variables later in code e.g. `var x=1; x=2;` | ||
"sub" : false, // true: Tolerate using `[]` notation when it can still be expressed in dot notation | ||
"supernew" : false, // true: Tolerate `new function () { ... };` and `new Object;` | ||
"validthis" : false, // true: Tolerate using this in a non-constructor function | ||
|
||
// Environments | ||
"browser" : true, // Web Browser (window, document, etc) | ||
"couch" : false, // CouchDB | ||
"devel" : true, // Development/debugging (alert, confirm, etc) | ||
"dojo" : false, // Dojo Toolkit | ||
"jquery" : false, // jQuery | ||
"mootools" : false, // MooTools | ||
"node" : true, // Node.js | ||
"nonstandard" : false, // Widely adopted globals (escape, unescape, etc) | ||
"prototypejs" : false, // Prototype and Scriptaculous | ||
"rhino" : false, // Rhino | ||
"worker" : false, // Web Workers | ||
"wsh" : false, // Windows Scripting Host | ||
"yui" : false, // Yahoo User Interface | ||
|
||
// Custom Globals | ||
"globals": { | ||
"$" : true, | ||
"angular" : true, | ||
"define" : false, | ||
"jasmine" : false, | ||
"require" : false, | ||
"exports" : false, | ||
"module" : false, | ||
"describe" : false, | ||
"before" : false, | ||
"beforeEach" : false, | ||
"after" : false, | ||
"afterEach" : false, | ||
"it" : false, | ||
"inject" : false, | ||
"expect" : false, | ||
"spyOn" : false | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
/test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
language: node_js | ||
sudo: false | ||
node_js: | ||
- "0.12" | ||
- "4.2.4" | ||
- "5.4.1" | ||
env: | ||
- NODE_ENV=development | ||
services: | ||
- mongodb | ||
|
||
before_install: | ||
- npm i -g bower | ||
|
||
notifications: | ||
webhooks: | ||
urls: | ||
- https://webhooks.gitter.im/e/08c84711c36e875930d0 | ||
- https://hooks.slack.com/services/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 | ||
on_success: change # options: [always|never|change] default: always | ||
on_failure: always # options: [always|never|change] default: always | ||
on_start: always # default: false | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
## Contributing | ||
|
||
### Reporting an Issue | ||
1. Please make sure that the issue you have found is not an issue that has already been opened | ||
2. If that's the case, then add your observations in that same issue | ||
3. If your issue is unique, please add following details in the issue: | ||
1. OS name and version | ||
2. NodeJS and NPM version : Output of `node -v` and `npm -v` | ||
3. MEAN Status : Output of `mean status` in project directory | ||
4. Tracelog : The error that got printed on the console | ||
5. Any other relevant details | ||
4. Add `[Feature]` in the title if its a suggestion rather than an issue that you would like to see in MEAN. | ||
|
||
|
||
### Creating a pull request | ||
1. There should be an issue for every pull request that is created. If no issue exists for your pull request, please create one. | ||
2. Make sure that your changes are passing the test by running `npm test` | ||
3. If there are any lint warnings, please clean those up as well | ||
4. In the comments for the pull request mention the issues that you are solving by this pull request | ||
5. Create the pull request |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
FROM node:4.2 | ||
|
||
RUN mkdir -p /usr/src/app | ||
WORKDIR /usr/src/app | ||
|
||
RUN npm install -g mean-cli bower gulp | ||
|
||
RUN groupadd -r node \ | ||
&& useradd -r -m -g node node | ||
|
||
COPY . /usr/src/app/ | ||
RUN rm -rf /usr/src/app/node_modules | ||
RUN chown -R node:node /usr/src/app | ||
|
||
USER node | ||
RUN touch /home/node/.mean | ||
RUN npm install | ||
ENV PORT 3000 | ||
ENV DB_PORT_27017_TCP_ADDR db | ||
CMD [ "npm", "start" ] | ||
EXPOSE 3000 | ||
|
||
|
||
#How to build: | ||
# git clone https://github.com/linnovate/mean | ||
# cd mean | ||
# docker build -t mean . | ||
|
||
#How to run: | ||
# docker pull mongo | ||
# docker run -d --name db mongo | ||
# docker run -p 3000:3000 --link db:db mean |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
======================================== | ||
MEAN.IO is licensed under the MIT License | ||
======================================== | ||
|
||
Copyright (C) 2012-2014 Linnovate Technologies | ||
|
||
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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
web: ./node_modules/.bin/forever -m 5 server.js |
Oops, something went wrong.