https://github.com/fourkitchens/aframe-boilerplate
Very simple take on how A-Frame applications should be structured. 👓 😲
https://github.com/fourkitchens/aframe-boilerplate
aframe react webvr
Last synced: about 1 year ago
JSON representation
Very simple take on how A-Frame applications should be structured. 👓 😲
- Host: GitHub
- URL: https://github.com/fourkitchens/aframe-boilerplate
- Owner: fourkitchens
- License: gpl-3.0
- Created: 2017-05-20T19:54:20.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2017-08-20T16:01:35.000Z (almost 9 years ago)
- Last Synced: 2025-03-27T18:22:25.007Z (about 1 year ago)
- Topics: aframe, react, webvr
- Language: JavaScript
- Homepage:
- Size: 4.06 MB
- Stars: 8
- Watchers: 2
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# A-Frame Boilerplate
This repository contains a boilerplate A-Frame project. It contains example implementations of [A-Frame](https://aframe.io/), [React](https://facebook.github.io/react/), and an [A-Frame-React](https://github.com/ngokevin/aframe-react) library, which exposes A-Frame components as a React component.
## Requirements
* Node.js (see .nvmrc for correct version).
* Yarn
## Setup
* Clone this repository.
* In this repository's root folder, run `yarn`.
* Run `yarn start` to start the WebVR app dev server.
## Coding standards
This project uses Eslint, configured to use AirBnb's standard set. To lint code in this project, run `yarn lint`. This project also uses Prettier, which will format your code according to the Prettier standard. As enforced by Husky, you cannot commit code that does not fit the defined standard.
## Developing in Google Daydream
The development server in this project is set up so that it can be accessed by any device on your local network. That's why you access your development instance from your local IP instead of just `localhost`.
Before you get started, navigate to `chrome://flags` in Chrome on your phone. Then, enable the WebVR and Gamepad API flags, and restart Chrome.
After doing this, start your dev server (`yarn start`) and navigate to the non-local IP address given in the output.