1
1
Running IDOM
2
2
============
3
3
4
- The simplest way to run IDOM is with the :func: `~idom.server .utils.run ` function. This
4
+ The simplest way to run IDOM is with the :func: `~idom.backend .utils.run ` function. This
5
5
is the method you'll see used throughout this documentation. However, this executes your
6
6
application using a development server which is great for testing, but probably not what
7
7
if you're :ref: `deploying in production <Running IDOM in Production >`. Below are some
@@ -20,10 +20,10 @@ will follow a pattern similar to the following:
20
20
21
21
.. code-block ::
22
22
23
- from my_chosen_server import Application
23
+ from my_chosen_backend import Application
24
24
25
25
from idom import component, html
26
- from idom.server.my_chosen_server import configure
26
+ from idom.backend.my_chosen_backend import configure
27
27
28
28
29
29
@component
@@ -151,17 +151,17 @@ respective ``configure()`` functions in the following way:
151
151
152
152
.. code-block ::
153
153
154
- from idom.server .<implementation> import configure, Options
154
+ from idom.backend .<implementation> import configure, Options
155
155
156
156
configure(app, MyComponent, Options(...))
157
157
158
- To learn more read about the options for your chosen server ``<implementation> ``:
158
+ To learn more read about the options for your chosen backend ``<implementation> ``:
159
159
160
- - :class: `idom.server .fastapi.Options `
161
- - :class: `idom.server .flask.Options `
162
- - :class: `idom.server .sanic.Options `
163
- - :class: `idom.server .starlette.Options `
164
- - :class: `idom.server .tornado.Options `
160
+ - :class: `idom.backend .fastapi.Options `
161
+ - :class: `idom.backend .flask.Options `
162
+ - :class: `idom.backend .sanic.Options `
163
+ - :class: `idom.backend .starlette.Options `
164
+ - :class: `idom.backend .tornado.Options `
165
165
166
166
167
167
Embed in an Existing Webpage
0 commit comments