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

167730742 Ft login via email and password #27

Merged
merged 121 commits into from
Sep 15, 2019

Conversation

marusoft
Copy link
Collaborator

@marusoft marusoft commented Aug 27, 2019

What does this PR do?

  • Implement login feature via email and password

Description of Task to be completed?

  • N/A

How should this be manually tested?

  • git clone https://github.com/andela/firestar-backend.git

  • cd firestar-backend

  • Checkout to the branch git checkout ft-login-email-password-167730742

  • run npm install

  • Setup test databases, see .env.example for sample
    P.S JWT_SECRET_KEY=pass a string of characters e.g THISISBAREFOOTNOMADPROJECT

  • Run migration to create tables
    - run npm run migrate:dev for development
    - run npm run migrate:test for test

  • Populate test database: npm run seed:test

  • To run the test npm run test

  • Start the sever by runnning npm run start:dev

  • Test the endpoint localhost:3000/api/v1/users/auth/login with postman , then select POST as the request with the following as the body:

    {
     email: 'example@gmail.com',
     password: 'firestar2019@K`
    }
    {
    email: 'example1@gmail.com',
    password: 'firestar2019@K'
    }
     
    {
     email: 'youremail20@andela.com',
     password: 'firestar2019@K'
    }
    
    

P.S use only the above user details to login because these are some of the data that will be seeded to the database after running npm run seed:dev

  • Successful login will output the following below:
    Screenshot from 2019-08-29 21-56-19

Any background context you want to provide?

  • N/A

What are the relevant pivotal tracker stories?

Screenshots or gifs (if appropriate)

Screenshot from 2019-08-29 18-06-07

Questions:

  • N/A

zanio and others added 30 commits August 19, 2019 15:21
package.json Outdated Show resolved Hide resolved
src/controllers/userController.js Outdated Show resolved Hide resolved
src/controllers/userController.js Outdated Show resolved Hide resolved
src/controllers/userController.js Outdated Show resolved Hide resolved
src/__tests__/routes/users/login.js Show resolved Hide resolved
@rovilay rovilay had a problem deploying to firestar-backend-staging-pr-27 September 12, 2019 21:41 Failure
@rovilay rovilay had a problem deploying to firestar-backend-staging-pr-27 September 13, 2019 04:29 Failure
@rovilay rovilay had a problem deploying to firestar-backend-staging-pr-27 September 13, 2019 07:08 Failure
@rovilay rovilay had a problem deploying to firestar-backend-staging-pr-27 September 13, 2019 08:22 Failure
@rovilay rovilay had a problem deploying to firestar-backend-staging-pr-27 September 13, 2019 08:31 Failure
@rovilay rovilay had a problem deploying to firestar-backend-staging-pr-27 September 13, 2019 20:52 Failure
@rovilay rovilay had a problem deploying to firestar-backend-staging-pr-27 September 13, 2019 22:50 Failure
@rovilay rovilay had a problem deploying to firestar-backend-staging-pr-27 September 13, 2019 23:12 Failure
@rovilay rovilay had a problem deploying to firestar-backend-staging-pr-27 September 14, 2019 05:49 Failure
@rovilay rovilay had a problem deploying to firestar-backend-staging-pr-27 September 15, 2019 20:13 Failure
@rovilay rovilay merged commit 5059f51 into stage Sep 15, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready for merge This PR is ready for TTL review and merging
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

8 participants