Skip to content

Latest commit

 

History

History
59 lines (36 loc) · 1.4 KB

README.md

File metadata and controls

59 lines (36 loc) · 1.4 KB

Django redux boilerplate

Django

Django is used for the backend along with the following packages:

Installation

  1. Clone repository using cookiecutter

    cookiecutter https://github.com/vioquedu/django-redux-boilerplate.git

  2. Install requirements:

    pip install -r requirements/development.txt

  3. Create a env_file.py inside the config folder which should look like this:

    DEBUG=on
    SECRET_KEY=CHANGE_ME!!!!!
    DATABASE_URL=connection_to_database
    ALLOWED_HOSTS=example.com,www.example.com
    EMAIL_HOST_USER=your_email@example.com
    EMAIL_PWD=your_pwd
    EMAIL_ADMIN=admin1@example.com,admin2@example.com
    
  4. Create initial tables in database running:

    python manage.py migrate

  5. Create a super user

    python manage.py createsuperuser

  6. Start a development server

    python manage.py runserver

React-Redux

The frontend application is set up with react-redux. It includes jwt authentication.

  1. Install dependencies

    npm install

  2. Use node to serve frontend application:

    npm run watch