Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| notes:p5-editor-fork [2026/11/29 16:19] – Add p5-editor-fork page sam | notes:p5-editor-fork [2026/11/29 18:56] (current) – tweak sam | ||
|---|---|---|---|
| Line 4: | Line 4: | ||
| ===== Development ===== | ===== Development ===== | ||
| + | |||
| + | This [[https:// | ||
| + | |||
| + | If this is the first time starting the container, it is necessary to copy '' | ||
| + | At a minimum, the required fields are: | ||
| + | * '' | ||
| + | * '' | ||
| + | * This can be found by adding the editor as a GitLab Application. | ||
| + | * The callback URL (for development) is '' | ||
| + | * The '' | ||
| + | * '' | ||
| + | * This value can also be found once a GitLab application has been registered. | ||
| To start the web server and the database: | To start the web server and the database: | ||
| < | < | ||
| - | $ docker-compose -f docker-compose-development.yml up | + | $ docker compose -f docker-compose-development.yml up |
| </ | </ | ||
| + | |||
| + | When you're done, run the following to shut down the services: | ||
| + | < | ||
| + | $ docker compose -f docker-compose-development.yml down | ||
| + | </ | ||
| + | |||
| + | ==== Removing the Database Volume ==== | ||
| + | |||
| + | The docker compose configuration defines a named volume, '' | ||
| + | To drop this database, you can delete this persistent volume: | ||
| + | < | ||
| + | $ docker volume rm p5-editor_dbdata | ||
| + | </ | ||
| + | |||
| + | ===== Adding a Course Edition ===== | ||
| + | |||
| + | There are some useful scripts which add course editions, assignments, | ||
| + | For example, to add a new course edition, you could run: | ||
| + | < | ||
| + | $ ./ | ||
| + | --name " | ||
| + | --password 1234 \ | ||
| + | --project-name-template " | ||
| + | </ | ||
| + | |||
| + | The '' | ||
| + | In the case of the above example, the gitlab repository URL was '' | ||
| + | The string '' | ||
| + | |||
| + | ===== Adding an Assignment ===== | ||
| + | |||
| + | Example: | ||
| + | < | ||
| + | $ ./ | ||
| + | --name "Test Assignment" | ||
| + | --urlName " | ||
| + | --dueDate 2026-11-30 \ | ||
| + | --edition test-edition | ||
| + | </ | ||
| + | |||
| + | ===== TODO ===== | ||
| + | * Update dependencies to avoid passing '' | ||