Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#187419169 user can log into the E-commerce application via email & password #18

Closed
wants to merge 2 commits into from

Conversation

niyobertin
Copy link
Collaborator

Have a user login functionality into E-commerce application via email and password, unit test for login endpoint and swagger docummentation for login endpoint

Description of Task to be completed?

Have the following endpoint:
POST /api/v1/login

How should this be manually tested?

Clone this repository , cd into it and run:

  • npm run dev to start server . while server running, use postman and send

1.POST request on locahost:PORT/api/v1/users/login by providing email and password.
it will return jwt as result of successful login.
2. in your browser send request on localhost:PORT/docs --->swagger documentation.

  • npm run test for unit test

What are the relevant pivotal tracker/Trello stories?

#187419169

Screenshots
the screenshot below show a successful login. on left side there is a user credetiols(email & password) and right side response with jwt.
success

…assword

        -user login with email and password and return jwt as result of
        successifull login
        -unit test for user login endpont both successifull and unsuccessfull login event
        -swagger documentation for user login endpoint

        [Finishes #187419169]
…ssword

        -user login with email and password and return jwt as result of
        successifull login
        -unit test for user login endpont both successifull and unsuccessfull login event
        -swagger documentation for user login endpoint

        [Finishes #187419169]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant