N
N
nurdus2017-11-04 12:26:13
Software design
nurdus, 2017-11-04 12:26:13

Should I give the SPA application as a server (express) or put it separately?

Good afternoon.
What is the correct way: to generate and serve the SPA application by the server (express) or to generate and serve it separately, and organize all interaction through the rest api and / or socket?
For example, different SPA applications for authorized and unauthorized users?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
N
numfin, 2017-11-09
@numfin

Nothing wrong. If you are talking about rendering, then you work through sockets and render the desired content. If you are talking about the spa only on the client, then through the api you check whether there is access to the necessary data. And if you also want 2 separate spas for authorized and not - you need to give your statics on the server for different routes

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question