hackforla / CivicTechJobs

CivicTechJobs will be a platform to help prospective volunteers find interdisciplinary projects that will be useful for their career development while contributing to positive civic impact, and also a CMS (Content Mgmt System) for Hack for LA projects to be able to list their open roles.
https://civictechjobs.org
GNU General Public License v2.0
18 stars 23 forks source link

Fix/react router #572

Closed LoTerence closed 1 month ago

LoTerence commented 1 month ago

Fixes # Issues:

  1. Navigating to http://localhost:8000/credits returns a django error. The expected behavior is for the browser to show the credits page.
    • This is happening because react-router is not correctly integrated with the django backend
  2. Django + vite static build files were not well organized

This PR does two things:

  1. Make sure django urls are configured to route wildcard paths through react-router
  2. Take small steps to prepare django + vite static build for eventual production deployment, by moving the static assets folder to a more conventional place (backend/frontend/static/vite_assets_dist)

Changes

Backend

Frontend