T
T
tesko2019-09-14 20:33:43
MySQL
tesko, 2019-09-14 20:33:43

How to do authorization/registration in Angular?

Hi all. I decided to study Angular 8 and immediately ran into the first problem:
I don’t understand how to create a registration with entering data into the database (via mysql) or simply outputting information from the database.
Googled along with Express+Angular, Angular node js mysql - nothing really is normal. Everyone writes to localStorage, YouTube is generally nonsense Tell me
how to implement registration / login on Angular 8? Explain.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Denis, 2019-09-14
@sidni

That's right, you google from angular to connect directly to mysql will not work. You also need to have a backend application, no matter what it is on nodejs, php, python, go, java, etc., which will connect to the database and register the user, as well as provide some kind of api to work with the frontend with angular. Well, the classic registration in this case is chasing in each request to the backend of the token, most often it is either jwt or oauth2 which is stored in the local storage or cookies.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question