Skip to content

Commit c05903b

Browse files
committed
Adds note about React SPA
1 parent 66beda5 commit c05903b

File tree

1 file changed

+13
-3
lines changed

1 file changed

+13
-3
lines changed

docs/demo.rst

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
Demo project
22
============
33

4-
The idea of creating demo project was to show how you can potentially use
4+
This demo project shows how you can potentially use
55
dj-rest-auth app with jQuery on frontend.
6-
Do these steps to make it running (ideally in virtualenv).
6+
To run this locally follow the steps below.
77

88
.. code-block:: python
99
@@ -14,4 +14,14 @@ Do these steps to make it running (ideally in virtualenv).
1414
python manage.py migrate --settings=demo.settings --noinput
1515
python manage.py runserver --settings=demo.settings
1616
17-
Now, go to ``http://127.0.0.1:8000/`` in your browser.
17+
18+
Now, go to ``http://127.0.0.1:8000/`` in your browser. There is also a
19+
Single Page Application (SPA) in React within the ``demo/`` directory. To run this do:
20+
21+
.. code-block:: python
22+
cd react-spa/
23+
yarn # or npm install
24+
yarn run start
25+
26+
27+
Now, go to ``https://localhost:3000`` in your browser to view it.

0 commit comments

Comments
 (0)