Skip to content

Commit

Permalink
Adds note about React SPA
Browse files Browse the repository at this point in the history
  • Loading branch information
iMerica committed Mar 28, 2020
1 parent 66beda5 commit c05903b
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions docs/demo.rst
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
Demo project
============

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

.. code-block:: python
Expand All @@ -14,4 +14,14 @@ Do these steps to make it running (ideally in virtualenv).
python manage.py migrate --settings=demo.settings --noinput
python manage.py runserver --settings=demo.settings
Now, go to ``http://127.0.0.1:8000/`` in your browser.
Now, go to ``http://127.0.0.1:8000/`` in your browser. There is also a
Single Page Application (SPA) in React within the ``demo/`` directory. To run this do:

.. code-block:: python
cd react-spa/
yarn # or npm install
yarn run start
Now, go to ``https://localhost:3000`` in your browser to view it.

0 comments on commit c05903b

Please sign in to comment.