https://github.com/marksteve/openbar
OpenBar is a versatile, open-source chat bar you can put almost anywhere. No server required.
https://github.com/marksteve/openbar
Last synced: 5 months ago
JSON representation
OpenBar is a versatile, open-source chat bar you can put almost anywhere. No server required.
- Host: GitHub
- URL: https://github.com/marksteve/openbar
- Owner: marksteve
- Created: 2015-01-23T00:39:42.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2015-10-15T16:32:45.000Z (over 10 years ago)
- Last Synced: 2025-02-12T13:18:03.576Z (over 1 year ago)
- Language: JavaScript
- Homepage: https://ss15-incorgito.divshot.io/
- Size: 917 KB
- Stars: 4
- Watchers: 3
- Forks: 0
- Open Issues: 9
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# OpenBar
OpenBar is a versatile, open-source chat bar you can put almost anywhere.
No server required.
## Compatibility
Tested in Google Chrome & Firefox.
## Setup
### Get dependencies
```bash
npm install
```
### Configure
Copy `conf-tmpl.js` into `conf.js` and fill up your own configuration values.
```js
module.exports = {
BASE_URL: "", // No trailing slash
FIREBASE_URL: "",
TRANSLOADIT_KEY: "", // WARNING: Your key is exposed. Needs a server-side component to hide this.
IFRAMELY_KEY: ""
};
```
### Firebase Rules
Put this in your rules section of your Firebase configuration.
```json
{
"rules": {
".write": false,
".read": false,
"bars": {
"$bar_id": {
// Write only, no updates.
".write": "!data.exists()",
".read": true,
"messages": {
"$message_id": {
".write": "!data.exists()"
}
},
"users": {
"$user_id": {
".write": "auth.uid == $user_id"
}
}
}
}
}
}
```
### Build
```bash
./build
```