Skip to content
This repository has been archived by the owner on Sep 18, 2019. It is now read-only.

A strawman set up for using both Django and React in a new app

License

Notifications You must be signed in to change notification settings

18F/docker-compose-django-react

Repository files navigation

Django & React application

This is a set up so that we can easily create apps that use Django on the backend (and take advantage of the amazing admin UI) and React (set up with create-react-app) for the front end application.

Running

  1. docker-compose build
  2. docker-compose up
  3. There should now be two servers running:

Using docker-compose run to issue one-off commands

If you want to run a one-off command, like installing dependencies, you can use the docker-compose run <service_name> <cmd>.

For example, to install a Javascript dependency and save that information to package.json we could run: docker-compose run --rm frontend npm install --save axios

If you want to be on a shell for one of the Docker services, you can do something like: docker-compose run --rm frontend bash

Things I want to add:

  • config for circle to deploy on master (wondering if i can get default branch name) and tagged releases
  • React Router
  • Redux & directory structure
  • A server side rendering
  • Service Workers and easy to config strategies
  • Instructions on easy deployment to cloud.gov
  • Directory structure?
  • USWDS in some form?

About

A strawman set up for using both Django and React in a new app

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published