Skip to content

shabeebhasan/django-react

Repository files navigation

  • Baydot Django App With React CoreUI

Installation

  1. Install pipenv
  2. Clone this repo and cd django-react
  3. Run pip install --user --upgrade pipenv to get the latest pipenv version.
  4. Run pipenv --python 3.6
  5. Run pipenv install
  6. Run cp .env.example .env
  7. Update .env file DATABASE_URL with your database_name, database_user, database_password, if you use postgresql. Can alternatively set it to sqlite:////tmp/my-tmp-sqlite.db, if you want to use sqlite for local development.

Getting Started

  1. Run pipenv shell
  2. Run python manage.py makemigrations
  3. Run python manage.py migrate
  4. Run python manage.py runserver

Build Frontend in React

  1. Run yarn install
  2. Run yarn build