Skip to content

Commit

Permalink
squashing commits
Browse files Browse the repository at this point in the history
implementing routes for auth

create passport callback function

adding new user from Google

creating new user

check if user is exist in db

implementing cookie session

Fix error of TypeError: req.session.regenerate is not a function using Passport

fix secret keys

remove Google client secret keys

working on facebook strategy

get email from fb login and update the scope

after verification save the user into db

add profile image in db

fixing minor bugs

fix minor bugs in codes

after rebasing & updating some fts

link social login with userModel

Addong Google client keys & FB client key into yml

send confrim email after register a new user

send email after register from facebook

fix minor bugs
  • Loading branch information
wayneleon1 committed May 7, 2024
1 parent 4e830bd commit 612dd2e
Show file tree
Hide file tree
Showing 13 changed files with 1,513 additions and 1,653 deletions.
47 changes: 26 additions & 21 deletions .github/workflows/workflow_for_ecomm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ name: CI for ecomm-project for Dynamite

on:
push:
branches: [ "develop" ]
branches: ['develop']
pull_request:
branches: [ "develop" ]
branches: ['develop']

jobs:
build:
Expand All @@ -15,21 +15,21 @@ jobs:
node-version: [20.x]

steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- run: npm ci
- run: npm run test --if-present
- run: npm run build --if-present
- run: npm run test:ci --if-present
- run: npm run lint --if-present
- name: Upload coverage to Coveralls
uses: coverallsapp/github-action@v2
with:
allow-empty: true
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- run: npm ci
- run: npm run test --if-present
- run: npm run build --if-present
- run: npm run test:ci --if-present
- run: npm run lint --if-present
- name: Upload coverage to Coveralls
uses: coverallsapp/github-action@v2
with:
allow-empty: true
env:
DB_PORT_DEV: ${{ secrets.DB_PORT_DEV }}
DB_USER_DEV: ${{ secrets.DB_USER_DEV }}
Expand All @@ -46,7 +46,12 @@ jobs:
DB_PASSWORD_TEST: ${{ secrets.DB_PASSWORD_TEST }}
DB_NAME_TEST: ${{ secrets.DB_NAME_TEST }}
DB_HOST_TEST: ${{ secrets.DB_HOST_TEST }}
MAILERSEND_TOKEN: ${{ secrets.MAILERSEND_TOKEN }}
MAILERSEND_DOMAIN: ${{ secrets.MAILERSEND_DOMAIN }}


MAILGUN_TOKEN: ${{ secrets.MAILGUN_TOKEN }}
MAILGUN_DOMAIN: ${{ secrets.MAILGUN_DOMAIN }}
GOOGLE_CLIENT_ID: ${{ secrets.GOOGLE_CLIENT_ID }}
GOOGLE_CLIENT_SECRET: ${{ secrets.GOOGLE_CLIENT_SECRET }}
GOOGLE_CALLBACK_URL: ${{ secrets.GOOGLE_CALLBACK_URL }}
FACEBOOK_APP_ID: ${{ secrets.FACEBOOK_APP_ID }}
FACEBOOK_APP_SECRET: ${{ secrets.FACEBOOK_APP_SECRET }}
FACEBOOK_CALLBACK_URL: ${{ secrets.FACEBOOK_CALLBACK_URL }}
COOKIES_KEY: ${{ secrets.COOKIES_KEY }}
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Dynamites API ![check-code-coverage](https://img.shields.io/badge/code--coverage-87.77%25-green)
# Dynamites API ![check-code-coverage](https://img.shields.io/badge/code--coverage-74.53%25-yellow)

## Overview

Expand Down
Loading

0 comments on commit 612dd2e

Please sign in to comment.