If you are looking for the Trainer Demo Deploy site, please visit our main site: https://aka.ms/trainer-demo-deploy. You'll find all the latest deployments there.
This website is built using Docusaurus 2, a modern static website generator.
$ npm ci
$ npm run start
Dev server (hot reload):
$ docker compose up --build dev
Then open:
http://localhost:3000/trainer-demo-deploy/
Dev server (hot reload):
$ docker compose up --build dev
Then open:
http://localhost:3000/trainer-demo-deploy/
If you use VS Code, you can develop in a preconfigured container:
- Install the Dev Containers extension.
- Run Dev Containers: Reopen in Container.
- The container runs
npm cion first create. Then start the dev server:
$ npm run start
This command starts a local development server and opens up a browser window. Most changes are reflected live without having to restart the server.
Note: this site is configured for GitHub Pages with a base URL of /trainer-demo-deploy/, so the local URL is typically:
http://localhost:3000/trainer-demo-deploy/
$ npm run build
This command generates static content into the build directory and can be served using any static contents hosting service.
$ npm run serve
Then open:
http://localhost:3000/trainer-demo-deploy/
$ docker compose --profile prod up --build prod
Then open:
http://localhost:8080/trainer-demo-deploy/
$ docker compose --profile prod up --build prod
Then open:
http://localhost:8080/trainer-demo-deploy/
$ npm test
This repo deploys to GitHub Pages via GitHub Actions (see .github/workflows/test-deploy.yml).