CodeForPhilly / balancer-main

CodeForPhilly balancer project (https://opencollective.com/code-for-philly/projects/balancer)
GNU Affero General Public License v3.0
11 stars 8 forks source link

Serving React from the Django Server #63

Open ryanrrogers opened 7 months ago

ryanrrogers commented 7 months ago

Branch -> Serving

  1. Currently trying to serve the react from the django server. Docker is setup currently to build the react app and put the files into the static folder. When docker-compose up is run, localhost:8000 is finding the index.html file, however, it is blank because it isn't loading the other static resources that it depends on.
  2. When the react app is built, the app is compiled into a .js and .css file and then served through index.html. It is the .js and .css files that are not being found.
  3. We need to find a way to incorporate the django templates with the index.html file so that these resources are loaded.
ErinClaudio commented 7 months ago

thanks!