Skip to content

Latest commit

 

History

History
61 lines (42 loc) · 1.66 KB

README.md

File metadata and controls

61 lines (42 loc) · 1.66 KB

stuff below doesnt apply to this fork

Babylon + Next.js Starter Template

This is a production ready mono-repository setup for Babylon.js using Next.js server side rendering.

It is suitable for small projects, and scales to large apps without suffering performance or ease of use.

For more details, please read this guide on how to optimize your Babylon + Next.js production build for SEO and Blazing Fast Page Load Speed.

ui

Key Features:

  1. SEO Friendly
  2. Load Fast to achieve “A” Grade Page Speed score
  3. Async Load Babylon.js to improve UX (user experience)
  4. Code Splitting with Tree Shaking to reduce bundle size
  5. An option to write in pure Javascript or Typescript (or mixing both)
  6. Intuitive developer experience with HMR (Hot Module Reload)
  7. Jest Test working setup
  8. Modular Architecture for a flexible, maintainable and scalable app
  9. Production ready with detailed bundle analyzer.

Installation & Use

This is a platform-agnostic monorepository minimum setup boilerplate.

It has been tested and works with Node.js v12.22.1.

The setup uses Yarn Workspaces to easily scale to different clients (React Native for iOS, Android, Electron) or server (Node.js).

This way, you can maximize code reuse between platforms to enforce best programming practices.

  1. Install packages
yarn
  1. Run the app
yarn dev
  1. Run Tests
yarn test
  1. Build production bundle
yarn build
  1. Run Production build locally
yarn start