FuelDB is an open source realtime database.
It provides realtime data to any connected client using sockets and websockets.


Increasing the Speed of Light

FuelDB is at the new edge of web technology implementing the websocket specification. The subscription management can process a huge amount of data without any loss

Download

Secure

Server can be configured to use SSL over HTTP/WS protocol. This is totally standard and only requires a trusted certificate. It also provides a secure authentication layer

Tutorials

Real-Time Data

With FuelDB you don't have to request anything, the data automatically comes to you. The main concept is to push the data from the server to every subscribed client.

Reference




Download


To download FuelDB, visit this section and find the version you want to use.

Install


Make sure you have installed NodeJS from the official website

In the root folder, use this command:

npm install

This command download and install all the dependencies required to use FuelDB.

Configuration


Edit the config/config.json file.

{
  "hosts": [
	{
      "type":"ws", // Use Websockets and HTTP Protocol (REST) you can also use "socket"
	  "ssl":false, 
	  "host":"127.0.0.1", // "0.0.0.0" or "127.0.0.1" if you want to use it locally
	  "port": 8101 // Listening port
	},
	{
      "type":"ws",
	  "ssl":true, // Use HTTPS and WSS protocol
	  "host":"127.0.0.1",
	  "port": 8102,
	  "key":"conf/key.pem", // Private key used to generate the certificate file
	  "cert":"conf/key-cert.pem" // Certificate file
	}
  ]
}

Other parameters are not currently used.

You can add users or change their passwords using the following command.

node bin/manage-password {username} {password}

If the user already exists, it only changes his password

Run


Start the database with this command

npm start

If you want to make it run in background

nohup npm start &

You can check for the log file in nohup.out

The server is up and you are now ready to start tutorials or read the full documentation

Go further


FuelDB also provides a lightweight web monitoring interface with a stress test tool that gives you real time CPU Load, Connections and IOPS
You can access it through http://localhost:8101/api/monitor.html