Skip to content

Commit

Permalink
feature(Login): User can login
Browse files Browse the repository at this point in the history
A user can log in with email
Test the feature
Include documentation for swagger

[improves #169817541]
  • Loading branch information
victor-abz committed Dec 18, 2019
1 parent f8db604 commit 928b1a4
Show file tree
Hide file tree
Showing 20 changed files with 781 additions and 79 deletions.
1 change: 0 additions & 1 deletion .babelrc
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
{

"presets": [
"@babel/preset-env"
],
Expand Down
2 changes: 1 addition & 1 deletion .coveralls.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
service_name: travis-pro
repo_token: ${process.env.repo_token}
repo_token: ${process.env.REPO_TOKEN}
22 changes: 17 additions & 5 deletions .env-sample
Original file line number Diff line number Diff line change
@@ -1,7 +1,19 @@
# N.B: When writting the below credentials ommit the curl braces.

DB_URL=postgres://{db_username}:{db_password}@{host}:{port}/{db_name}
TOKEN_SECRET= "your_secret"
POSTGRES_USER={db_user}
POSTGRES_PASSWORD={db_password}
POSTGRES_DB={db_name}
DB_URL=postgres://{POSTGRES_USER}:{POSTGRES_USER_PASSWORD}@{HOST}:{PORT}/{DB}
POSTGRES_USER={your-user-name}
POSTGRES_PASSWORD={your-user-password}
POSTGRES_DB={database}

# Coverall settings
REPO_TOKEN=ugkXbvXKZado9bNk1IVMdHhe6IWBrgNjI

# bcrypt settings
SaltRounds=6

# jwt settings
SecretKey=secrete-man
TokenExpireTime=24h

# for swagger
BASE_URL=localhost:3000
229 changes: 168 additions & 61 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 928b1a4

Please sign in to comment.