from node:16-alpine
WORKDIR /app
COPY . .
RUN npm i
CMD npm run dev
Entire setup allow at minima :
- static frontend accessible from a single device
optionally :
- offline mode to work flying or during workshops without connectivity (see https://github.com/aframevr/aframe/commit/d56b57071c46599083fe438736132298a58de1af )
- backend to save data (e.g to PIM) see https://git.benetou.fr/utopiah/text-code-xr-engine/issues/40 and https://git.benetou.fr/utopiah/text-code-xr-engine/issues/44
- backend for networking (NAF, see own `Dockerfile` below)
- backend for federation (Immers, see https://github.com/immers-space/immers-app/blob/main/immers-hubs/docker-compose.yml )
- backend for file based shared (WebDAV, see `bfren/nginx-webdav`)
Could be done with docker-compose but ideally rootless (e.g podman) in order to run on a standalone device like the Quest (seems impossible for now, cf https://github.com/termux/termux-packages/issues/10188 ).
Dockerfile for NAF :
```
from node:16-alpine
WORKDIR /app
COPY . .
RUN npm i
CMD npm run dev
```
For now relying this live instance is relying on a frontend hosted on lighttpd (for PmWiki) to static hosting
and for backend
- PmWiki (lighttpd with a PHP container)
backend federation and networking
- https://immers.benetou.fr
- https://naf.benetou.fr
behind a nginx reverse proxy.
Consider also how it could be "just" a component #65 to use with other, existing or brand new, projects.
Consider also how it could be "just" a component https://git.benetou.fr/utopiah/text-code-xr-engine/issues/65 to use with other, existing or brand new, projects.
Consider online environments featuring also backends, e.g Gitpod via its .gitpod.yml file but also since today CodeSandBox via a Dockerfile in .codesandbox/Dockerfile (compose not yet available but planned).
Consider online environments featuring also backends, e.g Gitpod via its [.gitpod.yml file](https://www.gitpod.io/docs/introduction/learn-gitpod/gitpod-yaml) but also [since today CodeSandBox](https://codesandbox.io/post/introducing-docker-support-in-codesandbox) via a Dockerfile in `.codesandbox/Dockerfile` (compose not yet available but planned).
See also https://git.benetou.fr/utopiah/text-code-xr-engine#minimalist-example as a way to get started without hosting or backend needed.
Note that it assumes https://fabien.benetou.fr/pub/home/future_of_text_demo/engine/jxr.js does remain available (which isn't even the case on master) and stable (in terms of interface).
Entire setup allow at minima :
optionally :
d56b57071c
)Dockerfile
below)bfren/nginx-webdav
)Could be done with docker-compose but ideally rootless (e.g podman) in order to run on a standalone device like the Quest (seems impossible for now, cf https://github.com/termux/termux-packages/issues/10188 ).
Dockerfile for NAF :
For now relying this live instance is relying on a frontend hosted on lighttpd (for PmWiki) to static hosting
and for backend
backend federation and networking
behind a nginx reverse proxy.
Provide a cloud-init file to facilitate deployment on most cloud providers.
Consider also how it could be "just" a component #65 to use with other, existing or brand new, projects.
Consider online environments featuring also backends, e.g Gitpod via its .gitpod.yml file but also since today CodeSandBox via a Dockerfile in
.codesandbox/Dockerfile
(compose not yet available but planned).See example as #8 with few scripts.
See https://git.benetou.fr/utopiah/local-metaverse-tooling
See also https://git.benetou.fr/utopiah/text-code-xr-engine#minimalist-example as a way to get started without hosting or backend needed.
Note that it assumes https://fabien.benetou.fr/pub/home/future_of_text_demo/engine/jxr.js does remain available (which isn't even the case on master) and stable (in terms of interface).
See also https://git.benetou.fr/utopiah/text-code-xr-engine/src/branch/minimalist-template/index.html
See also https://git.benetou.fr/utopiah/text-code-xr-engine/src/branch/core-vs-extras