Questions tagged [single-page-apps]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
-2
votes
3answers
79 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
2answers
238 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 ...
-2
votes
0answers
15 views

Showing form that submits to an authorized endpoint in SPA

Suppose I have a form that when submitted sends data to an endpoint that requires authorization. What should I do before showing such a form? Check a state inside the SPA to see if the user is ...
0
votes
2answers
188 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
0answers
32 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
1answer
68 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 ...
0
votes
1answer
217 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 ...
3
votes
1answer
3k 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
1answer
146 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
1answer
121 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
1answer
49 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
1answer
455 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
0answers
674 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
0answers
27 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
2answers
169 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 ...
0
votes
4answers
1k 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 ...
2
votes
1answer
1k 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 ...
1
vote
0answers
125 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
1answer
228 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 ...
4
votes
3answers
2k 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
1answer
107 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
1answer
345 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 ...