-
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
0 parents
commit 6ee6c06
Showing
64 changed files
with
3,044 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,185 @@ | ||
{ | ||
parserOptions: { | ||
ecmaVersion: 6, | ||
sourceType: 'module' | ||
}, | ||
env: { | ||
node: true, | ||
es6: true | ||
}, | ||
rules: { | ||
// Possible Errors | ||
'comma-dangle': [2, 'never'], | ||
'no-cond-assign': 2, | ||
'no-constant-condition': 2, | ||
'no-control-regex': 2, | ||
'no-debugger': 2, | ||
'no-dupe-args': 2, | ||
'no-dupe-keys': 2, | ||
'no-duplicate-case': 2, | ||
'no-empty-character-class': 2, | ||
|
||
'no-ex-assign': 2, | ||
'no-extra-boolean-cast': 2, | ||
|
||
'no-extra-semi': 2, | ||
'no-func-assign': 2, | ||
'no-inner-declarations': 2, | ||
'no-invalid-regexp': 2, | ||
'no-irregular-whitespace': 2, | ||
'no-negated-in-lhs': 2, | ||
'no-obj-calls': 2, | ||
'no-regex-spaces': 2, | ||
'no-sparse-arrays': 2, | ||
'no-unreachable': 2, | ||
'use-isnan': 2, | ||
'valid-typeof': 2, | ||
'no-unexpected-multiline': 2, | ||
|
||
// Best Practices | ||
'accessor-pairs': 2, | ||
'array-callback-return': 2, | ||
'block-scoped-var': 2, | ||
'curly': 2, | ||
'default-case': 2, | ||
'dot-notation': 2, | ||
'dot-location': [2, 'property'], | ||
'eqeqeq': 2, | ||
'guard-for-in': 2, | ||
'no-alert': 2, | ||
'no-caller': 2, | ||
'no-case-declarations': 2, | ||
'no-div-regex': 2, | ||
'no-else-return': 2, | ||
'no-empty-pattern': 2, | ||
'no-eq-null': 2, | ||
'no-eval': 2, | ||
'no-extend-native': 2, | ||
'no-extra-bind': 2, | ||
'no-extra-label': 2, | ||
'no-fallthrough': 2, | ||
'no-floating-decimal': 2, | ||
'no-implicit-coercion': 2, | ||
'no-implicit-globals': 2, | ||
'no-implied-eval': 2, | ||
'no-iterator': 2, | ||
'no-labels': 2, | ||
'no-lone-blocks': 2, | ||
'no-loop-func': 2, | ||
|
||
'no-multi-spaces': 0, | ||
'no-multi-str': 0, | ||
'no-native-reassign': 2, | ||
'no-new-func': 2, | ||
'no-new-wrappers': 2, | ||
'no-new': 2, | ||
'no-octal-escape': 2, | ||
'no-octal': 2, | ||
'no-proto': 2, | ||
'no-redeclare': 2, | ||
'no-return-assign': [2, 'always'], | ||
'no-script-url': 2, | ||
'no-self-assign': 2, | ||
'no-self-compare': 2, | ||
'no-sequences': 2, | ||
'no-throw-literal': 2, | ||
'no-unmodified-loop-condition': 2, | ||
'no-unused-expressions': 2, | ||
'no-unused-labels': 2, | ||
'no-useless-call': 2, | ||
'no-useless-concat': 2, | ||
'no-void': 2, | ||
'no-warning-comments': 1, | ||
'no-with': 2, | ||
'radix': 2, | ||
'require-jsdoc': 0, | ||
'valid-jsdoc': [2, { | ||
requireReturn: false, | ||
prefer: { | ||
returns: 'return' | ||
} | ||
}], | ||
'wrap-iife': [2, 'inside'], | ||
'yoda': 2, | ||
|
||
// Variables | ||
'no-delete-var': 2, | ||
'no-label-var': 2, | ||
'no-shadow-restricted-names': 2, | ||
'no-undef-init': 2, | ||
'no-undef': [2, {typeof: true}], | ||
'no-unused-vars': 0, | ||
'no-use-before-define': [2, 'nofunc'], | ||
|
||
// Node.js | ||
|
||
'handle-callback-err': 0, | ||
'no-mixed-requires': [2, {grouping: true, allowCall: true}], | ||
'no-new-require': 2, | ||
'no-path-concat': 2, | ||
'no-restricted-imports': [2, 'domain', 'freelist', 'smalloc', 'sys', 'colors'], | ||
'no-restricted-modules': [2, 'domain', 'freelist', 'smalloc', 'sys', 'colors'], | ||
|
||
// Stylistic Issues | ||
'array-bracket-spacing': [2, 'never'], | ||
'brace-style': ["error", "stroustrup", { "allowSingleLine": true }], | ||
'camelcase': [2, {properties: 'always'}], | ||
'comma-spacing': [2, {before: false, after: true}], | ||
'comma-style': [2, 'last'], | ||
'computed-property-spacing': [2, 'never'], | ||
'eol-last': 2, | ||
'indent': [2, 2, { | ||
SwitchCase: 1 | ||
}], | ||
'jsx-quotes': 2, | ||
'key-spacing': [2, {beforeColon: false, afterColon: true}], | ||
'keyword-spacing': 2, | ||
'linebreak-style': [2, 'unix'], | ||
'max-len': 0, | ||
'max-nested-callbacks': [1, 4], | ||
'new-cap': [2, {newIsCap: true, capIsNew: true}], | ||
'new-parens': 2, | ||
'no-array-constructor': 2, | ||
'no-lonely-if': 2, | ||
'no-mixed-spaces-and-tabs': 2, | ||
'no-multiple-empty-lines': 0, | ||
'no-nested-ternary': 2, | ||
'no-negated-condition': 2, | ||
'no-new-object': 2, | ||
'no-restricted-syntax': [2, 'WithStatement'], | ||
'no-whitespace-before-property': 2, | ||
'no-spaced-func': 2, | ||
'no-trailing-spaces': 2, | ||
'no-unneeded-ternary': 2, | ||
'object-curly-spacing': [2, "always"], | ||
'one-var': [2, 'never'], | ||
'one-var-declaration-per-line': 2, | ||
'operator-assignment': [2, 'always'], | ||
'operator-linebreak': [2, 'after'], | ||
'padded-blocks': 0, | ||
'quote-props': [2, 'consistent-as-needed'], | ||
'quotes': [2, 'single'], | ||
'semi-spacing': [2, {before: false, after: true}], | ||
'semi': [2, 'always'], | ||
'space-before-blocks': [2, 'always'], | ||
'space-before-function-paren': [2, 'never'], | ||
'space-in-parens': [2, 'never'], | ||
'space-infix-ops': 2, | ||
'space-unary-ops': 2, | ||
'spaced-comment': [2, 'always', {markers: ['!']}], | ||
|
||
// ES2015 | ||
'arrow-parens': [2, 'always'], | ||
'arrow-spacing': [2, {before: true, after: true}], | ||
'constructor-super': 2, | ||
'generator-star-spacing': [2, 'both'], | ||
'no-class-assign': 2, | ||
'no-const-assign': 2, | ||
'no-dupe-class-members': 2, | ||
'no-new-symbol': 2, | ||
'no-this-before-super': 2, | ||
'no-useless-constructor': 2, | ||
'template-curly-spacing': 2, | ||
'yield-star-spacing': [2, 'both'] | ||
} | ||
} |
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,6 @@ | ||
data | ||
log | ||
node_modules | ||
|
||
# Built Assets | ||
src/public/index.css |
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,21 @@ | ||
MIT License | ||
|
||
Copyright (c) 2017 Todd H. Gardner | ||
|
||
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,65 @@ | ||
# getRANTR | ||
|
||
Social connections are overrated-they only lead to trouble, pain, and lawsuits. Modern social networks have given rise to trolls, fake news, and mansplaining. | ||
|
||
Introducing getRANTR, the revolutionary anti-social distributed network. getRANTR gives you all the obsessive status updating of a social network, with non of the misunderstandings and hurt feelings. With getRANTR, no one can see you RANT. | ||
|
||
## Getting Started | ||
|
||
getRANTR is a distributed network. This means you download the code and run it yourself! No more annoying "public websites" or "cloud infrastructure". getRANTR includes all the fun of running your own technology stack. | ||
|
||
### Software Dependencies | ||
|
||
getRANTR is built on NodeJS. If you don't have it already, you can download the latest runtime from the [NodeJS website](https://nodejs.org/en/). For best results, we recommend using version **4.6.0 or higher**. | ||
|
||
You may also need the following tools to enhance or debug getRANTR: | ||
|
||
- [Atom](https://atom.io/) or another JavaScript-aware text editor | ||
- [Chrome](https://www.google.com/chrome/) web browser | ||
- [Charles](https://www.charlesproxy.com/) or [Fiddler](http://www.telerik.com/fiddler) web proxy | ||
|
||
### Installation | ||
|
||
getRANTR uses [gulp](http://gulpjs.com/) to handle installation and build automation. You'll want to have it installed globally in your **Node** packages. You'll also need to install all the local dependencies, **in the same directory as getRANTR** for running getRANTR: | ||
|
||
``` | ||
npm install gulp --global | ||
npm install | ||
``` | ||
|
||
### Running getRANTR | ||
|
||
After setting everything up and installing the dependencies, you can run getRANTR by: | ||
|
||
``` | ||
npm start | ||
``` | ||
|
||
This will run getRANTR at `http://www.getRANTR.com:9000/` and will setup to automatically reload if any of the source files are changed. | ||
|
||
### Repository Structure | ||
|
||
``` | ||
/build Automation and build tasks | ||
/data Data location for getRANTR users | ||
/exercises Guides and help for workshop exercises | ||
/node_modules There be dragons here | ||
/src Source code | ||
/controllers Server API actions | ||
/public Client-side application (this is probably what you are looking for) | ||
/test Source code tests | ||
``` | ||
|
||
### Impersonating Users | ||
|
||
There are three example users loaded into the system. You can impersonate them with the following commands, after closing the node session (`control` and `C` on Mac): | ||
|
||
``` | ||
node import 1 # Will impersonate Todd's default account | ||
node import 2 # Will impersonate the Keystone user account | ||
node import 3 # Will impersonate Todd's alt account | ||
``` | ||
|
||
Todd's default account is loaded automatically when you install. | ||
|
||
Happy Ranting! |
Oops, something went wrong.