-
Notifications
You must be signed in to change notification settings - Fork 27
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 #69 from line/beta
release: 3.2343.14
- Loading branch information
Showing
467 changed files
with
10,392 additions
and
8,417 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,6 +1,7 @@ | ||
**/node_modules | ||
**/.next | ||
**/.turbo | ||
**/dist | ||
**/.env* | ||
!apps/web/.env.build | ||
!apps/web/.env.build | ||
docker | ||
volumes |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,29 @@ | ||
name: Run Tests On Pull Request | ||
|
||
on: | ||
pull_request: | ||
branches: [dev, beta, main] | ||
|
||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout Repo | ||
uses: actions/checkout@v2 | ||
|
||
- name: Setup Node.js environment | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: '18' | ||
|
||
- name: Install Dependencies | ||
run: yarn install --immutable --immutable-cache --check-cache | ||
|
||
- name: setup environment variables | ||
run: | | ||
echo "JWT_SECRET=${{ vars.TEST_JWT_SECRET }}" >> ./apps/api/.env.test | ||
echo "OS_USE=${{ vars.TEST_OS_USE }}" >> ./apps/api/.env.test | ||
- name: Run Tests | ||
run: yarn 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#!/usr/bin/env sh | ||
. "$(dirname -- "$0")/_/husky.sh" | ||
|
||
yarn typecheck | ||
yarn format | ||
yarn lint |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Empty file.
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,9 @@ | ||
{ | ||
"recommendations": [ | ||
"bradlc.vscode-tailwindcss", | ||
"dbaeumer.vscode-eslint", | ||
"esbenp.prettier-vscode", | ||
"expo.vscode-expo-tools", | ||
"yoavbls.pretty-ts-errors" | ||
] | ||
} |
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,15 @@ | ||
{ | ||
"editor.codeActionsOnSave": { | ||
"source.fixAll.eslint": true | ||
}, | ||
"editor.defaultFormatter": "esbenp.prettier-vscode", | ||
"editor.formatOnSave": true, | ||
"eslint.rules.customizations": [{ "rule": "*", "severity": "warn" }], | ||
"eslint.workingDirectories": [ | ||
{ "pattern": "apps/*/" }, | ||
{ "pattern": "packages/*/" }, | ||
{ "pattern": "tooling/*/" } | ||
], | ||
"typescript.enablePromptUseWorkspaceTsdk": true, | ||
"typescript.tsdk": "node_modules/typescript/lib" | ||
} |
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 |
---|---|---|
|
@@ -3,12 +3,13 @@ JWT_SECRET= # required | |
MYSQL_PRIMARY_URL= # default: mysql://userfeedback:userfeedback@localhost:13306/userfeedback | ||
MYSQL_SECONDARY_URLS= # default: ["mysql://userfeedback:userfeedback@localhost:13306/userfeedback"] | ||
|
||
SMTP_HOST= # default: localhost | ||
SMTP_PORT= # default: 25 | ||
SMTP_USERNAME= # default: '' | ||
SMTP_PASSWORD= # default: '' | ||
SMTP_SENDER= # default: [email protected] | ||
SMTP_BASE_URL= # default: http://localhost:3000 | ||
SMTP_USE= # default: false | ||
SMTP_HOST= # required if SMTP_USE=true | ||
SMTP_PORT= # required if SMTP_USE=true | ||
SMTP_USERNAME= # required if SMTP_USE=true | ||
SMTP_PASSWORD= # required if SMTP_USE=true | ||
SMTP_SENDER= # required if SMTP_USE=true | ||
SMTP_BASE_URL= # required if SMTP_USE=true | ||
|
||
OS_USE= # default: false | ||
OS_NODE= # default: http://localhost:9200 | ||
|
@@ -21,4 +22,7 @@ APP_ADDRESS= # default: 0.0.0.0 | |
AUTO_MIGRATION= # default: false | ||
|
||
MASTER_API_KEY= # default: none | ||
BASE_URL= # default: http://localhost:3000 | ||
BASE_URL= # default: http://localhost:3000 | ||
|
||
ACCESS_TOKEN_EXPIRED_TIME= # default: 10m | ||
REFESH_TOKEN_EXPIRED_TIME= # default: 1h |
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 was deleted.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -70,25 +70,33 @@ npm run migration:run | |
|
||
## Environment Variables | ||
|
||
| Environment | Description | Default Value | | ||
| -------------------- | -------------------------------------------------------------------------------- | ------------------------------------------------------------------ | | ||
| JWT_SECRET | JWT secret | # required | | ||
| MYSQL_PRIMARY_URL | mysql url | mysql://userfeedback:userfeedback@localhost:13306/userfeedback | | ||
| MYSQL_SECONDARY_URLS | mysql sub urls (must be json array format) | ["mysql://userfeedback:userfeedback@localhost:13306/userfeedback"] | | ||
| SMTP_HOST | smtp server host | localhost | | ||
| SMTP_PORT | smtp server port | 25 | | ||
| SMTP_USERNAME | smtp auth username | | | ||
| SMTP_PASSWORD | smtp auth password | | | ||
| SMTP_SENDER | mail sender email | [email protected] | | ||
| SMTP_BASE_URL | default UserFeedback URL for mail to be redirected | http://localhost:3000 | | ||
| APP_PORT | the post that the server is running on | 4000 | | ||
| APP_ADDRESS | the address that the server is running on | 0.0.0.0 | | ||
| OS_NODE | opensearch node url | http://localhost:9200 | | ||
| OS_USERNAME | opensearch username if exists | | | ||
| OS_PASSWORD | opensearch password if exists | | | ||
| AUTO_MIGRATION | set 'true' if you want to make the database migration automatically | | | ||
| MASTER_API_KEY | set a key if you want to make a master key for creating feedback | | | ||
| NODE_OPTIONS | set some options if you want to add for node execution (e.g. max_old_space_size) | | | ||
| Environment | Description | Default Value | | ||
| ------------------------- | -------------------------------------------------------------------------------- | ------------------------------------------------------------------ | | ||
| JWT_SECRET | JWT secret | # required | | ||
| MYSQL_PRIMARY_URL | mysql url | mysql://userfeedback:userfeedback@localhost:13306/userfeedback | | ||
| MYSQL_SECONDARY_URLS | mysql sub urls (must be json array format) | ["mysql://userfeedback:userfeedback@localhost:13306/userfeedback"] | | ||
| SMTP_USE | flag for using smtp server (for email verification on creating user) | false | | ||
| SMTP_HOST | smtp server host | localhost | | ||
| SMTP_PORT | smtp server port | 25 | | ||
| SMTP_USERNAME | smtp auth username | | | ||
| SMTP_PASSWORD | smtp auth password | | | ||
| SMTP_SENDER | mail sender email | [email protected] | | ||
| SMTP_BASE_URL | default UserFeedback URL for mail to be redirected | http://localhost:3000 | | ||
| APP_PORT | the post that the server is running on | 4000 | | ||
| APP_ADDRESS | the address that the server is running on | 0.0.0.0 | | ||
| OS_USE | flag for using opensearch (for better performance on searching feedbacks) | false | | ||
| OS_NODE | opensearch node url | http://localhost:9200 | | ||
| OS_USERNAME | opensearch username if exists | | | ||
| OS_PASSWORD | opensearch password if exists | | | ||
| AUTO_MIGRATION | set 'true' if you want to make the database migration automatically | | | ||
| MASTER_API_KEY | set a key if you want to make a master key for creating feedback | | | ||
| NODE_OPTIONS | set some options if you want to add for node execution (e.g. max_old_space_size) | | | ||
| ACCESS_TOKEN_EXPIRED_TIME | set expired time of access token | 10m | | ||
| REFESH_TOKEN_EXPIRED_TIME | set expired time of refresh token | 1h | | ||
|
||
## Swagger | ||
|
||
The swagger documentation can be found on the `/docs` endpoint. | ||
|
||
## Learn More | ||
|
||
|
Oops, something went wrong.