You can use the Serlo Editor via docker. You can pull the container from
the GitHub Packages.
The container is configured by environment variables. Which you can use are
defined in the file .env
.
- Clone this repository
- Install tools from
.tool-versions
(for example viaasdf
) - Install
docker
anddocker-compose
- Run
yarn
You can use yarn run
to see which scripts you can use in the local
development. The most important ones are:
yarn dev
: Starts the server on http://localhost:3000/ together with a mock of edu-sharing. You can open http://localhost:8100/ in order to open the Serlo Editor via LTI (as edu-sharing will be). You can also test the saving and the embedding with the edu-sharing mock.yarn start:server
: Only starts the Serlo editor (this is needed for tests since the tests need to start the edu-sharing mock by themself).yarn test
: Run all jest tests.yarn e2e
: Run all e2e tests with cypress.yarn lint
: Run all lints (eslint, prettier, ...).yarn format
: Format all source code.