-
Notifications
You must be signed in to change notification settings - Fork 0
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 #90 from Tonomy-Foundation/development
Development
- Loading branch information
Showing
17 changed files
with
939 additions
and
144 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,4 +1,5 @@ | ||
node_modules | ||
dist | ||
.yarn | ||
.yarn/cache | ||
.yarn/unplugged | ||
.git |
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,20 +1,20 @@ | ||
name: Test - Check SDK version | ||
|
||
on: | ||
pull_request | ||
|
||
on: pull_request | ||
|
||
jobs: | ||
check-sdk-version: | ||
runs-on: ubuntu-20.04 | ||
runs-on: ubuntu-20.04 | ||
|
||
steps: | ||
- name: 🏗 Setup repo | ||
uses: actions/checkout@v3 | ||
steps: | ||
- name: 🏗 Setup repo | ||
uses: actions/checkout@v4 | ||
|
||
- name: 📦 Check it is using the latest version of the SDK | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 18.12.1 | ||
- run: corepack enable | ||
- run: yarn install --immutable | ||
- run: yarn run updateSdkVersion $GITHUB_BASE_REF check | ||
- name: 📦 Check it is using the latest version of the SDK | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: 18.12.1 | ||
- run: corepack enable | ||
- run: yarn -v | ||
- run: yarn install --immutable | ||
- run: yarn run updateSdkVersion $GITHUB_BASE_REF check |
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 |
---|---|---|
|
@@ -13,6 +13,8 @@ lerna-debug.log* | |
|
||
# yarn caching | ||
.yarn | ||
.yarn/cache | ||
.yarn/unplugged | ||
|
||
# OS | ||
.DS_Store | ||
|
Large diffs are not rendered by default.
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 |
---|---|---|
@@ -1 +1,3 @@ | ||
nodeLinker: node-modules | ||
|
||
yarnPath: .yarn/releases/yarn-3.1.1.cjs |
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 |
---|---|---|
|
@@ -54,3 +54,23 @@ yarn run test:cov | |
|
||
<https://localhost:5000/openapi> (for REST API with Open API) | ||
<https://localhost:5000/asyncapi> (for websocket with Async API) | ||
|
||
## Digital Ocean Settings | ||
|
||
Run in a Digital Ocean App which runs the nodejs project: <https://docs.digitalocean.com/products/app-platform/> | ||
|
||
Using Ubuntu 22.04 with Nodejs 18.x is enabled: | ||
|
||
- <https://docs.digitalocean.com/products/app-platform/reference/buildpacks/nodejs/#ubuntu-2204-stack-supporting-nodejs-18> | ||
|
||
Build command: `yarn -v && yarn install && yarn run build` | ||
|
||
- NOTE: we need to run `yarn install` again so that we install with `[email protected]` which we force via`.yarnrc.yml` and `.yarn/releases/yarn-3.1.1.cjs`. See <https://github.com/Tonomy-Foundation/Tonomy-Communication/issues/85> for more details. | ||
|
||
Run command: `yarn run start:prod` | ||
|
||
Environment variables | ||
|
||
- NODE_ENV | ||
- CREATE_ACCOUNT_PRIVATE_KEY | ||
- HCAPTCHA_SECRET |
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
import { MessageDto } from './message.dto'; | ||
|
||
export class BodyDto { | ||
value?: MessageDto; | ||
error?: Error | any; | ||
value?: MessageDto; | ||
error?: Error | any; | ||
} |
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
Oops, something went wrong.