/simplear-editor

Augmented Reality Authoring Tool

Primary LanguageJavaScriptMIT LicenseMIT

SimpleAR Editor

SimpleAR Editor is an Augmented Reality Authoring Tool using Google Blockly. With visual programming you can create augmented reality apps.

Screenshot of SimpleAR Editor

Installing / Getting started

  1. Clone this repository
  2. Install NPM
  3. Run the following commands:
npm install
npm start

This will start an Angular client server on localhost:4200, open your browser in this URL.

Firebase configuration

Create a new Firebase app on the Firebase console with your Google Account by clicking on Add project and typing a name for your app.

After that click on Add Firebase to your web app, and replace the config info (available under Authentication tab, then click on Web Setup on the upper right corner) on the environment.firebase fields into src/environments/environment.ts, do the same to src/environments/environment.prod.ts.

Go to Database (Enable Realtime Database) > Rules, and enable anonymous access by copying the following on the text box:

{
  "rules": {
    ".read": true,
    ".write": true
  }
}

Poly API configuration

Follow the Poly API Guide to get a Poly API Key, then replace the API key on the environment.poly.apiKey into src/environments/environment.ts, do the same to src/environments/environment.prod.ts.

Developing

After following the steps from Getting started, do the next steps:

  1. Install Angular CLI
npm install -g @angular/cli
  1. To prevent your keys from being exposed on Github, use the following commands:
git update-index --assume-unchanged src/environments/environment.ts
git update-index --assume-unchanged src/environments/environment.prod.ts

Licensing

The code in this project is licensed under MIT License.