Questions tagged [single-page-apps]
The single-page-apps tag has no usage guidance.
27
questions
1
vote
1
answer
146
views
Is storing access token in private data, refresh token in http-only cookie safe?
Backend: Django / Django Rest Framework, would be hosted at GCP k8s
Frontend: Angular, would be hosted at some CDN e.g Vercel
Authentication: JWT (https://github.com/jazzband/djangorestframework-...
0
votes
1
answer
158
views
Can I use a session cookie for API authentication?
I want to build a web application with a Single Page Application as the front end and an API as the back end. The front-end SPA will read and write data to the API.
The SPA and the API will be hosted ...
0
votes
1
answer
75
views
Should SPA talk to auth server directly or resource server?
I have an angular based SPA, and backend resource server is written in springboot. I have integrated keycloak to provide OIDC support. Currently the app talks to auth server for login, (supplies ...
0
votes
2
answers
809
views
Semantic versioning for SPA applications with a RESTful backend
I am building an Angular web application with a RESTful backend. I plan on using semantic versioning to differentiate between different releases. I've already read a bit about how to implement ...
0
votes
1
answer
61
views
For a spa application should request be follow the "single responsiblity" idea or is it better to combine data?
Well in a page in our spa application we need to request some dynamic data from the server. Besides this data for display purposes we also need to request explanations of the columns from the data (...
0
votes
1
answer
312
views
How to set up 2 versions of Single Page Application and serve the right version to users based on the backend setting?
We develop a Single Page Application (SPA) for enterprise clients. When we deploy a new version of our SPA we would like to upgrade a subset of clients whilst leaving the other clients on the more ...
-1
votes
4
answers
683
views
Do logic on the backend or front end? When handling the results of a "wizard"?
We are creating a SPA, and thus the frontend is more than just a view for backend generated pages.
Now to create an "entry" you normally press create, and then fill in the data for that ...
4
votes
2
answers
315
views
Is there a canonical definition of SPA or is SPA a broadly agreed-on architecture with fuzzy edges? [closed]
Is there a canonical definition of SPA which would exclude the software architecture model described below?
I'm working on an app with a new web-architecture model (new to me, at any rate) which has ...
3
votes
3
answers
2k
views
Solution to notify users Single Page Application (SPA) static resources have updated if users don't refresh their browsers
I need to design a way to notify my user the SPA has updated if they don't refresh their browsers, i.e. if no requests to get index.html is made after the initial load, how do I notify users the ...
0
votes
0
answers
35
views
MVC pitfalls for POSTs when rev proxy down, caching failed POSTs, none user Auth
Intro
My question is I personally spent last 2 years working on a Django project for a factory, it uses the standard MVC pattern. The app uses the factory IP for authentication for terminals in the ...
-2
votes
1
answer
111
views
How good of an idea is extending HTMLElement
In the new era of web components MDN (and probably the standard) suggests extending the HTMLElement class.
For a long time we've strayed away from doing that, what has changed now for this to become ...
1
vote
1
answer
388
views
SPA Routing with a RESTful API using HATEOAS
When using routing in a SPA web app (angular, react, etc), the user doesn't have to start at the entry point of the application. They can use a URL in the browser to drill down into any part of the ...
5
votes
1
answer
6k
views
Implementing clean architecture
I just read the book 'clean architecture' by Uncle Bob and really like the approach.
But the big disappointment came when I tried to implement it in C#.
I really hope you can help me with some ...
2
votes
1
answer
840
views
Many small files vs fewer larger files: impact on bundle size and build time
I've been a relentless proponent of small files. I prefer one function export per file, functions with everything-in-one-view, and breaking up UI components as much as sensible (which is why I love ...
1
vote
1
answer
278
views
How to implement authorization restrictions with SPA pages?
I have read this below answer for SPA cons. In fact, I have faced some problems outlined.
https://stackoverflow.com/questions/21862054/single-page-application-advantages-and-disadvantages#answer-...
1
vote
1
answer
53
views
Valid measurements for the decision whether to implement a web application as SPA or MPA
I'm looking for valid measurements for the decision whether to implement a web application as SPA (Single Page Application) or MPA (Multi Page Application).
Which questions should be answered to get ...
2
votes
1
answer
888
views
How to avoid duplicated logic on frontend SPA and backend API
Every time I'm working on an SPA with an API backend I always find myself wondering the best way to do this. The current example I'm running into is as follows:
When a User has their account created ...
4
votes
0
answers
1k
views
How to implement SAML Authentication SPA and REST Backend
Developing a SPA (with VueJS) that is talking to our own REST API Backend(Separate server). Normal authentication flow in the SPA:
User credentials after submission are sent to the backend and if ...
2
votes
0
answers
36
views
Architecting OAuth2 Flow With an API and Static JS Client
I'm building a very security conscious application. (All applications should be security conscious, but this one may contain a lot of red data).
Assuming that I will use a Vue/React JavaScript Single ...
0
votes
2
answers
215
views
Temporal coupling vs. complex constructor
I'm working through a book on writing Single Page Applications in Vanilla Javascript. (I'm working on a project where I'm not allowed to use React or any other frameworks, so I'm trying to get better ...
1
vote
4
answers
2k
views
How to handle user permission changes in SPA?
I have a SPA which at the beginning of application startup calls the backend API, sends a JWT and asks for the access permissions of the current user. SPA then caches the permissions in-memory and ...
4
votes
1
answer
2k
views
Split large Angular codebase to libraries
I am writing a potentially large web application using Angular 7, where I came across a design problem. My angular applications until now have been relatively small, so there was no problem keeping ...
2
votes
0
answers
198
views
How to define REST endpoint for subresource of not saved resource
I have REST API for my SPA application.
My domain model has Order entity, it has Commission property which calculated on backend, it is number value
For get Order entity SPA calls this endpoint, this ...
1
vote
1
answer
274
views
Angular SPA, using server-side-rendering to support IE11? Is this risky or a smart way to go?
I'm working on a dozen enterprise SPA's and PWA's and most of them require impeccable IE11 support. This has been a complete pain with countless problems every step of the way.
It occured to me ...
5
votes
3
answers
3k
views
Using SPA ( Single-page-application) in production with separate configuration file/module
Problem statement
dev team
Dev team wants to pre-build the SPA's (Angular App & React App) and provide single package containing JS, CSS, & HTML file. There's no server-side rendering / lazy ...
2
votes
1
answer
118
views
Does Flux/Redux concept about application state put bounds on the size of application?
In Redux (React Flux implementation) guide https://redux.js.org/basics/reducers it is said, that
In Redux, all the application state is stored as a single object
My questions are:
How seriously ...
0
votes
1
answer
412
views
Make Docker-based SPA configurable
I have a single page app (Vue JS) that is built and released as docker image. The docker image is based on the official Nginx Docker image and serves the SPA as static content.
Until now, there was ...