Skip to content

Latest commit

 

History

History
55 lines (34 loc) · 773 Bytes

README.md

File metadata and controls

55 lines (34 loc) · 773 Bytes

React_Django_Boilerplate Code

Boiler plate code to use React and Django together without much configuration.

Installing

After cloning the repo.

$ cd react_django_boilerplate
$ docker-compose build

Running the App

$ docker-compose up

Or if you've yet to build the docker images:

$ docker-compose up --build

Running in production

First build the static files.

$ yarn build

Run the server with production settings.

$ python manage.py runserver --settings=production_settings

Note

You may need to install babel-loader

$ yarn add babel-loader --dev

You might also need to run collect static for you server to see you static files

$ python manage.py collectstatic