Skip to content

thegymnasium/gym-eleventy

Repository files navigation

GYM 11ty

Netlify Status

Prerequisites

Installation

Check to see which version(s) of node you've got installed:

nvm list

If the list doesn't include the version referenced in .nvmrc, be sure to install it:

nvm install 22.15

Switch to the referenced version:

nvm use

Install dependencies:

npm install

Getting Started

Once installed, there are two ways to get this running, depending on your needs.

1. Default

Just run:

npm run dev

The server will be available at http://localhost:4040.

2. Running in Parallel with Open edX Tutor

This approach uses netlify-cli, which has the advantage of serving up relevant CORS headers, redirects, etc. This useful for running locally in parallel with other applications (such as the Tutor distribution of Open edX).

There are two modes of running a parallel 11ty instance along with Tutor: parallel:dev and parallel:local.

parallel:local

An emulation of the production tutor. All MFEs run without ports set.

npm run parallel:local

When you start tutor, be sure to use one of the following:

  • tutor local start
  • tutor local start -d (detached)
  • tutor local launch -I

tutor:dev

For local development only. The MFEs are set to run with their ports.

npm run parallel:dev

When you start tutor, be sure to use one of the following:

  • tutor dev start
  • tutor dev start -d (detached)
  • tutor dev launch -I

Continued...

In either case, the server will open a browser automatically to http://localhost:8888.

Note: Prior to starting up Tutor, you may need to add 127.0.0.1 edly.io to your /etc/hosts file. Once that's done, you should be able to access http://edly.io:8888.

This static site generates a JSON feed at /api/config.json, which is consumed by the various Open edX components - the theme, the MFEs, and our customized MFE frontend components.

References

Open EdX

Nunjucks

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Contributors 4

  •  
  •  
  •  
  •