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

#169817538 User signup feature #16

Merged
merged 55 commits into from
Dec 18, 2019
Merged

#169817538 User signup feature #16

merged 55 commits into from
Dec 18, 2019

Conversation

higustave-ops
Copy link
Contributor

@higustave-ops higustave-ops commented Dec 9, 2019

What does this PR do?

Create a user signup feature

Description of Task to be completed?

To create a user signup feature by allowing a user to signup. A signing up user should input his/her (firstName, lastName, userName, email and password) in order to be able to signup

How should this be manually tested?

  • Clone this repo
  • Navigate in the repo root using CMD or any TERMINAL
  • Install all packages using npm install
  • Type npm run dev for Postman testing And npm run test for mocha testing
  • Open postman and type localhost:3000/api/auth/signup
  • Click body then x-www-form-urlencoded
  • Fill in firstName, lastName, email, password and their respective values (Key: Value)pair
  • Click SEND on the top right corner of Postman

What are the relevant pivotal tracker stories?

Screenshots (if appropriate)

Postman screenshot
Screen Shot 2019-12-11 at 15 22 05

Test screenshot
Screen Shot 2019-12-11 at 17 11 48

Questions:

package.json Outdated Show resolved Hide resolved
package.json Outdated Show resolved Hide resolved
package.json Outdated Show resolved Hide resolved
package.json Outdated Show resolved Hide resolved
package.json Outdated Show resolved Hide resolved
src/middlewares/signUpValidation.js Outdated Show resolved Hide resolved
src/services/signupService.js Outdated Show resolved Hide resolved
src/tests/signupTest.js Outdated Show resolved Hide resolved
src/tests/signupTest.js Outdated Show resolved Hide resolved
src/tests/signupTest.js Outdated Show resolved Hide resolved
@adesege
Copy link

adesege commented Dec 10, 2019

@higustave-ops Ensure you resolve hound errors before requesting for reviews again.

src/routes/signupRoutes.js Outdated Show resolved Hide resolved
src/services/signupService.js Outdated Show resolved Hide resolved
src/models/users.js Outdated Show resolved Hide resolved
src/models/users.js Outdated Show resolved Hide resolved
@higustave-ops higustave-ops requested review from adesege and victor-abz and removed request for adesege December 11, 2019 12:55
@higustave-ops higustave-ops removed the request for review from victor-abz December 11, 2019 13:49
… coverage by ignoring modules folder's files
src/tests/signupTest.js Outdated Show resolved Hide resolved
@adesege
Copy link

adesege commented Dec 16, 2019

Add a more descriptive error message

Screenshot 2019-12-16 at 2 10 16 PM

@adesege
Copy link

adesege commented Dec 16, 2019

I'm unable to create a new user because the error message is not descriptive. What's the right pattern for adding a password?

@hound hound bot deleted a comment from adesege Dec 17, 2019
@hound hound bot deleted a comment from adesege Dec 17, 2019
@hound hound bot deleted a comment from adesege Dec 17, 2019
@hound hound bot deleted a comment from adesege Dec 17, 2019
@hound hound bot deleted a comment from adesege Dec 17, 2019
@hound hound bot deleted a comment from adesege Dec 17, 2019
src/routes/auth.js Outdated Show resolved Hide resolved
Copy link
Contributor

@victor-abz victor-abz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Contributor

@gadishimwe gadishimwe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@erickyvand
Copy link
Contributor

LGTM

@@ -8,21 +8,14 @@ export default class Response {
* Creates an instance of Response.
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Move this to a service.

@@ -0,0 +1,54 @@
/**
* @exports
* @class UsersController
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this a class?

@adesege
Copy link

adesege commented Dec 18, 2019

Your travis build is failing @higustave-ops

@hound hound bot deleted a comment from adesege Dec 18, 2019
@higustave-ops higustave-ops reopened this Dec 18, 2019
@adesege adesege merged commit f8db604 into develop Dec 18, 2019
@adesege adesege deleted the ft-user-signup-169817538 branch December 18, 2019 08:19
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.

None yet

6 participants