-
Notifications
You must be signed in to change notification settings - Fork 192
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #648 from hngprojects/staging
Merge branch "staging" into main
- Loading branch information
Showing
311 changed files
with
28,614 additions
and
3,277 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 |
---|---|---|
@@ -0,0 +1,31 @@ | ||
NODE_ENV=development | ||
PROFILE=local | ||
PORT=5000 | ||
HOST= | ||
DB_SSL=true | ||
DB_TYPE= | ||
DB_USERNAME= | ||
DB_PASSWORD= | ||
DB_HOST= | ||
DB_DATABASE=hng | ||
DB_ENTITIES=dist/src/modules/**/entities/**/*.entity{.ts,.js} | ||
DB_MIGRATIONS=dist/db/migrations/*{.ts,.js} | ||
JWT_SECRET=gsgs | ||
JWT_EXPIRY_TIMEFRAME=1500000 | ||
DB_SSL=false | ||
JWT_REFRESH_SECRET=bbp | ||
JWT_REFRESH_EXPIRY_TIMEFRAME=15 | ||
GOOGLE_REDIRECT_URI= | ||
GOOGLE_CLIENT_SECRET= | ||
GOOGLE_CLIENT_ID= | ||
OAUTH_LOGIN_REDIRECT= | ||
SMTP_HOST= | ||
SMTP_PORT=587 | ||
SERVER_NAME=Boilerplate | ||
SMTP_USER= | ||
SMTP_PASSWORD= | ||
FRONTEND_URL= | ||
ADMIN_SECRET= | ||
SUPPORT_EMAIL= | ||
AUTH_PASSWORD= | ||
BASE_URL= |
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
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 |
---|---|---|
@@ -0,0 +1,32 @@ | ||
name: ci | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- dev | ||
push: | ||
branches: | ||
- dev | ||
|
||
jobs: | ||
test-and-build-dev: | ||
runs-on: ubuntu-latest | ||
if: github.event_name == 'pull_request' | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
|
||
- name: Set up Node.js | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: '18' | ||
|
||
- name: Install dependencies | ||
run: npm install --include=dev | ||
|
||
- name: Build project | ||
run: npm run build | ||
|
||
- name: Run tests | ||
run: npm run test |
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
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
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
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 |
---|---|---|
|
@@ -391,3 +391,7 @@ dist | |
/.env | ||
/.env.*.local | ||
*._local.ts | ||
|
||
# Migrations | ||
/db/migrations/*-migration.ts | ||
/db |
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 |
---|---|---|
|
@@ -11,4 +11,4 @@ | |
"type": "node-terminal" | ||
} | ||
] | ||
} | ||
} |
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
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
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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import { registerAs } from '@nestjs/config'; | ||
export default registerAs('auth', () => ({ | ||
jwtSecret: process.env.JWT_SECRET, | ||
jwtRefreshSecret: process.env.JWT_REFRESH_SECRET, | ||
jwtExpiry: process.env.JWT_EXPIRY_TIMEFRAME, | ||
jwtRefreshExpiry: process.env.JWT_REFRESH_EXPIRY_TIMEFRAME, | ||
google: { | ||
clientSecret: process.env.GOOGLE_CLIENT_SECRET, | ||
clientID: process.env.GOOGLE_CLIENT_ID, | ||
callbackURL: process.env.GOOGLE_REDIRECT_URI, | ||
}, | ||
})); |
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,11 +1,11 @@ | ||
{ | ||
"apps": [ | ||
{ | ||
"name": "team-alpha-dev", | ||
"script": "npm run dev", | ||
"log_file": "~/.pm2/logs/team-alpha-dev-out.log", | ||
"combine_logs": true, | ||
"log_date_format": "YYYY-MM-DD HH:mm:ss Z" | ||
} | ||
] | ||
} | ||
"apps": [ | ||
{ | ||
"name": "team-alpha-dev", | ||
"script": "npm run start:prod", | ||
"log_file": "~/.pm2/logs/team-alpha-dev-out.log", | ||
"combine_logs": true, | ||
"log_date_format": "YYYY-MM-DD HH:mm:ss Z" | ||
} | ||
] | ||
} |
Oops, something went wrong.