Skip to content

Commit

Permalink
The same thing we do every night, Pinky - try to take over the world!
Browse files Browse the repository at this point in the history
  • Loading branch information
ErickPetru committed Mar 25, 2017
0 parents commit 6149191
Show file tree
Hide file tree
Showing 30 changed files with 2,322 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# http://editorconfig.org
root = true

[*]
indent_style = space
indent_size = 2
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true

[*.md]
trim_trailing_whitespace = false
31 changes: 31 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# Logs
logs
*.log

# Runtime data
pids
*.pid
*.seed

# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov

# Coverage directory used by tools like istanbul
coverage

# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
.grunt

# Compiled binary addons (http://nodejs.org/api/addons.html)
build/Release

# Dependency directory
# Commenting this out is preferred by some people, see
# https://www.npmjs.org/doc/misc/npm-faq.html#should-i-check-my-node_modules-folder-into-git-
node_modules

# Users Environment Variables
.lock-wscript

lib/
data/
29 changes: 29 additions & 0 deletions .jshintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
{
"node": true,
"esnext": true,
"bitwise": true,
"camelcase": true,
"curly": true,
"eqeqeq": true,
"immed": true,
"indent": 2,
"latedef": "nofunc",
"newcap": false,
"noarg": true,
"quotmark": "single",
"regexp": true,
"undef": true,
"unused": false,
"strict": false,
"trailing": true,
"smarttabs": true,
"white": false,
"globals": {
"it": true,
"describe": true,
"before": true,
"beforeEach": true,
"after": true,
"afterEach": true
}
}
30 changes: 30 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# Logs
logs
*.log

# Runtime data
pids
*.pid
*.seed

# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov

# Coverage directory used by tools like istanbul
coverage

# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
.grunt

# Compiled binary addons (http://nodejs.org/api/addons.html)
build/Release

# Dependency directory
# Commenting this out is preferred by some people, see
# https://www.npmjs.org/doc/misc/npm-faq.html#should-i-check-my-node_modules-folder-into-git-
node_modules

# Users Environment Variables
.lock-wscript

data/
22 changes: 22 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
The MIT License (MIT)

Copyright (c) 2015 Feathers

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.

42 changes: 42 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# vue-feathers-chat

> A sample realtime chat made with Vue and Feathers
## About

This project is a sample public chat, visually almost like a WhatsApp clone, which uses [Vue](https://vuejs.org) for the _frontend_ and [Feathers](http://feathersjs.com/) for the _backend_. The communication between server and client happens with [Socket.IO](https://socket.io/). The messages are saved in JSON format with the [NeDB](https://www.mongodb.com/blog/post/nedb-a-lightweight-javascript-database-using) database, a lightweight _MongoDB_ inspired database, simple and good for small samples and prototyping.

## Quick Start

Be up and running with four easy steps.

1. Download this repository wherever you want
2. Ensure [NodeJS](https://nodejs.org/) and [npm](https://www.npmjs.com/) are installed
2. Open the _terminal_ (or _prompt_ on Windows) and install the dependencies

```
cd path/to/vue-feathers-chat
npm install
```
3. Put the app to run on `http://localhost:3030/`:
```
npm start
```
## Help
For bug reports or even questions, fill up an **Issue**.
## Changelog
__1.0.0__
- Initial release
## License
Copyright (c) 2017
Licensed under the [MIT license](LICENSE).
12 changes: 12 additions & 0 deletions config/default.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"host": "localhost",
"port": 3030,
"nedb": "../data/",
"public": "../public/",
"auth": {
"token": {
"secret": "TJHhwIRNcQbOL6JjQmDl4mAI+j8C3JrfwGWQJLTePqlvYfgXuITmXDyhOkJkgNdIxWM5N4TboHIeVPzS/zUJdw=="
},
"local": {}
}
}
12 changes: 12 additions & 0 deletions config/production.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"host": "vue-feathers-chat-app.feathersjs.com",
"port": 80,
"nedb": "NEDB_BASE_PATH",
"public": "../public/",
"auth": {
"token": {
"secret": "FEATHERS_AUTH_SECRET"
},
"local": {}
}
}
42 changes: 42 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
{
"name": "vue-feathers-chat",
"description": "A sample realtime chat made with Vue and Feathers",
"version": "1.0.0",
"main": "src/",
"keywords": [
"chat", "vue", "feathers", "socket.io", "nedb"
],
"license": "MIT",
"author": "Erick Eduardo Petrucelli <[email protected]>",
"engines": {
"node": ">= 0.12.0"
},
"scripts": {
"test": "npm run jshint && npm run mocha",
"jshint": "jshint src/. test/. --config",
"start": "node src/",
"mocha": "mocha test/ --recursive"
},
"dependencies": {
"body-parser": "^1.17.1",
"compression": "^1.6.2",
"cors": "^2.8.1",
"feathers": "^2.1.1",
"feathers-authentication": "^0.7.12",
"feathers-configuration": "^0.3.3",
"feathers-errors": "^2.6.2",
"feathers-hooks": "^1.8.1",
"feathers-nedb": "^2.6.1",
"feathers-rest": "^1.7.1",
"feathers-socketio": "^1.5.2",
"nedb": "^1.8.0",
"passport": "^0.3.2",
"serve-favicon": "^2.4.1",
"winston": "^2.3.1"
},
"devDependencies": {
"jshint": "^2.9.4",
"mocha": "^3.2.0",
"request": "^2.81.0"
}
}
Binary file added public/back.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 6149191

Please sign in to comment.