adds code


Coding and testing an authentication API [NodeJs + Cypress] Source Code: https://github.com/nadvolod/js-code/tree/auth-api-tutorial 👁 Subscribe for more tutorials like this: https://www.youtube.com/channel/UCVZXj9vKyZ6L2OakzRH2aOQ?sub_confirmation=1 🔥Want to learn more from me? Check out these links: Courses: https://courses.ultimateqa.com/ Twitter: https://twitter.com/nikolay_a00 Facebook: https://www.facebook.com/Ultimateqa1 Blog: https://ultimateqa.com/ TABLE OF CONTENT: Introduction (0:53) Start a server (04:14) Register endpoint (8:37) Testing endpoint with Postman and Cypress (17:40) Updating Cypress to be robust (20:27) Creating Mongo DB (24:25) Hiding username and password in env file (27:38) Registering our first user (38:55) Add positive and negative test case (46:26) Making a more robust test (50:09) Removing duplication (54:21) Add body validation logic (1:03:16) Add creation validation test (1:16:12) Extract validation (1:22:54) Logic to avoid duplicate user creation (1:33:11) Encrypt a password (1:38:37) Add login endpoint (1:44:23) Testing the login endpoint (1:49:25) Add JWT (1:55:58) Add posts endpoint
Previous Post Next Post