Local Installation and Starter Template

We recommend following the Babylon + Vite guide to set-up your Babylon.js project.

Once your project structure is up and running, install Anu.js by building it locally in a different file directory and linking it to your project.

Terminal window
npm install @jpmorganchase/anu

Then import the anu name space

import * as anu from '@jpmorganchase/anu';

You can now call Anu methods as such

//shape, name, options, data, scene
anu.create('box', 'myBox');

Or Use The Anu-Starter Template

You can also install the anu starter template using these npm commands or downloading the template on this page.

Terminal window
npx @jpmorganchase/anu-starter@latest my_project
Terminal window
cd my_project
npm install
npm run dev

See and modify main.js to get started.

Powered by WebContainers
Files
Preparing Environment
  • Installing dependencies
  • Starting http server