networked-aframe Firebase network adapter
npm install naf-firebase-adapterNetwork adapter for networked-aframe that uses Firebase as a backend.
```
git clone https://github.com/networked-aframe/naf-firebase-adapter
cd naf-firebase-adapter
npm install # or use yarnSet firebase credentials in example/index.html
npm start
With the server running, browse the example at http://localhost:8080. Open another browser tab and point it to the same URL to see the other client.
Firebase is a "serverless" network solution provided by Google. In NAF's case it can be used to establish connections between clients in a peer-to-peer fashion, without having to host a signalling (connection) server.
Steps to setup Firebase:
1. Sign up for a Firebase account
2. Create a new Firebase project
3. Go to Database -> Rules and change them to the following (warning: not safe for production, just developing)
`javascript`
{
"rules": {
".read": true,
".write": true
}
}
4. Click publish
5. Go back to the project overview
6. Click "Add Firebase to your web app"
7. Copy the credentials into your HTML page
After setting up firebase include and configure naf-firebase-adapter.
`html