BlueBaseJS / BlueBaseJS/core

SSR API

Aperta
#8 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
enhancement
Lingua principale
TypeScript
Stelle
3
Fork
1
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

## Requirements

We need to add out of the box support for Server Side Rendering in BlueRain. This may require some modification in BlueRain as well as `bluerain-cli-web`.

- BlueRain should have a helper method or property to check if the app is running in SSR mode
- Each plugin may add SSR support by hooking into SSR specific hook
- We need to have a way to access SSR context/state which server can use after boot. A use case of this can be router context to return correct HTTP status code from the server.
- How add custom auth on the server side, with cookie or tokens, etc? We may need to have server specific hooks inside or outside BlueRain (i.e. adding custom express middlewares).
- Explore to add support for the .ssr files just like we have platform specific files (e.g. *.web.ts, *.iso.ts, *.android.ts)

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Direzione di ricerca

Start by reading the BlueRain core and bluerain-cli-web architecture, focusing on existing platform-specific files such as *.web.ts and *.iso.ts. Define how SSR mode detection, plugin hooks, server context, authentication middleware, and *.ssr files should fit together. Done means the SSR API and integration boundaries are specified and supported across both components.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
express, typescript
Ambito
backend, web-dev
Tipo di issue
Funzionalità
Difficoltà
5/5
Tempo stimato
Più di una settimana
Stato di attività
Ferma
Chiarezza
Da chiarire
Idoneità per principianti
20/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.