Skip to content

Conversation

@robines
Copy link
Member

@robines robines commented Nov 17, 2025

This is just a proof of concept. It's working, but all implementation details in this PR are up for discussion.

Steps to get working

  1. cd into the frontend directory
  2. Ensure all dependencies are installed locally (just run yarn)
  3. Run yarn export-routes
    • This will generate a python file containing all frontend routes to backend/samfundet/routing/frontend_routes.py
  4. Run ./build_to_backend
    • This will build and copy the compiled frontend into the backend project at backend/reactapp
  5. Start the backend normally (docker compose up backend)

Verifying

  1. Visit any event, such as http://localhost:8000/events/1
  2. Click "View source" in your browser and verify that the HTML contains metadata about the specific event

@robines robines self-assigned this Nov 17, 2025
@robines robines added the discussion Items which require or depend on discussion label Nov 17, 2025
@emilte
Copy link
Member

emilte commented Nov 20, 2025

Hvis du tilfeldigvis ikke har sett på den: https://github.com/MrBin99/django-vite

Tror jeg har brukt den tidligere

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

discussion Items which require or depend on discussion

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants