Skip to content

Commit

Permalink
Merge pull request #163 from bosonprotocol/demo
Browse files Browse the repository at this point in the history
Upgrade production environment
  • Loading branch information
moh-abk authored Jul 13, 2021
2 parents 824b965 + a1b562e commit 4c6a7ee
Show file tree
Hide file tree
Showing 379 changed files with 412,511 additions and 48,376 deletions.
7 changes: 6 additions & 1 deletion .env.example
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"
7 changes: 7 additions & 0 deletions .envrc
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
28 changes: 28 additions & 0 deletions .eslintrc.json
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
}
]
}
}
4 changes: 4 additions & 0 deletions .git-crypt/.gitattributes
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 not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
2 changes: 2 additions & 0 deletions .gitattributes
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
4 changes: 4 additions & 0 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
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
35 changes: 35 additions & 0 deletions .github/workflows/deploy-demo.yaml
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
34 changes: 28 additions & 6 deletions .gitignore
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
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
12.20.0
1 change: 1 addition & 0 deletions .ruby-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
2.7.2
12 changes: 12 additions & 0 deletions CONTRIBUTORS.md
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
10 changes: 10 additions & 0 deletions Gemfile
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'
157 changes: 157 additions & 0 deletions Gemfile.lock
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
Loading

0 comments on commit 4c6a7ee

Please sign in to comment.