Skip to content

gerardvanengelen/arjs-webpack

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

93 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

⑇ ARJS webpack v5 Boilerplate

License: MIT

A static website boilerplate for ThreeJS + ARJS projects managed via Webpack5.

IMG_0421

Demo

Marker-based demo

Open this live demo and show this hiro marker to the camera!

NFT-based (image-based) demo

Open this live demo and show this pinball image to the camera!

You can also checkout this simulated-image version. (might need a page refresh, still a bug to fix there..)

Build on the shoulders of giants

Thanks to Tania Rascia. I reused her Webpack5 boilerplate as a base for this code.

Thanks to ARJS team for their amazing Web AR plugin.

Thanks to ThreeJS team for bringing 3D magic on the web.

Installation

Clone this repo and yarn install.

yarn install

Usage

Development server

yarn start

Marker-based version

You can view the development server at localhost:8080 and use the hiro marker.

Or you can access a marker simulation mode from http://localhost:8080/?mode=simulation.

NTF-based version ⚠️ down! work in progress..

You can view the development server at localhost:8080/?type=nft and use the pinball image.

Or you can access a image simulation mode from http://localhost:8080/?mode=simulation&type=nft.

Test you app with ngrok

Keep the development server opened, open a new terminal tab. Install ngrok and run:

ngrok http 8080 -host-header="localhost:8080"

Production build

yarn build

Deplot to Github pages

Run this command:

yarn deploy

And setup Github pages on your repo:

  • Source: gh-pages branch
  • Folder root.

Features

Dependencies

ThreeJS and ARJS through external links

webpack

Babel

Loaders

Plugins

Author

License

This project is open source and available under the MIT License.

About

A static website boilerplate for ThreeJS + ARJS projects managed via Webpack5.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 87.0%
  • HTML 8.9%
  • SCSS 4.1%