Skip to content

Latest commit

 

History

History

modern-ts

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

Backend demo (modern + TypeScript)

This package shows how you could install box2d-wasm into a Node.js 14.8.0+ application, using modern techniques (ES imports, top-level await), running TypeScript via ts-node, configured in the style of https://github.com/dandv/typescript-modern-project

Setup

Grab yourself a copy of this repository, install the demo's dependencies with npm:

git clone https://github.com/Birch-san/box2d-wasm.git
cd box2d-wasm/demo/backend/modern-ts
npm ci

Run

Run the program:

npm start