Differ my data:
- When data will come?
- When data will be rendered?
Differ by purposes:
- For development
- For production
Webapp architecture:
- Templating (data is already there)
- Server-side rendering
- rendered HTML (template)
- Client-side rendering
- JavaScript + rendered data (static file)
- Server-side rendering
- API (fetch data)
- Cross-orgin (different frontend server and origin)
- JavaScript (Nginx)
- React.js (Nginx)
- Same-origin (different frontend server on the same origin)
- JavaScript (Nginx via proxy)
- React.js (Nginx via proxy)
- Server from backend (frontend on backend server and origin)
- JavaScript (static file)
- React.js (build npm to static file)
- Cross-orgin (different frontend server and origin)