-
Notifications
You must be signed in to change notification settings - Fork 4
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
feat(sign up): implement users sign up #10
Conversation
- user can be to sign up using name, username, email, and password. - user can't be able to sign up twice using same email. [Delivers #187431242]
your branch ahs conflict did u forget to pull?? |
d7fb1a0
to
fbba50d
Compare
src/sequelize/config/config.js
Outdated
dialect: "postgres", | ||
dialectOptions: { | ||
ssl: { | ||
require: true, | ||
rejectUnauthorized: false, | ||
}, | ||
}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do you think this can allow us to use local database
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This allow us to connect to the deployed Database so we are no longer use local database. we're using the deployed one.
src/utils/server.ts
Outdated
@@ -1,6 +1,7 @@ | |||
import express from "express"; | |||
import cors from "cors"; | |||
import appROutes from "../routes"; | |||
import userRoutes from "../routes/userRoutes"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is this our main router
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i fix it
work also on your PR naming conversion |
fbba50d
to
76e7975
Compare
testing are failing on CI/CD |
76e7975
to
87cfeb7
Compare
package.json
Outdated
@@ -11,11 +11,13 @@ | |||
"seed": "npx sequelize-cli db:seed:all", | |||
"lint": "npx eslint .", | |||
"lint:fix": "npx eslint --fix .", | |||
"test": "cross-env NODE_ENV=test jest --detectOpenHandles --coverage" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
bring back cross-env NODE_ENV=test
src/sequelize/config/config.js
Outdated
@@ -7,11 +7,18 @@ module.exports = { | |||
dialect: "postgres", | |||
}, | |||
test: { | |||
url: process.env.TEST_DB, | |||
url: process.env.TEST_DB_CONNECTION, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove TEST_DB_CONNECTION instead use TEST_DB
src/utils/env.ts
Outdated
@@ -4,5 +4,5 @@ dotenv.config(); | |||
export const env = { | |||
port: process.env.PORT || 3000, | |||
db_url: process.env.DB_CONNECTION as string, | |||
test_db_url: process.env.TEST_DB as string, | |||
test_db_url: process.env.TEST_DB_CONNECTION as string, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same issue remove TEST_DB_CONNECTION use TEST_DB
87cfeb7
to
90bf557
Compare
…o ft-user-signup-#187431242
90bf557
to
22a0bc3
Compare
Welcome to Codecov 🎉Once you merge this PR into your default branch, you're all set! Codecov will compare coverage reports and display results in all future pull requests. Thanks for integrating Codecov - We've got you covered ☂️ |
What does this PR do?
This pull request addresses the implementation of a sign-up method utilizing PostgreSQL as the backend database. The sign-up process allows new users to register for an account within the system.
Description of Task to be completed?
Here are the endpoint working:
How should this be manually tested?
What are the relevant pivotal tracker stories?
#187431242
Screenshot