django-rest-auth/docs/demo.rst

28 lines
758 B
ReStructuredText
Raw Normal View History

2014-10-16 15:31:25 +04:00
Demo project
============
2020-03-28 22:15:50 +03:00
This demo project shows how you can potentially use
2020-03-01 03:10:25 +03:00
dj-rest-auth app with jQuery on frontend.
2020-03-28 22:15:50 +03:00
To run this locally follow the steps below.
2014-10-16 15:31:25 +04:00
.. code-block:: python
cd /tmp
2020-03-02 01:42:28 +03:00
git clone https://github.com/jazzband/dj-rest-auth.git
2020-03-01 03:10:25 +03:00
cd dj-rest-auth/demo/
2014-10-16 15:31:25 +04:00
pip install -r requirements.pip
python manage.py migrate --settings=demo.settings --noinput
2014-10-16 15:31:25 +04:00
python manage.py runserver --settings=demo.settings
2020-03-28 22:15:50 +03:00
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.