-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feature(signup/register): Signup/Register feature
- create integration tests to test the signup endpoint - edit the models to add password and isVerified fields - create validators for signup request body - create helpers/utils for hashPassord, generate JWT token, verifyEmail and verifyUsername - create signupController and export to routes - create midllewares for checkSignup for the req.body, verifyEmail, verifyUsername, confirmPassword - create routes for 'api/v1/register/' with the aforementioned middlewares and signupController - change node version in Dockerfile from node:11-alpine to node:11 due to bcrypt crash [Finishes #168781675]
- Loading branch information
1 parent
2f278ba
commit 6f46103
Showing
25 changed files
with
984 additions
and
407 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,8 @@ | ||
{ | ||
"presets":["@babel/preset-env"], | ||
"plugins": ["@babel/plugin-proposal-class-properties"] | ||
"plugins": ["@babel/plugin-proposal-class-properties", ["@babel/plugin-transform-runtime", | ||
{ | ||
"regenerator": true | ||
} | ||
]] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,4 +24,7 @@ DATABASE_PORT= | |
|
||
# APPLICATION | ||
|
||
APPLICATION_PORT= | ||
APPLICATION_PORT= | ||
|
||
#JWT TOKEN | ||
JWT_SECRET=supersecretjwtkey |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
FROM node:11-alpine | ||
FROM node:11 | ||
|
||
RUN mkdir -p /usr/src/app | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.