Django is used for the backend along with the following packages:
-
Clone repository using cookiecutter
cookiecutter https://github.com/vioquedu/django-redux-boilerplate.git
-
Install requirements:
pip install -r requirements/development.txt
-
Create a
env_file.py
inside theconfig
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
-
Create initial tables in database running:
python manage.py migrate
-
Create a super user
python manage.py createsuperuser
-
Start a development server
python manage.py runserver
The frontend application is set up with react-redux. It includes jwt authentication.
-
Install dependencies
npm install
-
Use node to serve frontend application:
npm run watch