Skip to content

Commit 038d13f

Browse files
committed
Add Tutor Op & Dev Quickstarts
Add pointers to common task instructions Add Tutor MFE dev quickstart Add warning about using ChatGPT for Tutor help Small fixes Apply suggestions from code review Co-authored-by: Taylor Payne <taylor.payne@wgu.edu> Apply suggestions from code review
1 parent e7647af commit 038d13f

5 files changed

Lines changed: 178 additions & 3 deletions

File tree

source/developers/concepts/tutor.rst

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,16 @@ What is Tutor?
77

88
This video, by Edly Academy, explains the basic concepts of Tutor.
99

10+
.. warning::
11+
12+
LLMs, like ChatGPT, generate answers based on patterns in large-scale public content.
13+
Since Open edX and Tutor have relatively small footprints in that data, answers from
14+
these models are often incorrect. We recommend you
15+
only follow instructions about Tutor from pages on https://docs.openedx.org
16+
or https://docs.tutor.edly.io/. For help, search for answers on the `Open edX
17+
Forums`_ and feel free to make your own post if you do not find the answer
18+
you are searching for.
19+
1020
.. youtube:: BzNcrmyFpw4
1121

1222
.. seealso::
@@ -15,6 +25,8 @@ This video, by Edly Academy, explains the basic concepts of Tutor.
1525

1626
:ref:`qs Dev First PR`
1727

28+
.. include:: /links.txt
29+
1830
**Maintenance chart**
1931

2032
+--------------+-------------------------------+----------------+--------------------------------+

source/developers/quickstarts/tutor_quickstart_dev.rst

Lines changed: 85 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
Tutor Quickstart (Developer)
44
#############################
55

6-
.. tags:: site operator, quickstart
6+
.. tags:: developer, quickstart
77

88
.. admonition:: tutor main vs tutor local
99

@@ -14,12 +14,95 @@ Tutor Quickstart (Developer)
1414
instance. See :ref:`Tutor QS (Operator)` if you wish to deploy an Open edX
1515
instance.
1616

17+
Also, it is helpful to first watch the video on the :ref:`Tutor Concept
18+
(Dev)` page before embarking on your Tutor journey.
19+
20+
21+
Tutor was designed to make it easy for everyone to run the latest Open edX
22+
release, either for development or production environments. In this Quickstart
23+
we will walk you through how to set up Tutor Main for development on "master"
24+
(the latest code being developed for the next named release). This Quickstart
25+
walks through the basics of setting up Tutor for edx-platform development. For MFE development, you will want
26+
to continue on to :ref:`Tutor for MFE QS`.
27+
28+
Requirements
29+
*************
30+
31+
* Supported OS: Tutor runs on any 64-bit, UNIX-based OS. It has also been reported to
32+
work on Windows (with `WSL 2
33+
<https://docs.microsoft.com/en-us/windows/wsl/install>`__).
34+
* Architecture: Both AMD64 and ARM64 are supported.
35+
* Required software:
36+
37+
* `Docker <https://docs.docker.com/engine/installation/>`__: v24.0.5+ (with BuildKit 0.11+)
38+
39+
* `Docker Compose <https://docs.docker.com/compose/install/>`__: v2.0.0+ (installed by default with Docker Desktop)
40+
41+
.. warning::
42+
43+
Do not attempt to simply run ``apt-get install docker docker-compose`` on older Ubuntu platforms,
44+
such as 16.04 (Xenial), as you will get older versions of these utilities.
45+
46+
47+
* Hardware:
48+
49+
* Minimum configuration: 4 GB RAM, 2 CPUs, 8 GB disk space
50+
* Recommended configuration: 8 GB RAM, 4 CPUs, 25 GB disk space
51+
52+
.. note::
53+
54+
On Mac OS, by default, containers are allocated 2 GB of RAM, which is not enough.
55+
You should follow `these instructions from the official Docker documentation <https://docs.docker.com/desktop/settings-and-maintenance/settings/#resources>`__
56+
to allocate at least 4-5 GB to the Docker daemon. If the deployment fails because
57+
of insufficient memory during database migrations, check the `relevant section in
58+
the troubleshooting guide <https://docs.tutor.edly.io/troubleshooting.html#migrations-killed>`_.
59+
60+
Set Up Tutor for Development
61+
************************************
62+
63+
64+
#. Fork the `edx-platform GitHub repo
65+
<https://github.com/openedx/edx-platform>`_ and clone it locally. Then run
66+
``git switch master`` to ensure you are on the master branch. If you
67+
already have a fork, first sync it to the current upstream version.
68+
69+
#. Set up a `new virtual environment
70+
<https://docs.python.org/3/tutorial/venv.html>`_ for your Tutor environment
71+
and activate it:
72+
73+
.. code-block:: bash
74+
75+
python -m venv /path/to/new/virtual/environment
76+
source /path/to/new/virtual/environment/bin/activate
77+
78+
#. Follow the instructions to `install Tutor Main <https://docs.tutor.edly.io/tutorials/main.html>`_.
79+
80+
#. Follow the instructions to `have Tutor use your local fork
81+
<https://docs.tutor.edly.io/dev.html#first-time-setup>`_. Continue to follow
82+
the instructions to build the images and launch Tutor using ``tutor dev
83+
launch``.
84+
85+
#. Next, review the `common Tutor tasks
86+
<https://docs.tutor.edly.io/local.html#common-tasks>`_ for commands used to
87+
create superusers, import the "Open edX Demo Course", and set themes.
88+
89+
Congratulations! You are now running Tutor, on the master branch, in dev mode!
90+
91+
See the `Tutor tutorial about working on edx-platform`_ for more details on
92+
what's going on behind the scenes.
93+
1794
.. seealso::
1895

19-
:ref:`Tutor Concept (Operator)`
96+
:ref:`Tutor Concept (Dev)`
2097

2198
:ref:`qs Dev First PR`
2299

100+
`Tutor tutorial about working on edx-platform`_
101+
102+
:ref:`Tutor for MFE QS`
103+
104+
.. _Tutor tutorial about working on edx-platform: https://docs.tutor.edly.io/tutorials/edx-platform.html
105+
23106
**Maintenance chart**
24107

25108
+--------------+-------------------------------+----------------+--------------------------------+
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
.. _Tutor for MFE QS:
2+
3+
Tutor Quickstart (MFE Development)
4+
##################################
5+
6+
.. tags:: developer, quickstart
7+
8+
.. note::
9+
10+
You should go through the :ref:`Tutor QS (Dev)` to set up the basics of Tutor
11+
before moving on to this Quickstart.
12+
13+
#. Review the `Tutor documentation on Tutor plugins <https://docs.tutor.edly.io/plugins/intro.html>`_.
14+
15+
#. `Install the tutor-mfe plugin
16+
<https://github.com/overhangio/tutor-mfe?tab=readme-ov-file#installation>`_.
17+
Follow the "Usage" section to enable the plugin (note this is installed
18+
already in the default Tutor installation).
19+
20+
#. Read the `tutor-mfe documentation on MFE development
21+
<https://github.com/overhangio/tutor-mfe?tab=readme-ov-file#mfe-development>`_
22+
to learn how to run an MFE in development mode and how to mount a local fork.
23+
24+
.. seealso::
25+
26+
:ref:`Tutor Concept (Operator)`
27+
28+
:ref:`Tutor QS (Dev)`
29+
30+
`tutor-mfe plugin <https://github.com/overhangio/tutor-mfe>`_
31+
32+
:ref:`qs Dev First PR`
33+
34+
**Maintenance chart**
35+
36+
+--------------+-------------------------------+----------------+--------------------------------+
37+
| Review Date | Working Group Reviewer | Release |Test situation |
38+
+--------------+-------------------------------+----------------+--------------------------------+
39+
| | | | |
40+
+--------------+-------------------------------+----------------+--------------------------------+

source/site_ops/concepts/tutor.rst

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,16 @@ What is Tutor?
77

88
This video, by Edly Academy, explains the basic concepts of Tutor.
99

10+
.. warning::
11+
12+
LLMs, like ChatGPT, generate answers based on patterns in large-scale public content.
13+
Since Open edX and Tutor have relatively small footprints in that data, answers from
14+
these models are often incorrect. We recommend you
15+
only follow instructions about Tutor from pages on https://docs.openedx.org
16+
or https://docs.tutor.edly.io/. For help, search for answers on the `Open edX
17+
Forums`_ and feel free to make your own post if you do not find the answer
18+
you are searching for.
19+
1020
.. youtube:: BzNcrmyFpw4
1121

1222
.. seealso::

source/site_ops/quickstarts/tutor_quickstart_ops.rst

Lines changed: 31 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,42 @@ Tutor Quickstart (Operator)
1212
``tutor main`` should be used by developers when writing code for the
1313
master/main branches. See :ref:`Tutor QS (Dev)` if you are developing code.
1414

15+
Also, it is helpful to first watch the video on the :ref:`Tutor Concept
16+
(Operator)` page before embarking on your Tutor journey.
17+
18+
19+
.. admonition:: Which version of Tutor to use?
20+
21+
Find out what the latest release of Tutor is, and ensure you are using that
22+
version. The Open edX project only supports one release at a time, so running
23+
an older release will mean you don't have the latest features, bugfixes, and
24+
security fixes.
25+
26+
See the `versioning section of the Tutor docs <https://docs.tutor.edly.io/tutor.html#versioning>`_
27+
for more about versioning. The `releases section of the Tutor docs <https://docs.tutor.edly.io/install.html#running-older-releases-of-open-edx>`_
28+
will show which version is the latest. You can also check out the
29+
`Open edX Releases Homepage <https://openedx.atlassian.net/wiki/spaces/OEPM/pages/4191191044/Open+edX+Releases+Homepage>`_
30+
to learn more about the latest and upcoming Open edX release.
31+
32+
#. Follow the `instructions for installing Tutor`_.
33+
34+
#. Next, review the `common Tutor tasks
35+
<https://docs.tutor.edly.io/local.html#common-tasks>`_ for commands used to
36+
create superusers, import the "Open edX Demo Course", and set themes.
37+
38+
Congratulations! You are now running Tutor, on the latest named release.
39+
1540
.. seealso::
1641

17-
:ref:`Tutor Concept (Dev)`
42+
:ref:`Tutor Concept (Operator)`
1843

1944
:ref:`Site Operator QS`
2045

46+
`Instructions for installing Tutor`_
47+
48+
49+
.. _Instructions for installing Tutor: https://docs.tutor.edly.io/install.html
50+
2151
**Maintenance chart**
2252

2353
+--------------+-------------------------------+----------------+--------------------------------+

0 commit comments

Comments
 (0)