Coder Social home page Coder Social logo

urish / aframe-live-demo Goto Github PK

View Code? Open in Web Editor NEW

This project forked from rvdleun/aframe-live-demo

0.0 3.0 0.0 0 B

This is a simple repository containing some files to give a live AFrame presentation, using Firebase.

JavaScript 70.40% HTML 29.60%

aframe-live-demo's Introduction

AFrame Live Demo

Introduction

This is a simple repository containing some files to give a live AFrame presentation, using Firebase. You will be able to code live on your computer, and your audience will see the results live on their own devices.

For an example, you can watch my presentation at Fronteers (starting around 34:45)

Installation

In the configuration directory, copy the contents of editor-conf.dist.js to editor-conf.js and firebase-conf.dist.js to firebase-conf.js.

Firebase

  1. Create a new instance at Firebase
  2. Click Add Firebase to your web app. Copy the contents of the config variable in the firebase-conf.js file at the indicated spot.
  3. Go to Database -> Rules and change the rules to...
{
  "rules": {
    ".read": "true",
    ".write": "true"
  }
}

PLEASE NOTE: These rules will give anyone read and write access to all data in your Firebase database. For now, we're assuming that your audience will play nice and won't muck with anything, but I will be adding some additional instructions on how to properly secure your database in the future.

Editor

In the editor.conf.js file, you can add templates that will be added as buttons to the editor page to quickly copy/paste code into the editor.

The editor itself makes use of Ace for an easy-to-use code editor.

Instructions

  • Host these files online, possibly remove the editor.html page online to avoid any tampering, and send your audience to the index.html page.
  • You can use the code editor on the editor.html page online or on your local computer to change the scene online.
  • Wow and inspire your audience with how easy it is to build WebVR using AFrame.

Todo

  • Instructions on how to secure Firebase from any editing.

aframe-live-demo's People

Contributors

rvdleun avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.