Coding and testing an authentication API [NodeJs + Cypress]
You will learn how to: * Create user registration endpoint * Create user authentication endpoint * Test our #API using @cypress_io
Introduction
Start a Server
Testing Tips
Register endpoint
Testing endpoint with Postman and Cypress
Updating Cypress to be robust
Creating Mongo DB
Hiding username and password in env file
Registering our first user
Add positive and negative test case
Making a more robust test
Removing duplication
Add body validation logic
Add creation validation test
Extract validation
Logic to avoid duplicate user creation
Encrypt a password
Add login endpoint
Testing the login endpoint
Add JWT
Add posts endpoint
Let's practice- part 1
Let's practice- part 2
BONUS LECTURE AND RESOURCES