# feathers-chat-app-gleb

> Example real time chat app with Feathers

Latest version **1.0.0** (published 2016-06-30) · MIT license · 0 weekly downloads

## Install

```sh
npm install feathers-chat-app-gleb
pnpm add feathers-chat-app-gleb
yarn add feathers-chat-app-gleb
bun add feathers-chat-app-gleb
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2016-06-30 |
| First published | 2016-06-30 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | 6 |
| Dependencies | 15 |
| Known vulnerabilities | 0 (+2 in 2 direct dependencies) |
| Install scripts | no |
| Maintainers | bahmutov |
| Keywords | feathers |

## Links

- npm: https://www.npmjs.com/package/feathers-chat-app-gleb
- Homepage: https://github.com/bahmutov/feathers-chat-app
- npm.io page: https://npm.io/package/feathers-chat-app-gleb

## Dependencies (15)

- [cors](https://npm.io/package/cors.md) ^2.7.1
- [nedb](https://npm.io/package/nedb.md) ^1.8.0
- [winston](https://npm.io/package/winston.md) ^2.2.0
- [feathers](https://npm.io/package/feathers.md) ^2.0.1
- [passport](https://npm.io/package/passport.md) ^0.3.2
- [body-parser](https://npm.io/package/body-parser.md) ^1.15.1
- [compression](https://npm.io/package/compression.md) ^1.6.2
- [feathers-nedb](https://npm.io/package/feathers-nedb.md) ^2.3.0
- [feathers-rest](https://npm.io/package/feathers-rest.md) ^1.4.2
- [serve-favicon](https://npm.io/package/serve-favicon.md) ^2.3.0
- [feathers-hooks](https://npm.io/package/feathers-hooks.md) ^1.5.4
- [feathers-errors](https://npm.io/package/feathers-errors.md) ^2.2.0
- [feathers-nedb-dump](https://npm.io/package/feathers-nedb-dump.md) ^1.0.1
- [feathers-configuration](https://npm.io/package/feathers-configuration.md) ^0.2.3
- [feathers-authentication](https://npm.io/package/feathers-authentication.md) ^0.7.8

## Alternatives

- [@fortawesome/react-fontawesome](https://npm.io/package/@fortawesome/react-fontawesome.md) — 2.2M weekly downloads
- [roboto-fontface](https://npm.io/package/roboto-fontface.md) — 196.0K weekly downloads
- [@react-native-vector-icons/common](https://npm.io/package/@react-native-vector-icons/common.md) — 150.4K weekly downloads
- [@procore/core-icons](https://npm.io/package/@procore/core-icons.md) — 4.6K weekly downloads
- [@react-md/material-icons](https://npm.io/package/@react-md/material-icons.md) — 1.6K weekly downloads

## Recent versions

- 1.0.0 (latest) — 2016-06-30

## README

# feathers-chat-app

> Example real time chat app with Feathers

## About

Example real time chat app with Vue.js frontend, based on tutorial
[Building Your First Feathers App](http://docs.feathersjs.com/getting-started/readme.html)

Read my blog post
[Immutable deploys with data and testing](https://glebbahmutov.com/blog/immutable-deploys-with-data-and-testing/)
for differences from the original Feathers Chat app example.

This project uses [Feathers](http://feathersjs.com). An open source web framework for building modern real-time applications.

## Getting Started

Getting up and running is as easy as 1, 2, 3.

1. Make sure you have [NodeJS](https://nodejs.org/) and [npm](https://www.npmjs.com/) installed.
2. Install your dependencies

    ```
    cd path/to/feathers-chat-app; npm install
    ```

3. Start your app

    ```
    npm start
    ```

## Testing

Simply run `npm test` and all your tests in the `test/` directory will be run.

## Scaffolding

Feathers has a powerful command line interface. Here are a few things it can do:

```
$ npm install -g feathers-cli             # Install Feathers CLI

$ feathers generate service               # Generate a new Service
$ feathers generate hook                  # Generate a new Hook
$ feathers generate model                 # Generate a new Model
$ feathers help                           # Show all commands
```

## Help

For more information on all the things you can do with Feathers visit [docs.feathersjs.com](http://docs.feathersjs.com).

## Changelog

__0.1.0__

- Initial release

## License

Copyright (c) 2016

Licensed under the [MIT license](LICENSE).

## Deployment

To deploy to Zeit, need the database files to be in `/tmp` folder.
Also, Zeit does not support socket.io, switched to using Feathers Rest
client.

## Dumping and setting database

Each service stores its data in plain file using NeDB. To move / clone / copy
database between deployments, I am using my middleware
[feathers-nedb-dump](https://github.com/bahmutov/feathers-nedb-dump).

To dump `messages` database to local file, edit file
[get-messages.sh](get-messages.sh) and run it.

```text
./get-messages.sh
```

To set `messages` database from local file, run
[set-messages.sh](set-messages.sh).

Or use the combined script [copy-data.sh](copy-data.sh)

## Building single bundle

In order to just run the server we can build single bundle out of all files
using [node-browserify](https://github.com/substack/node-browserify).
Run `npm run build` and then get single file `out.js`. To run `node out.js`
and it does not execute any require calls. See the [build.js](build.js) file.

---
_Source: https://npm.io/package/feathers-chat-app-gleb · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
