Answer the question
In order to leave comments, you need to log in
How to correctly implement the architecture of a web application?
Guys, in general, the question is about the architecture of a web application.
My Angular web application needs to authenticate users. How to implement it correctly ?
1. As a monolithic application with Angular / Typescript and Express / Koa / JWT / Socket - it is both front-end and back-end for itself. Accesses the database directly from the client.
2. Divide the application into two - the server on Express / Koa / JWT / Socket and a separate front-end client on Angular / Typescript? The client accesses the server via REST, which does all the wet work with the database.
Which way to choose? How do you generally solve the problem when your web application grows to authorization capabilities and other database operations?
PS Now I know how to do a little CI / CD, and the front, and tests, but I never got to the back.
Answer the question
In order to leave comments, you need to log in
IMHO, option 2 - Separate service - backend, at least in case authorization is needed for other clients.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question