Giter Club home page Giter Club logo

aframe-astro-template's Introduction

AFRAME Custom Template with Astro

This repository provides a custom AFRAME template that utilizes Astro for building WebXR experiences.

Getting Started

There are two ways to get started with this template:

Clone the Repository:

git clone https://github.com/samu01tech/aframe-astro-template.git

Use the GitHub Template:

Click on the "Use this template" button on the GitHub repository homepage. This will create a new repository based on this template in your GitHub account.

Project Structure

This template follows a basic Astro project structure:

src/: Contains all your Astro components and pages.
public/: Houses static assets like images, models, and sounds.

Using Fragments

Astro components allow you to define fragments for specific sections of your HTML. This template utilizes two fragments:

<Fragment slot="head">: This fragment is placed within the tag of your HTML and is ideal for including scripts, styles, and other metadata.

<Fragment slot="assets">: This fragment goes inside the tag and is suitable for adding assets like 3D models or textures directly into your scene.

See the src/pages/index.astro file for an example of how these fragments are used.

bun astro dev

This will launch the development server at http://localhost:4321 by default.

Additional Notes

This is a basic template to get you started with AFRAME and Astro. You can customize it further by adding your own Astro components and A-Frame elements.

Refer to the official Astro documentation https://astro.build/ for more details on Astro components and functionalities.

The AFRAME documentation https://aframe.io/ provides a comprehensive guide on building WebXR experiences using A-Frame.

aframe-astro-template's People

Contributors

samu01tech avatar

Watchers

 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.