souls 0.23.8 → 0.24.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.gitignore +1 -1
- data/.irbrc +1 -0
- data/Gemfile.lock +1 -1
- data/README.md +34 -5
- data/apps/api/.env.sample +7 -0
- data/apps/api/.gitignore +32 -0
- data/apps/api/.irbrc +4 -0
- data/apps/api/.rspec +3 -0
- data/apps/api/.rubocop.yml +132 -0
- data/apps/api/.ruby-version +1 -0
- data/apps/api/CODE_OF_CONDUCT.md +74 -0
- data/apps/api/Dockerfile +16 -0
- data/apps/api/Dockerfile.dev +17 -0
- data/apps/api/Gemfile +50 -0
- data/apps/api/Gemfile.lock +412 -0
- data/apps/api/LICENSE.txt +67 -0
- data/apps/api/Procfile +2 -0
- data/apps/api/Procfile.dev +2 -0
- data/apps/api/README.md +37 -0
- data/apps/api/Rakefile +5 -0
- data/apps/api/app.rb +114 -0
- data/apps/api/app/engines/notification_engine.rb +5 -0
- data/apps/api/app/graphql/mutations/.keep +0 -0
- data/apps/api/app/graphql/mutations/base/article/create_article.rb +30 -0
- data/apps/api/app/graphql/mutations/base/article/delete_article.rb +17 -0
- data/apps/api/app/graphql/mutations/base/article/destroy_delete_article.rb +17 -0
- data/apps/api/app/graphql/mutations/base/article/update_article.rb +30 -0
- data/apps/api/app/graphql/mutations/base/article_category/create_article_category.rb +21 -0
- data/apps/api/app/graphql/mutations/base/article_category/delete_article_category.rb +17 -0
- data/apps/api/app/graphql/mutations/base/article_category/destroy_delete_article_category.rb +17 -0
- data/apps/api/app/graphql/mutations/base/article_category/update_article_category.rb +21 -0
- data/apps/api/app/graphql/mutations/base/user/create_user.rb +31 -0
- data/apps/api/app/graphql/mutations/base/user/delete_user.rb +17 -0
- data/apps/api/app/graphql/mutations/base/user/destroy_delete_user.rb +17 -0
- data/apps/api/app/graphql/mutations/base/user/update_user.rb +31 -0
- data/apps/api/app/graphql/mutations/base_mutation.rb +65 -0
- data/apps/api/app/graphql/mutations/managers/user_manager/add_user_role.rb +22 -0
- data/apps/api/app/graphql/mutations/managers/user_manager/remove_user_role.rb +22 -0
- data/apps/api/app/graphql/mutations/managers/user_manager/sign_in_user.rb +45 -0
- data/apps/api/app/graphql/queries/article.rb +13 -0
- data/apps/api/app/graphql/queries/article_categories.rb +11 -0
- data/apps/api/app/graphql/queries/article_category.rb +13 -0
- data/apps/api/app/graphql/queries/articles.rb +11 -0
- data/apps/api/app/graphql/queries/base_query.rb +12 -0
- data/apps/api/app/graphql/queries/me.rb +11 -0
- data/apps/api/app/graphql/queries/user.rb +13 -0
- data/apps/api/app/graphql/queries/users.rb +11 -0
- data/apps/api/app/graphql/resolvers/article_category_search.rb +41 -0
- data/apps/api/app/graphql/resolvers/article_search.rb +57 -0
- data/apps/api/app/graphql/resolvers/base.rb +17 -0
- data/apps/api/app/graphql/resolvers/user_search.rb +63 -0
- data/apps/api/app/graphql/souls_api_schema.rb +43 -0
- data/apps/api/app/graphql/types/.keep +0 -0
- data/apps/api/app/graphql/types/article_category_type.rb +12 -0
- data/apps/api/app/graphql/types/article_type.rb +30 -0
- data/apps/api/app/graphql/types/base/base_argument.rb +4 -0
- data/apps/api/app/graphql/types/base/base_enum.rb +4 -0
- data/apps/api/app/graphql/types/base/base_field.rb +5 -0
- data/apps/api/app/graphql/types/base/base_input_object.rb +5 -0
- data/apps/api/app/graphql/types/base/base_interface.rb +7 -0
- data/apps/api/app/graphql/types/base/base_object.rb +6 -0
- data/apps/api/app/graphql/types/base/base_scalar.rb +4 -0
- data/apps/api/app/graphql/types/base/base_union.rb +4 -0
- data/apps/api/app/graphql/types/base/mutation_type.rb +26 -0
- data/apps/api/app/graphql/types/base/query_type.rb +18 -0
- data/apps/api/app/graphql/types/connections/article_category_connection.rb +3 -0
- data/apps/api/app/graphql/types/connections/article_connection.rb +3 -0
- data/apps/api/app/graphql/types/connections/base_connection.rb +14 -0
- data/apps/api/app/graphql/types/connections/user_connection.rb +3 -0
- data/apps/api/app/graphql/types/edges/article_category_edge.rb +5 -0
- data/apps/api/app/graphql/types/edges/article_edge.rb +5 -0
- data/apps/api/app/graphql/types/edges/base_edge.rb +4 -0
- data/apps/api/app/graphql/types/edges/user_edge.rb +5 -0
- data/apps/api/app/graphql/types/user_type.rb +24 -0
- data/apps/api/app/models/article.rb +4 -0
- data/apps/api/app/models/article_category.rb +3 -0
- data/apps/api/app/models/user.rb +19 -0
- data/apps/api/app/policies/application_policy.rb +40 -0
- data/apps/api/app/policies/article_category_policy.rb +31 -0
- data/apps/api/app/policies/article_policy.rb +31 -0
- data/apps/api/app/policies/user_policy.rb +35 -0
- data/apps/api/app/utils/association_loader.rb +50 -0
- data/apps/api/app/utils/fire_store.rb +9 -0
- data/apps/api/app/utils/firebase_id_token.rb +4 -0
- data/apps/api/app/utils/json_web_token.rb +13 -0
- data/apps/api/app/utils/record_loader.rb +10 -0
- data/apps/api/app/utils/souls_helper.rb +18 -0
- data/apps/api/cloudbuild.yml +32 -0
- data/apps/api/config.ru +17 -0
- data/apps/api/config/database.yml +33 -0
- data/apps/api/config/souls.rb +10 -0
- data/apps/api/constants/areas.rb +71 -0
- data/apps/api/constants/column_name_ja.rb +27 -0
- data/apps/api/db/migrate/20200006095538_create_users.rb +30 -0
- data/apps/api/db/migrate/20200712180236_create_article_categories.rb +12 -0
- data/apps/api/db/migrate/20200714215521_create_articles.rb +22 -0
- data/apps/api/db/schema.rb +78 -0
- data/apps/api/db/seeds.rb +44 -0
- data/apps/api/github/workflows/delivery.yml +81 -0
- data/apps/api/log/.keep +0 -0
- data/apps/api/spec/factories/article_categories.rb +9 -0
- data/apps/api/spec/factories/articles.rb +17 -0
- data/apps/api/spec/factories/users.rb +23 -0
- data/apps/api/spec/models/article_category_spec.rb +7 -0
- data/apps/api/spec/models/article_spec.rb +7 -0
- data/apps/api/spec/models/user_spec.rb +7 -0
- data/apps/api/spec/mutations/base/article_category_spec.rb +46 -0
- data/apps/api/spec/mutations/base/article_spec.rb +70 -0
- data/apps/api/spec/mutations/base/user_spec.rb +76 -0
- data/apps/api/spec/policies/article_category_policy_spec.rb +24 -0
- data/apps/api/spec/policies/article_policy_spec.rb +24 -0
- data/apps/api/spec/policies/user_policy_spec.rb +24 -0
- data/apps/api/spec/queries/article_category_spec.rb +39 -0
- data/apps/api/spec/queries/article_spec.rb +53 -0
- data/apps/api/spec/queries/user_spec.rb +59 -0
- data/apps/api/spec/resolvers/article_category_search_spec.rb +54 -0
- data/apps/api/spec/resolvers/article_search_spec.rb +68 -0
- data/apps/api/spec/resolvers/user_search_spec.rb +74 -0
- data/apps/api/spec/spec_helper.rb +110 -0
- data/apps/api/tmp/.keep +0 -0
- data/apps/worker/.env.sample +9 -0
- data/apps/worker/.gitignore +32 -0
- data/apps/worker/.irbrc +4 -0
- data/apps/worker/.rspec +3 -0
- data/apps/worker/.rubocop.yml +132 -0
- data/apps/worker/.ruby-version +1 -0
- data/apps/worker/CODE_OF_CONDUCT.md +74 -0
- data/apps/worker/Dockerfile +16 -0
- data/apps/worker/Dockerfile.dev +17 -0
- data/apps/worker/Gemfile +49 -0
- data/apps/worker/Gemfile.lock +396 -0
- data/apps/worker/LICENSE.txt +67 -0
- data/apps/worker/Procfile +1 -0
- data/apps/worker/Procfile.dev +1 -0
- data/apps/worker/README.md +37 -0
- data/apps/worker/Rakefile +5 -0
- data/apps/worker/app.rb +101 -0
- data/apps/worker/app/engines/notification_engine.rb +5 -0
- data/apps/worker/app/graphql/mutations/.keep +0 -0
- data/apps/worker/app/graphql/mutations/base_mutation.rb +16 -0
- data/apps/worker/app/graphql/mutations/workers/send_user_mail_job.rb +31 -0
- data/apps/worker/app/graphql/souls_api_schema.rb +43 -0
- data/apps/worker/app/graphql/types/.keep +0 -0
- data/apps/worker/app/graphql/types/base/base_argument.rb +4 -0
- data/apps/worker/app/graphql/types/base/base_enum.rb +4 -0
- data/apps/worker/app/graphql/types/base/base_field.rb +5 -0
- data/apps/worker/app/graphql/types/base/base_input_object.rb +5 -0
- data/apps/worker/app/graphql/types/base/base_interface.rb +7 -0
- data/apps/worker/app/graphql/types/base/base_object.rb +5 -0
- data/apps/worker/app/graphql/types/base/base_scalar.rb +4 -0
- data/apps/worker/app/graphql/types/base/base_union.rb +4 -0
- data/apps/worker/app/graphql/types/base/mutation_type.rb +12 -0
- data/apps/worker/app/graphql/types/base/query_type.rb +6 -0
- data/apps/worker/app/models/article.rb +4 -0
- data/apps/worker/app/models/article_category.rb +3 -0
- data/apps/worker/app/models/user.rb +19 -0
- data/apps/worker/app/utils/fire_store.rb +9 -0
- data/apps/worker/app/utils/souls_helper.rb +96 -0
- data/apps/worker/cloudbuild.yml +32 -0
- data/apps/worker/config.ru +17 -0
- data/apps/worker/config/database.yml +33 -0
- data/apps/worker/config/souls.rb +10 -0
- data/apps/worker/db/migrate/20200006095538_create_users.rb +30 -0
- data/apps/worker/db/migrate/20200712180236_create_article_categories.rb +12 -0
- data/apps/worker/db/migrate/20200714215521_create_articles.rb +22 -0
- data/apps/worker/db/schema.rb +78 -0
- data/apps/worker/db/seeds.rb +44 -0
- data/apps/worker/github/workflows/delivery.yml +81 -0
- data/apps/worker/log/.keep +0 -0
- data/apps/worker/spec/factories/article_categories.rb +9 -0
- data/apps/worker/spec/factories/articles.rb +17 -0
- data/apps/worker/spec/factories/users.rb +23 -0
- data/apps/worker/spec/models/article_category_spec.rb +7 -0
- data/apps/worker/spec/models/article_spec.rb +7 -0
- data/apps/worker/spec/models/user_spec.rb +7 -0
- data/apps/worker/spec/spec_helper.rb +110 -0
- data/apps/worker/tmp/.keep +0 -0
- data/config/souls.rb +7 -3
- data/exe/souls +16 -3
- data/lib/souls.rb +129 -140
- data/lib/souls/gcloud.rb +1 -0
- data/lib/souls/gcloud/compute.rb +62 -60
- data/lib/souls/gcloud/iam.rb +38 -22
- data/lib/souls/gcloud/pubsub.rb +21 -0
- data/lib/souls/init.rb +1 -16
- data/lib/souls/version.rb +1 -1
- metadata +176 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8305b1df5cacb1a4ec1e331666f60fe43fdb4c29b20d29caa2815ed8ae7e18f1
|
4
|
+
data.tar.gz: '08130c02290519c844dac657f9a5b4f3663a13e0931ad96a326e276d9a3e696d'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ff64c773e7b4e7b8050e6626c49ed0a11734e9c6688ddc364899c186b51f60a9e2e2eadb4d85f5be34b86cec3b7a38bdad600425eb02b27075ace03820f809cf
|
7
|
+
data.tar.gz: c527bc6749ad24f8827c4e68459cd5d7c945c156b66fceb224703804d168be3987f58df5988f8ed30d6ee93e704c12b04b034d5e1764356efada87c985395e91
|
data/.gitignore
CHANGED
data/.irbrc
CHANGED
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -19,10 +19,10 @@
|
|
19
19
|
|
20
20
|
## What's SOULs?
|
21
21
|
|
22
|
-
Welcome to SOULs Framework!
|
22
|
+
Welcome to SOULs Serverless Application Framework!
|
23
23
|
|
24
|
-
SOULs is a Serverless Application Framework.
|
25
|
-
SOULs has six strains, API, Worker, Console, Admin, Media, Doc, and can be used in combination according to the purpose. SOULs Backend GraphQL Ruby & Frontend Relay are Scalable and Easy to deploy to Google Cloud.
|
24
|
+
SOULs is a Serverless Application Framework with GraphQL.
|
25
|
+
SOULs has six strains, API, Worker, Console, Admin, Media, Doc, and can be used in combination according to the purpose. SOULs Backend GraphQL Ruby & Frontend Relay are Scalable and Easy to deploy to Google Cloud. No more routing for Backends!
|
26
26
|
You can focus on your business logic. No more infra problems.
|
27
27
|
|
28
28
|
SOULs creates 6 types of framework.
|
@@ -74,7 +74,7 @@ And Create Your APP
|
|
74
74
|
|
75
75
|
$ souls new app_name
|
76
76
|
|
77
|
-
|
77
|
+
## Choose SOULs Type:
|
78
78
|
|
79
79
|
Select Strain:
|
80
80
|
1. SOULs GraphQL API
|
@@ -85,8 +85,37 @@ Select Strain:
|
|
85
85
|
6. SOULs Doc Web
|
86
86
|
|
87
87
|
|
88
|
-
##
|
88
|
+
## Gemfile 自動更新アップデート
|
89
89
|
|
90
|
+
`Gemfile`, `Gemfile.lock` を最新のバージョンに自動更新します。
|
91
|
+
|
92
|
+
```
|
93
|
+
souls gem:update
|
94
|
+
```
|
95
|
+
|
96
|
+
|
97
|
+
除外したい `gem` は `config/souls.rb` 内の
|
98
|
+
`config.fixed_gems` の配列に追加します。
|
99
|
+
|
100
|
+
|
101
|
+
```ruby
|
102
|
+
Souls.configure do |config|
|
103
|
+
config.app = "souls-api"
|
104
|
+
config.project_id = "souls-api"
|
105
|
+
config.strain = "worker"
|
106
|
+
config.api_repo = "elsoul/souls_api"
|
107
|
+
config.worker_repo = "elsoul/souls_worker"
|
108
|
+
config.worker_endpoint = "https://worker.com"
|
109
|
+
config.fixed_gems = ["selenium-webdriver", "pg"]
|
110
|
+
end
|
111
|
+
```
|
112
|
+
|
113
|
+
|
114
|
+
|
115
|
+
## SOULs Serverless Application Framework Document
|
116
|
+
|
117
|
+
SOULs サーバーレスアプリケーションフレームワーク
|
118
|
+
ドキュメントはこちらから
|
90
119
|
- [SOULs Document](https://souls.elsoul.nl/)
|
91
120
|
|
92
121
|
|
data/apps/api/.gitignore
ADDED
@@ -0,0 +1,32 @@
|
|
1
|
+
# See https://help.github.com/articles/ignoring-files for more about ignoring files.
|
2
|
+
#
|
3
|
+
# If you find yourself ignoring temporary files generated by your text editor
|
4
|
+
# or operating system, you probably want to add a global ignore instead:
|
5
|
+
# git config --global core.excludesfile '~/.gitignore_global'
|
6
|
+
|
7
|
+
# Ignore bundler config.
|
8
|
+
/.bundle
|
9
|
+
# Ignore all logfiles and tempfiles.
|
10
|
+
/log/*
|
11
|
+
/tmp/*
|
12
|
+
!/log/.keep
|
13
|
+
!/tmp/.keep
|
14
|
+
/config/initializers/souls.rb
|
15
|
+
/elsoul.key
|
16
|
+
# Ignore pidfiles, but keep the directory.
|
17
|
+
/tmp/pids/*
|
18
|
+
!/tmp/pids/
|
19
|
+
!/tmp/pids/.keep
|
20
|
+
/infra/config/*
|
21
|
+
.env
|
22
|
+
.envrc
|
23
|
+
.irb_history
|
24
|
+
/public/assets
|
25
|
+
.byebug_history
|
26
|
+
.DS_Store
|
27
|
+
# Ignore master key for decrypting credentials and more.
|
28
|
+
/config/master.key
|
29
|
+
/config/keyfile.json
|
30
|
+
/config/initializers/souls.rb
|
31
|
+
dump.rdb
|
32
|
+
/imgs/
|
data/apps/api/.irbrc
ADDED
data/apps/api/.rspec
ADDED
@@ -0,0 +1,132 @@
|
|
1
|
+
require: rubocop-graphql
|
2
|
+
AllCops:
|
3
|
+
SuggestExtensions: false
|
4
|
+
EnabledByDefault: true
|
5
|
+
Exclude:
|
6
|
+
- "db/migrate/*.rb"
|
7
|
+
- "db/schema.rb"
|
8
|
+
- "spec/spec_helper.rb"
|
9
|
+
|
10
|
+
Style/Copyright:
|
11
|
+
Description: "Include a copyright notice in each file before any code."
|
12
|
+
Enabled: false
|
13
|
+
VersionAdded: "0.30"
|
14
|
+
Notice: '^Copyright (\(c\) )?2[0-9]{3} .+'
|
15
|
+
AutocorrectNotice: "Copyright 2021 by ELSOUL LABO B.V."
|
16
|
+
|
17
|
+
Style/TopLevelMethodDefinition:
|
18
|
+
Exclude:
|
19
|
+
- "db/seeds.rb"
|
20
|
+
- "spec/spec_helper.rb"
|
21
|
+
|
22
|
+
Style/IpAddresses:
|
23
|
+
Exclude:
|
24
|
+
- "config.ru"
|
25
|
+
- "Gemfile"
|
26
|
+
|
27
|
+
Style/HashSyntax:
|
28
|
+
EnforcedStyle: ruby19
|
29
|
+
Exclude:
|
30
|
+
- "**/*.rake"
|
31
|
+
- "Rakefile"
|
32
|
+
|
33
|
+
Style/Semicolon:
|
34
|
+
Exclude:
|
35
|
+
- "spec/**/*"
|
36
|
+
|
37
|
+
Style/StringLiterals:
|
38
|
+
EnforcedStyle: double_quotes
|
39
|
+
|
40
|
+
Style/ClassVars:
|
41
|
+
Exclude:
|
42
|
+
- "spec/spec_helper.rb"
|
43
|
+
Style/StringConcatenation:
|
44
|
+
Enabled: false
|
45
|
+
|
46
|
+
Style/Documentation:
|
47
|
+
Enabled: false
|
48
|
+
|
49
|
+
Style/DocumentationMethod:
|
50
|
+
Enabled: false
|
51
|
+
|
52
|
+
Style/FrozenStringLiteralComment:
|
53
|
+
Enabled: false
|
54
|
+
Style/Lambda:
|
55
|
+
EnforcedStyle: literal
|
56
|
+
|
57
|
+
Style/AsciiComments:
|
58
|
+
Enabled: false
|
59
|
+
|
60
|
+
Style/MissingElse:
|
61
|
+
Enabled: false
|
62
|
+
|
63
|
+
Style/StringHashKeys:
|
64
|
+
Exclude:
|
65
|
+
- "spec/**/*.rb"
|
66
|
+
|
67
|
+
Style/CollectionMethods:
|
68
|
+
Enabled: false
|
69
|
+
|
70
|
+
Style/FormatString:
|
71
|
+
Enabled: false
|
72
|
+
|
73
|
+
Style/ClassAndModuleChildren:
|
74
|
+
Enabled: false
|
75
|
+
|
76
|
+
Layout/ExtraSpacing:
|
77
|
+
Exclude:
|
78
|
+
- "db/migrate/*.rb"
|
79
|
+
|
80
|
+
Layout/LineEndStringConcatenationIndentation:
|
81
|
+
Enabled: false
|
82
|
+
|
83
|
+
GraphQL/ObjectDescription:
|
84
|
+
Enabled: false
|
85
|
+
|
86
|
+
GraphQL/FieldDescription:
|
87
|
+
Enabled: false
|
88
|
+
|
89
|
+
GraphQL/ArgumentDescription:
|
90
|
+
Enabled: false
|
91
|
+
|
92
|
+
GraphQL/ExtractInputType:
|
93
|
+
Enabled: false
|
94
|
+
|
95
|
+
GraphQL/ExtractType:
|
96
|
+
Enabled: false
|
97
|
+
|
98
|
+
GraphQL/ArgumentName:
|
99
|
+
Enabled: false
|
100
|
+
|
101
|
+
Lint/ConstantResolution:
|
102
|
+
Enabled: false
|
103
|
+
|
104
|
+
Lint/NumberConversion:
|
105
|
+
Enabled: false
|
106
|
+
|
107
|
+
Lint/MissingSuper:
|
108
|
+
Enabled: false
|
109
|
+
|
110
|
+
Metrics/AbcSize:
|
111
|
+
Enabled: false
|
112
|
+
|
113
|
+
Metrics/MethodLength:
|
114
|
+
Enabled: false
|
115
|
+
|
116
|
+
Metrics/BlockLength:
|
117
|
+
Enabled: false
|
118
|
+
|
119
|
+
Metrics/CyclomaticComplexity:
|
120
|
+
Enabled: false
|
121
|
+
|
122
|
+
Metrics/PerceivedComplexity:
|
123
|
+
Enabled: false
|
124
|
+
|
125
|
+
Naming/AccessorMethodName:
|
126
|
+
Enabled: false
|
127
|
+
|
128
|
+
Naming/PredicateName:
|
129
|
+
Enabled: false
|
130
|
+
|
131
|
+
Bundler/GemComment:
|
132
|
+
Enabled: false
|
@@ -0,0 +1 @@
|
|
1
|
+
3.0.1
|
@@ -0,0 +1,74 @@
|
|
1
|
+
# Contributor Covenant Code of Conduct
|
2
|
+
|
3
|
+
## Our Pledge
|
4
|
+
|
5
|
+
In the interest of fostering an open and welcoming environment, we as
|
6
|
+
contributors and maintainers pledge to making participation in our project and
|
7
|
+
our community a harassment-free experience for everyone, regardless of age, body
|
8
|
+
size, disability, ethnicity, gender identity and expression, level of experience,
|
9
|
+
nationality, personal appearance, race, religion, or sexual identity and
|
10
|
+
orientation.
|
11
|
+
|
12
|
+
## Our Standards
|
13
|
+
|
14
|
+
Examples of behavior that contributes to creating a positive environment
|
15
|
+
include:
|
16
|
+
|
17
|
+
* Using welcoming and inclusive language
|
18
|
+
* Being respectful of differing viewpoints and experiences
|
19
|
+
* Gracefully accepting constructive criticism
|
20
|
+
* Focusing on what is best for the community
|
21
|
+
* Showing empathy towards other community members
|
22
|
+
|
23
|
+
Examples of unacceptable behavior by participants include:
|
24
|
+
|
25
|
+
* The use of sexualized language or imagery and unwelcome sexual attention or
|
26
|
+
advances
|
27
|
+
* Trolling, insulting/derogatory comments, and personal or political attacks
|
28
|
+
* Public or private harassment
|
29
|
+
* Publishing others' private information, such as a physical or electronic
|
30
|
+
address, without explicit permission
|
31
|
+
* Other conduct which could reasonably be considered inappropriate in a
|
32
|
+
professional setting
|
33
|
+
|
34
|
+
## Our Responsibilities
|
35
|
+
|
36
|
+
Project maintainers are responsible for clarifying the standards of acceptable
|
37
|
+
behavior and are expected to take appropriate and fair corrective action in
|
38
|
+
response to any instances of unacceptable behavior.
|
39
|
+
|
40
|
+
Project maintainers have the right and responsibility to remove, edit, or
|
41
|
+
reject comments, commits, code, wiki edits, issues, and other contributions
|
42
|
+
that are not aligned to this Code of Conduct, or to ban temporarily or
|
43
|
+
permanently any contributor for other behaviors that they deem inappropriate,
|
44
|
+
threatening, offensive, or harmful.
|
45
|
+
|
46
|
+
## Scope
|
47
|
+
|
48
|
+
This Code of Conduct applies both within project spaces and in public spaces
|
49
|
+
when an individual is representing the project or its community. Examples of
|
50
|
+
representing a project or community include using an official project e-mail
|
51
|
+
address, posting via an official social media account, or acting as an appointed
|
52
|
+
representative at an online or offline event. Representation of a project may be
|
53
|
+
further defined and clarified by project maintainers.
|
54
|
+
|
55
|
+
## Enforcement
|
56
|
+
|
57
|
+
Instances of abusive, harassing, or otherwise unacceptable behavior may be
|
58
|
+
reported by contacting the project team at fumitake.kawasaki@el-soul.com. All
|
59
|
+
complaints will be reviewed and investigated and will result in a response that
|
60
|
+
is deemed necessary and appropriate to the circumstances. The project team is
|
61
|
+
obligated to maintain confidentiality with regard to the reporter of an incident.
|
62
|
+
Further details of specific enforcement policies may be posted separately.
|
63
|
+
|
64
|
+
Project maintainers who do not follow or enforce the Code of Conduct in good
|
65
|
+
faith may face temporary or permanent repercussions as determined by other
|
66
|
+
members of the project's leadership.
|
67
|
+
|
68
|
+
## Attribution
|
69
|
+
|
70
|
+
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
|
71
|
+
available at [http://contributor-covenant.org/version/1/4][version]
|
72
|
+
|
73
|
+
[homepage]: http://contributor-covenant.org
|
74
|
+
[version]: http://contributor-covenant.org/version/1/4/
|
data/apps/api/Dockerfile
ADDED
@@ -0,0 +1,16 @@
|
|
1
|
+
FROM ruby:3.0.1
|
2
|
+
|
3
|
+
RUN apt-get update -qq && apt-get install -y nodejs redis-server
|
4
|
+
|
5
|
+
USER root
|
6
|
+
|
7
|
+
RUN mkdir /myapp
|
8
|
+
WORKDIR /myapp
|
9
|
+
|
10
|
+
COPY Gemfile /myapp/Gemfile
|
11
|
+
COPY Gemfile.lock /myapp/Gemfile.lock
|
12
|
+
RUN gem install bundler:2.2.24
|
13
|
+
RUN bundle
|
14
|
+
COPY . /myapp
|
15
|
+
|
16
|
+
CMD ["foreman", "start"]
|
@@ -0,0 +1,17 @@
|
|
1
|
+
FROM ruby:3.0.1
|
2
|
+
|
3
|
+
RUN apt-get update -qq && apt-get install -y nodejs redis-server
|
4
|
+
|
5
|
+
USER root
|
6
|
+
|
7
|
+
RUN mkdir /myapp
|
8
|
+
WORKDIR /myapp
|
9
|
+
|
10
|
+
COPY Gemfile /myapp/Gemfile
|
11
|
+
COPY Gemfile.lock /myapp/Gemfile.lock
|
12
|
+
RUN gem install bundler:2.2.23
|
13
|
+
RUN bundle
|
14
|
+
COPY . /myapp
|
15
|
+
|
16
|
+
EXPOSE 4000
|
17
|
+
CMD ["foreman", "start", "-f", "Procfile.dev"]
|
data/apps/api/Gemfile
ADDED
@@ -0,0 +1,50 @@
|
|
1
|
+
source "https://rubygems.org"
|
2
|
+
|
3
|
+
gem "activesupport", "6.1.4"
|
4
|
+
gem "dotenv", "2.7.6"
|
5
|
+
gem "firebase_id_token", "2.4.0"
|
6
|
+
gem "foreman", "0.87.2"
|
7
|
+
gem "google-cloud-firestore", "2.6.1"
|
8
|
+
gem "google-cloud-pubsub", "2.7.1"
|
9
|
+
gem "google-cloud-storage", "1.34.1"
|
10
|
+
gem "graphql", "1.12.13"
|
11
|
+
gem "graphql-batch", "0.4.3"
|
12
|
+
gem "jwt", "2.2.3"
|
13
|
+
gem "pg", "1.2.3"
|
14
|
+
gem "puma", "5.3.2"
|
15
|
+
gem "pundit", "2.1.0"
|
16
|
+
gem "rack-contrib", "2.3.0"
|
17
|
+
gem "rack-cors", "1.1.1"
|
18
|
+
gem "rake", "13.0.6"
|
19
|
+
gem "role_model", "0.8.2"
|
20
|
+
gem "search_object_graphql", "1.0.1"
|
21
|
+
gem "sendgrid-ruby", "6.4.0"
|
22
|
+
gem "sinatra", "2.1.0"
|
23
|
+
gem "sinatra-activerecord", "2.0.23"
|
24
|
+
gem "sinatra-contrib", "2.1.0"
|
25
|
+
gem "slack-ruby3", "0.1.2"
|
26
|
+
gem "zeitwerk", "2.4.2"
|
27
|
+
|
28
|
+
group :development, :test do
|
29
|
+
gem "capybara", "3.35.3"
|
30
|
+
gem "database_cleaner", "2.0.1"
|
31
|
+
gem "factory_bot", "6.2.0"
|
32
|
+
gem "faker", "2.18.0"
|
33
|
+
gem "gimei", "1.0.0"
|
34
|
+
gem "graphql_playground", "0.0.1"
|
35
|
+
gem "pundit-matchers", "1.7.0"
|
36
|
+
gem "rack-test", "1.1.0"
|
37
|
+
gem "rspec", "3.10.0"
|
38
|
+
gem "rubocop", "1.18.3"
|
39
|
+
gem "selenium-webdriver", "3.142.7"
|
40
|
+
gem "solargraph", "0.42.4"
|
41
|
+
gem "souls", "0.24.1"
|
42
|
+
gem "webmock", "3.13.0"
|
43
|
+
end
|
44
|
+
|
45
|
+
group :development do
|
46
|
+
gem "listen", "3.6.0"
|
47
|
+
gem "rubocop-graphql", "0.9.0"
|
48
|
+
gem "spring", "2.1.1"
|
49
|
+
gem "spring-watcher-listen", "2.0.1"
|
50
|
+
end
|