@@ -12,11 +12,11 @@ Running IDOM in Production
12
12
--------------------------
13
13
14
14
The first thing you'll need to do if you want to run IDOM in production is choose a
15
- server implementation and follow its documentation on how to create and run an
16
- application. This is the server :ref: `you probably chose <Officially Supported Servers >`
17
- when installing IDOM. Then you'll need to configure that application with an IDOM view.
18
- We should the basics how how to run each supported server below, but all implementations
19
- will follow a pattern similar to the following:
15
+ backend implementation and follow its documentation on how to create and run an
16
+ application. This is the backend :ref: `you probably chose <Officially Supported
17
+ Backends>` when installing IDOM. Then you'll need to configure that application with an
18
+ IDOM view. We show the basics of how to set up, and then run, each supported backend
19
+ below, but all implementations will follow a pattern similar to the following:
20
20
21
21
.. code-block ::
22
22
@@ -34,17 +34,17 @@ will follow a pattern similar to the following:
34
34
app = Application()
35
35
configure(app, HelloWorld)
36
36
37
- You'll then run this ``app `` using a `ASGI <https://asgi.readthedocs.io/en/latest/ >`__ or
38
- `WSGI <https://wsgi.readthedocs.io/ >`__ server from the command line.
37
+ You'll then run this ``app `` using an `ASGI <https://asgi.readthedocs.io/en/latest/ >`__
38
+ or `WSGI <https://wsgi.readthedocs.io/ >`__ server from the command line.
39
39
40
40
41
41
Running with `FastAPI <https://fastapi.tiangolo.com >`__
42
42
.......................................................
43
43
44
44
.. idom :: _examples/run_fastapi
45
45
46
- Then assuming you put this in ``main.py ``, you can run the ``app `` using `Uvicorn
47
- <https://www.uvicorn.org/> `__:
46
+ Then assuming you put this in ``main.py ``, you can run the ``app `` using the `Uvicorn
47
+ <https://www.uvicorn.org/> `__ ASGI server :
48
48
49
49
.. code-block :: bash
50
50
@@ -56,8 +56,8 @@ Running with `Flask <https://palletsprojects.com/p/flask/>`__
56
56
57
57
.. idom :: _examples/run_flask
58
58
59
- Then assuming you put this in ``main.py ``, you can run the ``app `` using `Gunicorn
60
- <https://gunicorn.org/> `__:
59
+ Then assuming you put this in ``main.py ``, you can run the ``app `` using the `Gunicorn
60
+ <https://gunicorn.org/> `__ WSGI server :
61
61
62
62
.. code-block :: bash
63
63
@@ -82,8 +82,8 @@ Running with `Starlette <https://www.starlette.io/>`__
82
82
83
83
.. idom :: _examples/run_starlette
84
84
85
- Then assuming you put this in ``main.py ``, you can run the application using ` Uvicorn
86
- <https://www.uvicorn.org/> `__:
85
+ Then assuming you put this in ``main.py ``, you can run the application using the
86
+ ` Uvicorn <https://www.uvicorn.org/ >`__ ASGI server :
87
87
88
88
.. code-block :: bash
89
89
@@ -143,10 +143,10 @@ Errors will be displayed where the uppermost component is located in the view:
143
143
.. idom :: _examples/debug_error_example
144
144
145
145
146
- Server Configuration Options
147
- ----------------------------
146
+ Backend Configuration Options
147
+ -----------------------------
148
148
149
- IDOM's various server implementations come with ``Options `` that can be passed to their
149
+ IDOM's various backend implementations come with ``Options `` that can be passed to their
150
150
respective ``configure() `` functions in the following way:
151
151
152
152
.. code-block ::
@@ -187,8 +187,8 @@ embedding one the examples from this documentation into your own webpage:
187
187
.. note ::
188
188
189
189
For more information on how to use the client see the :ref: `Javascript API `
190
- reference. Or if you need to, your can :ref: `write your own server implementation
191
- <writing your own server >`.
190
+ reference. Or if you need to, your can :ref: `write your own backend implementation
191
+ <writing your own backend >`.
192
192
193
193
As mentioned though, this is connecting to the server that is hosting this
194
194
documentation. If you want to connect to a view from your own server, you'll need to
0 commit comments