(frontend) set up Vite-based frontend project

Chose Vite for static output efficiency, aligning with project needs.

All API interactions are currently unauthenticated. SSO support
planned soon, using ProConnect.

UX is minimalistic, and showcases the core idea.

Components introduced:
* AppProvider
* Select and TextArea Rhf inputs

API hooks introduced:
* useGeneratePDF, generates a PDF, and downloads it in the client.
* useTemplates, fetches available templates to populate Select options.
This commit is contained in:
Lebaud Antoine
2024-01-10 15:07:05 +01:00
parent 62df0524ac
commit 312a680b66
41 changed files with 6926 additions and 3 deletions

View File

@@ -1,8 +1,10 @@
"""URL configuration for the core app."""
from django.urls import path
from core.views import generate_document
from core.views import generate_document, TemplatesApiView, GenerateDocumentAPIView
urlpatterns = [
path('generate-document/', generate_document, name='generate_document'),
path('api/generate-document/', GenerateDocumentAPIView.as_view(), name='generate-document'),
path('api/templates', TemplatesApiView.as_view()),
]