A template to develop React single-page applications (SPAs) with a Django REST Framework backend with support for simple deployments to Heroku.
-
Clone this repository.
git clone https://github.com/duci9y/react-dj.git
in your shell or your favorite Git client. I recommend Sourcetree. -
Install Python dependencies.
pipenv install
. -
Install JavaScript dependencies.
yarn install
. -
Start your virtual environment shell:
pipenv shell
. -
Start the Django development server.
./server/manage.py runserver
. -
Open a new tab/window in your terminal, with the repository root as your working directory. Start the frontend development server in this tab:
yarn start
. -
The previous step should have opened http://127.0.0.1:3000 in a browser window. If not, you can click on the link above.