OpenFire Server
Server for the OpenFire Project
What is OpenFire?
OpenFire is an Open Source Database & Backend Engine. Use our JavaScript SDK to connect your web services directly to the server, and interact with your objects immediatly and realtime!
Getting started
This guide is for developers who want to get started immediatly.
Install OpenFire
npm install -g openfire
If that doesn't work, try append sudo to run installation as root.
Start hacking! This command will launch a in-memory server, with zero dependencies. Keep in mind that when you close this server the data is gone.
openfire hack
It's that simple :) Now let's put our db to work, shall we? The following example is a realtime visitor-counter, and demonstrates various functions available in the OpenFire SDK.
Create a file with a .html
extension, and paste the following code.
Then just open the file on a few tabs, maybe even on your mobile device and watch the counter jump!
Visitor Counter Welcome! There are currently People watching this site!
As you can see it's not that hard to create fairly complex dynamic web apps with OpenFire. Currently OpenFire is in beta, and I'll try to make better documentation in the next week!
Testing
watches for file changes and reruns tests each time
$ grunt watch
runs spec tests
$ grunt test
produces coverage report (needs explicit piping)
$ grunt cov
License
GPLv2