Skip to content

materialscloud-org/discover-mcxd-frontend

Repository files navigation

Unified MC3D and MC2D React frontend

This repository contains:

  • mc3d - the MC3D React app;
  • mc2d - the MC2D React app; and
  • shared - a package that contains the shared code. Is imported directly from source in the apps, so does not need to be built.

npm workspaces are used to manage this project, so one should just directly run at the repo root:

# Install all dependencies
npm install

# Develop either app
npm run dev:mc3d
npm run dev:mc2d

# Build for production (prod backend)
npm run build:mc3d
npm run build:mc2d

# Build for Cloudflare (picks prod/dev backend based on branch)
npm run build:cf:mc3d
npm run build:cf:mc2d

# Preview the built distribution
npm run preview:mc3d
npm run preview:mc2d

Deployment

Cloudflare is used to automatically deploy:

And any other branch will be deployed as (note that symbols like _ and / get replaced by -):

  • e.g. branch_name/1 -> https://branch-name-1.discover-mcxd.pages.dev

About

Unified frontend for MC3D and MC2D

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 5