Think about a complete login system, draw the forms on a paper
Could you list the different endpoints your backend needs to be able to complete all login functionalities? explain how would work each one and dessign the database on a paper
Part 1: Back-End
Create the DB
Create the project structure, 2 folders clientand server
Int the In the server folder create a server connected to the DB
Develop the 4 endpoints (introduce bcrypt to store passwords, email sender??, there is an easy way to manage sessions in Node?)
Test endpoints with postman
Part 2: Front-End
In the client folder, Build the react APP
Build Register Component connected to the server
Build Login Component connected to the server
Build Dashboard Component connected to the server, how do we manage the sessionId in the front, cookies?
Part 3: Add roles to the users in your project
Server: There will be an admin role, change the server to only allow admin users access to all users data
Client: Add the role and in client code, only the admin will see a complete list of all users, able to remove them 1 by 1