Questions tagged [single-page-apps]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
1answer
67 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 ...
0
votes
0answers
26 views

Structure for a spotify / OAUTH web app

I am creating a spotify app that will allow 2 users to compare what songs they have in common. I have never designed a super-complicated web app before, so I wanted to get some advice for the ...
1
vote
1answer
297 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
89 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
58 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
48 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
190 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 ...
3
votes
0answers
381 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
26 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
0answers
31 views

Handling session expiry in a javascript app without losing app state

Currently, when our SPA detects that our session has expired, we redirect to another page (domain) to login through a SSO solution, before being sent back to the original page. This has some ...
0
votes
2answers
142 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
557 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
658 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
94 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
164 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 ...
3
votes
3answers
1k 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
95 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
302 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 ...