-
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 #163 from bosonprotocol/demo
Upgrade production environment
- Loading branch information
Showing
379 changed files
with
412,511 additions
and
48,376 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,9 @@ | ||
DB_CONNECTION_STRING=mongodb://localhost:27017/api | ||
DB_CONNECTION_STRING=mongodb://localhost:27017 | ||
DB_NAME=api | ||
DB_USERNAME=admin | ||
DB_PASSWORD=secret | ||
|
||
TOKEN_SECRET=1fdd5ab2823e118ee997219330c7abc37a56a5093b753b545ab40e5f216491eec5d400f121e678d6c5b03b01f2e56e1fd14b79afd5c0fdd61477ce469472a8a6 | ||
GCLOUD_SECRET=1f123ce56aeec5d400b2823e7abc121e6756e1f4b118ee | ||
|
||
VOUCHERS_BUCKET="vouchers-upload-images-bucket" |
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,7 @@ | ||
#!/usr/bin/env bash | ||
|
||
PROJECT_DIR="$(pwd)" | ||
|
||
PATH_add "${PROJECT_DIR}" | ||
PATH_add "${PROJECT_DIR}"/node_modules/.bin | ||
PATH_add "${PROJECT_DIR}"/vendor/**/bin |
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,28 @@ | ||
{ | ||
"extends": [ | ||
"eslint:recommended", | ||
"plugin:import/errors", | ||
"plugin:import/warnings", | ||
"prettier" | ||
], | ||
"plugins": [ | ||
"import" | ||
], | ||
"env": { | ||
"node": true, | ||
"es6": true, | ||
"commonjs": true, | ||
"mocha": true | ||
}, | ||
"parserOptions": { | ||
"ecmaVersion": 9 | ||
}, | ||
"rules": { | ||
"import/no-unresolved": [ | ||
2, | ||
{ | ||
"commonjs": true | ||
} | ||
] | ||
} | ||
} |
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,4 @@ | ||
# Do not edit this file. To specify the files to encrypt, create your own | ||
# .gitattributes file in the directory where your files are. | ||
* !filter !diff | ||
*.gpg binary |
Binary file added
BIN
+470 Bytes
.git-crypt/keys/default/0/04ED20CFC7112DE4E6C4070CED0E3AA9A664E742.gpg
Binary file not shown.
Binary file added
BIN
+470 Bytes
.git-crypt/keys/default/0/41D2606F66C3FF28874362B61A16916844CE9D82.gpg
Binary file not shown.
Binary file added
BIN
+726 Bytes
.git-crypt/keys/default/0/B14145CFE7938B456B337E514F2AE1DED258B20E.gpg
Binary file not shown.
Binary file added
BIN
+470 Bytes
.git-crypt/keys/default/0/CF76184B551B037240C4D457AFD792BACA20583D.gpg
Binary file not shown.
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,2 @@ | ||
config/secrets/** filter=git-crypt diff=git-crypt | ||
*.sol linguist-language=Solidity |
Validating CODEOWNERS rules …
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,4 @@ | ||
# These are the default owners of the repo | ||
* @bosonprotocol/code-reviewers | ||
|
||
# Anything else added after this line will take precedence |
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,35 @@ | ||
name: Demo Branch Backend Build and Deploy to GAE | ||
on: | ||
push: | ||
branches: | ||
- demo | ||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
node-version: [10.x] | ||
steps: | ||
- uses: actions/checkout@v1 | ||
- name: Use Node.js ${{ matrix.node-version }} | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
- name: build backend | ||
run: | | ||
npm install | ||
- uses: actions-hub/gcloud@master | ||
name: copy environment variables | ||
env: | ||
PROJECT_ID: ${{secrets.APP_ENGINE_PROJECT_ID_DEV}} | ||
APPLICATION_CREDENTIALS: ${{secrets.APP_ENGINE_CONFIG_DEV}} | ||
CLI: gsutil | ||
with: | ||
args: cp gs://boson-variables-dev/demo/.env . | ||
- uses: actions-hub/gcloud@master | ||
name: deploy service | ||
env: | ||
PROJECT_ID: ${{secrets.APP_ENGINE_PROJECT_ID_DEV}} | ||
APPLICATION_CREDENTIALS: ${{secrets.APP_ENGINE_CONFIG_DEV}} | ||
with: | ||
args: app deploy app-demo.yaml |
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,9 +1,31 @@ | ||
.env | ||
# See https://help.github.com/ignore-files/ for more about ignoring files. | ||
|
||
# Node / NPM / Yarn | ||
node_modules | ||
|
||
# Build | ||
/local | ||
/build | ||
/run | ||
/vendor | ||
|
||
# Secrets | ||
.secret | ||
**/.env | ||
.env.prod | ||
/node_modules/ | ||
package-lock.json | ||
|
||
# OS | ||
.DS_Store | ||
yarn.lock | ||
/tests | ||
|
||
.idea | ||
# IntelliJ IDEA | ||
*.iml | ||
*.iws | ||
*.ipr | ||
.idea/ | ||
|
||
# Test Coverage | ||
/coverage* | ||
.nyc_output | ||
|
||
# Personal Preferences | ||
.vscode |
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.20.0 |
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 @@ | ||
2.7.2 |
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 @@ | ||
# Contributors | ||
|
||
These people have contributed commits to this project. Other developers have also worked on this project and contributed in other ways, such as design, product management, or tech writing. If you think someone should be here who isn't, please add them! | ||
|
||
This list was automatically seeded by running [`git authors`](https://github.com/tj/git-extras/blob/master/Commands.md#git-authors). | ||
|
||
- HristiyanG | ||
- George Spasov | ||
- Vladislav Ivanov | ||
- Aneta | ||
- Richard Littauer | ||
- thecryptofruit |
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,10 @@ | ||
source 'https://rubygems.org' | ||
|
||
gem 'rake', '~> 13.0' | ||
gem 'rake_terraform', '~> 1.19' | ||
gem 'rake_docker', '~> 2.13' | ||
gem 'rake_fly', '~> 2.7' | ||
gem 'rake_gpg', '~> 0.16' | ||
gem 'git', '~> 1.8' | ||
gem 'confidante', '~> 0.27' | ||
gem 'shivers', '~> 0.5' |
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,157 @@ | ||
GEM | ||
remote: https://rubygems.org/ | ||
specs: | ||
activesupport (6.1.3.2) | ||
concurrent-ruby (~> 1.0, >= 1.0.2) | ||
i18n (>= 1.6, < 2) | ||
minitest (>= 5.1) | ||
tzinfo (~> 2.0) | ||
zeitwerk (~> 2.3) | ||
aws-eventstream (1.1.1) | ||
aws-partitions (1.465.0) | ||
aws-sdk-core (3.114.0) | ||
aws-eventstream (~> 1, >= 1.0.2) | ||
aws-partitions (~> 1, >= 1.239.0) | ||
aws-sigv4 (~> 1.1) | ||
jmespath (~> 1.0) | ||
aws-sdk-ecr (1.42.0) | ||
aws-sdk-core (~> 3, >= 3.112.0) | ||
aws-sigv4 (~> 1.1) | ||
aws-sigv4 (1.2.3) | ||
aws-eventstream (~> 1, >= 1.0.2) | ||
colored2 (3.1.2) | ||
concourse.rb (0.4.0) | ||
dry-schema (~> 0.5) | ||
excon (~> 0.72) | ||
semantic (~> 1.5) | ||
concurrent-ruby (1.1.8) | ||
confidante (0.27.0) | ||
activesupport (>= 4) | ||
hiera (~> 3.3, >= 3.3.1) | ||
shikashi (~> 0.6) | ||
docker-api (1.34.2) | ||
excon (>= 0.47.0) | ||
multi_json | ||
dry-configurable (0.12.1) | ||
concurrent-ruby (~> 1.0) | ||
dry-core (~> 0.5, >= 0.5.0) | ||
dry-container (0.7.2) | ||
concurrent-ruby (~> 1.0) | ||
dry-configurable (~> 0.1, >= 0.1.3) | ||
dry-core (0.5.0) | ||
concurrent-ruby (~> 1.0) | ||
dry-equalizer (0.3.0) | ||
dry-inflector (0.2.0) | ||
dry-initializer (3.0.4) | ||
dry-logic (1.2.0) | ||
concurrent-ruby (~> 1.0) | ||
dry-core (~> 0.5, >= 0.5) | ||
dry-schema (0.6.0) | ||
concurrent-ruby (~> 1.0) | ||
dry-configurable (~> 0.8, >= 0.8.0) | ||
dry-core (~> 0.4) | ||
dry-equalizer (~> 0.2) | ||
dry-initializer (~> 3.0) | ||
dry-logic (~> 1.0) | ||
dry-types (~> 1.0) | ||
dry-types (1.5.1) | ||
concurrent-ruby (~> 1.0) | ||
dry-container (~> 0.3) | ||
dry-core (~> 0.5, >= 0.5) | ||
dry-inflector (~> 0.1, >= 0.1.2) | ||
dry-logic (~> 1.0, >= 1.0.2) | ||
evalhook (0.6.0) | ||
partialruby (~> 0.3) | ||
sexp_processor (~> 4.0) | ||
excon (0.82.0) | ||
getsource (0.2.2) | ||
git (1.8.1) | ||
rchardet (~> 1.8) | ||
hamster (3.0.0) | ||
concurrent-ruby (~> 1.0) | ||
hiera (3.7.0) | ||
i18n (1.8.10) | ||
concurrent-ruby (~> 1.0) | ||
immutable-struct (2.4.1) | ||
jmespath (1.4.0) | ||
lino (3.0.0) | ||
hamster (~> 3.0) | ||
open4 (~> 1.3) | ||
minitar (0.9) | ||
minitest (5.14.4) | ||
multi_json (1.15.0) | ||
open4 (1.3.4) | ||
partialruby (0.3.0) | ||
ruby2ruby (~> 2) | ||
ruby_parser (~> 3) | ||
rake (13.0.3) | ||
rake_dependencies (2.11.0) | ||
hamster (~> 3.0) | ||
minitar (~> 0.9) | ||
rake_factory (~> 0.23) | ||
rubyzip (>= 1.3) | ||
rake_docker (2.13.0) | ||
aws-sdk-ecr (~> 1.2) | ||
colored2 (~> 3.1) | ||
docker-api (~> 1.34) | ||
rake_factory (~> 0.23) | ||
rake_factory (0.29.0) | ||
activesupport (>= 4) | ||
rake (~> 13.0) | ||
rake_fly (2.7.0) | ||
concourse.rb (>= 0.4) | ||
rake_dependencies (~> 2, < 3) | ||
rake_factory (>= 0.29, < 1) | ||
ruby_fly (>= 0.35) | ||
semantic (~> 1.6.1) | ||
rake_gpg (0.16.0) | ||
rake_factory (>= 0.23, < 1) | ||
ruby_gpg2 (>= 0.6, < 1) | ||
rake_terraform (1.19.0) | ||
colored2 (~> 3.1) | ||
rake_dependencies (~> 2.11) | ||
rake_factory (~> 0.23) | ||
ruby-terraform (~> 1.1) | ||
rchardet (1.8.0) | ||
ruby-terraform (1.2.0) | ||
immutable-struct (~> 2.4) | ||
lino (~> 3.0) | ||
ruby2ruby (2.4.4) | ||
ruby_parser (~> 3.1) | ||
sexp_processor (~> 4.6) | ||
ruby_fly (0.35.0) | ||
lino (>= 1.5) | ||
ruby_gpg2 (0.8.0) | ||
lino (>= 1.5) | ||
ruby_parser (3.16.0) | ||
sexp_processor (~> 4.15, >= 4.15.1) | ||
rubyzip (2.3.0) | ||
semantic (1.6.1) | ||
sexp_processor (4.15.3) | ||
shikashi (0.6.0) | ||
evalhook (>= 0.6.0) | ||
getsource (>= 0.1.0) | ||
shivers (0.5.0) | ||
semantic (~> 1.6) | ||
tzinfo (2.0.4) | ||
concurrent-ruby (~> 1.0) | ||
zeitwerk (2.4.2) | ||
|
||
PLATFORMS | ||
arm64-darwin-20 | ||
x86_64-darwin-19 | ||
x86_64-darwin-20 | ||
x86_64-linux | ||
|
||
DEPENDENCIES | ||
confidante (~> 0.27) | ||
git (~> 1.8) | ||
rake (~> 13.0) | ||
rake_docker (~> 2.13) | ||
rake_fly (~> 2.7) | ||
rake_gpg (~> 0.16) | ||
rake_terraform (~> 1.19) | ||
shivers (~> 0.5) | ||
|
||
BUNDLED WITH | ||
2.2.18 |
Oops, something went wrong.