/react-dj

A simple React SPA + Django REST Framework template with Heroku support.

Primary LanguageJavaScript

react-dj

A template to develop React single-page applications (SPAs) with a Django REST Framework backend with support for simple deployments to Heroku.

Setup instructions

  1. Clone this repository. git clone https://github.com/duci9y/react-dj.git in your shell or your favorite Git client. I recommend Sourcetree.

  2. Install Python dependencies. pipenv install.

  3. Install JavaScript dependencies. yarn install.

  4. Start your virtual environment shell: pipenv shell.

  5. Start the Django development server. ./server/manage.py runserver.

  6. 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.

  7. 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.