D
D
Disco Stu2019-04-16 23:41:53
Angular
Disco Stu, 2019-04-16 23:41:53

How to properly organize the architecture of a web application?

I am developing a web application.
Architecture:
* Angular client
* Static web server for passing the client part (node, express)
* API (node, express, mongodb)
The following questions arise:
* I plan to make two APIs.
The first one is for authentication. What protocol to use? To make it easy to add third-party authentication in the future, for example, from VK and Google
Second for accessing resources (via closed, open routes)
* How to store a user in the database with third-party authentication?
If local, then it is clear that the scheme will have a login, password, mail, etc.
What if third-party authentication occurs?
What to store? what will be the scheme?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question