Skip to content

Commit 2d8aaf0

Browse files
authored
Merge pull request #439 from codeforjapan/aws-migration-master
AWSへの移行をmasterブランチへ取り込む
2 parents 9b4c8d8 + 3d143a9 commit 2d8aaf0

File tree

104 files changed

+138126
-5832
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

104 files changed

+138126
-5832
lines changed

.eslintrc.js

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ module.exports = {
55
'@nuxtjs/eslint-config-typescript',
66
'plugin:prettier/recommended',
77
'prettier',
8-
'prettier/vue'
8+
'prettier/vue',
99
],
1010
rules: {
1111
'require-await': 'off',
@@ -15,17 +15,17 @@ module.exports = {
1515
'error',
1616
{
1717
html: {
18-
void: 'always'
19-
}
20-
}
18+
void: 'always',
19+
},
20+
},
2121
],
2222
'prettier/prettier': [
2323
'error',
2424
{
2525
semi: false,
26-
singleQuote: true
27-
}
26+
singleQuote: true,
27+
},
2828
],
29-
'tsdoc/syntax': 'error'
30-
}
29+
'tsdoc/syntax': 'error',
30+
},
3131
}

.firebaserc

Lines changed: 0 additions & 6 deletions
This file was deleted.
Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
# For most projects, this workflow file will not need changing; you simply need
2+
# to commit it to your repository.
3+
#
4+
# You may wish to alter this file to override the set of languages analyzed,
5+
# or to provide custom queries or build logic.
6+
name: "CodeQL"
7+
8+
on:
9+
push:
10+
branches: [development, master, typescript-development]
11+
pull_request:
12+
# The branches below must be a subset of the branches above
13+
branches: [development]
14+
schedule:
15+
- cron: '0 4 * * 1'
16+
17+
jobs:
18+
analyze:
19+
name: Analyze
20+
runs-on: ubuntu-latest
21+
22+
strategy:
23+
fail-fast: false
24+
matrix:
25+
# Override automatic language detection by changing the below list
26+
# Supported options are ['csharp', 'cpp', 'go', 'java', 'javascript', 'python']
27+
language: ['javascript']
28+
# Learn more...
29+
# https://docs.github.com/en/github/finding-security-vulnerabilities-and-errors-in-your-code/configuring-code-scanning#overriding-automatic-language-detection
30+
31+
steps:
32+
- name: Checkout repository
33+
uses: actions/checkout@v2
34+
with:
35+
# We must fetch at least the immediate parents so that if this is
36+
# a pull request then we can checkout the head.
37+
fetch-depth: 2
38+
39+
# If this run was triggered by a pull request event, then checkout
40+
# the head of the pull request instead of the merge commit.
41+
- run: git checkout HEAD^2
42+
if: ${{ github.event_name == 'pull_request' }}
43+
44+
# Initializes the CodeQL tools for scanning.
45+
- name: Initialize CodeQL
46+
uses: github/codeql-action/init@v1
47+
with:
48+
languages: ${{ matrix.language }}
49+
# If you wish to specify custom queries, you can do so here or in a config file.
50+
# By default, queries listed here will override any specified in a config file.
51+
# Prefix the list here with "+" to use these queries and those in the config file.
52+
# queries: ./path/to/local/query, your-org/your-repo/queries@main
53+
54+
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
55+
# If this step fails, then you should remove it and run the build manually (see below)
56+
- name: Autobuild
57+
uses: github/codeql-action/autobuild@v1
58+
59+
# ℹ️ Command-line programs to run using the OS shell.
60+
# 📚 https://git.io/JvXDl
61+
62+
# ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
63+
# and modify them (or add more) to build your code if your project
64+
# uses a compiled language
65+
66+
#- run: |
67+
# make bootstrap
68+
# make release
69+
70+
- name: Perform CodeQL Analysis
71+
uses: github/codeql-action/analyze@v1

.gitignore

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,3 +93,20 @@ sw.*
9393

9494
.runtimeconfig.json
9595
key.json
96+
97+
#amplify
98+
amplify/\#current-cloud-backend
99+
amplify/.config/local-*
100+
amplify/mock-data
101+
amplify/team-provider-info.json
102+
amplify/backend/amplify-meta.json
103+
amplify/backend/awscloudformation
104+
build/
105+
dist/
106+
node_modules/
107+
aws-exports.js
108+
awsconfiguration.json
109+
amplifyconfiguration.json
110+
amplify-build-config.json
111+
amplify-gradle-config.json
112+
amplifytools.xcconfig

.graphqlconfig.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
projects:
2+
studyathome:
3+
schemaPath: amplify/backend/api/studyathome/build/schema.graphql
4+
includes:
5+
- src/graphql/**/*.ts
6+
excludes:
7+
- ./amplify/**
8+
extensions:
9+
amplify:
10+
codeGenTarget: typescript
11+
generatedFileName: src/API.ts
12+
docsFilePath: src/graphql
13+
maxDepth: 4
14+
extensions:
15+
amplify:
16+
version: 3

CONTRIBUTING.md

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -8,38 +8,38 @@
88

99
## Issue へのコメントや Pull Request について
1010

11-
* Issue へのコメントはご自由にどうぞ!新しい質問や提案なども受け付けます。
12-
* Issue を追加する場合、必ず既に同様の Issue が無いか検索をしてから作成してください。
13-
* Pull Request を送る場合、なるべく対応する Issue 番号を追記してください。
14-
* improve(改善提案)がついたIssueについては必ず反映できると限りませんのでご了承ください
15-
* good first issue / help wanted / bug を優先して対応いただけると助かります
16-
* Priority: Highest, Highのものも優先して対応いただけると助かります
11+
- Issue へのコメントはご自由にどうぞ!新しい質問や提案なども受け付けます。
12+
- Issue を追加する場合、必ず既に同様の Issue が無いか検索をしてから作成してください。
13+
- Pull Request を送る場合、なるべく対応する Issue 番号を追記してください。
14+
- improve(改善提案)がついた Issue については必ず反映できると限りませんのでご了承ください
15+
- good first issue / help wanted / bug を優先して対応いただけると助かります
16+
- Priority: Highest, High のものも優先して対応いただけると助かります
1717

1818
## コミュニケーションへの参加方法
1919

20-
* Code for Japan の Slack アカウントを持っていない場合、[こちらから登録](https://cfjslackin.herokuapp.com/) してください
21-
* `#covid19_edu`, `#covid19_impl` チャンネルにご参加ください。
20+
- Code for Japan の Slack アカウントを持っていない場合、[こちらから登録](https://cfjslackin.herokuapp.com/) してください
21+
- `#covid19_edu`, `#covid19_impl` チャンネルにご参加ください。
2222

2323
## 参加にあたって
2424

25-
* 開発に参加する前に、[Principle/行動規範](./CODE_OF_CONDUCT.md) をご一読ください。
26-
* コミュニケーションにあたっては、Code for Japan の [行動規範](https://github.com/codeforjapan/codeofconduct) もご確認ください。
27-
* 自分ができそうな Issue に誰もアサインされていない場合、Issueに「やります!」等とコメントしてから開発をはじめてください。権限のあるものが順次assignいたします
28-
* [good first issue ラベルのついたもの](https://github.com/codeforjapan/studyathome/issues?q=is%3Aopen+is%3Aissue+label%3Agood-first-issue) は初心者におすすめです
29-
* 半日以上作業から離れそうな場合は、他の人が作業を引き継げるようにしておいてください。(Issue を抱えたまま長時間オフになると、そのIssueがブロックされてしまいます。)
30-
* 1日以上更新されない Issue については、当方で assign を外させていただくことがあります。作業途中でも、[Draft Pull Request](https://qiita.com/tatane616/items/13da1b6797a7b871ad58) を送ってもらえると、動きが把握しやすくなります。
31-
* Issue に関連した質問等は、Slack より Issue 内のコメントを活用しましょう
32-
* 提案なども受け付けます!積極的に新しく Issue を作ってください。
25+
- 開発に参加する前に、[Principle/行動規範](./CODE_OF_CONDUCT.md) をご一読ください。
26+
- コミュニケーションにあたっては、Code for Japan の [行動規範](https://github.com/codeforjapan/codeofconduct) もご確認ください。
27+
- 自分ができそうな Issue に誰もアサインされていない場合、Issue に「やります!」等とコメントしてから開発をはじめてください。権限のあるものが順次 assign いたします
28+
- [good first issue ラベルのついたもの](https://github.com/codeforjapan/studyathome/issues?q=is%3Aopen+is%3Aissue+label%3Agood-first-issue) は初心者におすすめです
29+
- 半日以上作業から離れそうな場合は、他の人が作業を引き継げるようにしておいてください。(Issue を抱えたまま長時間オフになると、その Issue がブロックされてしまいます。)
30+
- 1 日以上更新されない Issue については、当方で assign を外させていただくことがあります。作業途中でも、[Draft Pull Request](https://qiita.com/tatane616/items/13da1b6797a7b871ad58) を送ってもらえると、動きが把握しやすくなります。
31+
- Issue に関連した質問等は、Slack より Issue 内のコメントを活用しましょう
32+
- 提案なども受け付けます!積極的に新しく Issue を作ってください。
3333

3434
## CONTRIBUTORS.md への追加について
3535

3636
今後追加方法などを記載いたしますのでお待ちください。
3737

3838
## 開発に関する情報
3939

40-
* 開発サイト https://studyathome-dev.web.app/
41-
* 本番サイト https://studyathome.web.app/
42-
* デザイン
43-
* [covid-edu – Figma](https://www.figma.com/file/JBcf0nDLMqOyS5vffbZtvw/covid-edu)
40+
- 開発サイト https://dev.studyathome.jp/
41+
- 本番サイト https://app.studyathome.jp/
42+
- デザイン
43+
- [covid-edu – Figma](https://www.figma.com/file/JBcf0nDLMqOyS5vffbZtvw/covid-edu)
4444

4545
本 ドキュメント の更新も大歓迎です!

FOR_DEVELOPERS.md

Lines changed: 33 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,38 @@
11
# 開発者向け情報
22

3-
Nuxt.jsに関する内容、Firebaseに関する内容は各ドキュメントを参照してください
4-
詳しい内容は下記のURLを参照ください
3+
Nuxt.js に関する内容、Firebase に関する内容は各ドキュメントを参照してください
4+
詳しい内容は下記の URL を参照ください
55

6-
[おうちで時間割 Nuxt版 仕様書 \- HackMD](https://hackmd.io/hltUcnt2S0eQEv1Heif7zw?both)
6+
[おうちで時間割 Nuxt 版 仕様書 \- HackMD](https://hackmd.io/hltUcnt2S0eQEv1Heif7zw?both)
77

88
## 1. 環境構築
99

1010
以下のアプリケーションを開発をおこなう環境へインストールします。
1111

12-
| アプリケーション名 | バージョン<br>(指定がある場合のみ記載) | インストール条件 |
13-
| ------- | ------- | ------- |
14-
|[Node.js](https://nodejs.org/ja/)|10.19.0以上|必須|
15-
|[Visual Studio Code](https://code.visualstudio.com/)| |Visual Studio Codeを利用する場合|
16-
|[Yarn](https://classic.yarnpkg.com/ja/)| |本プログラムをyarnで実行する場合|
17-
|[Docker Engine](https://docs.docker.com/engine/install/),[Docker Compose](https://docs.docker.com/compose/install/)| |本プログラムをdocker composeで実行する場合|
12+
| アプリケーション名 | バージョン<br>(指定がある場合のみ記載) | インストール条件 |
13+
| ------------------------------------------------------------------------------------------------------------------- | -------------------------------------- | -------------------------------------------- |
14+
| [Node.js](https://nodejs.org/ja/) | 10.19.0 以上 | 必須 |
15+
| [Visual Studio Code](https://code.visualstudio.com/) | | Visual Studio Code を利用する場合 |
16+
| [Yarn](https://classic.yarnpkg.com/ja/) | | 本プログラムを yarn で実行する場合 |
17+
| [Docker Engine](https://docs.docker.com/engine/install/),[Docker Compose](https://docs.docker.com/compose/install/) | | 本プログラムを docker compose で実行する場合 |
1818

19-
### 1-1. Visual Studio Codeの拡張機能
19+
### 1-1. Visual Studio Code の拡張機能
2020

21-
Visual Studio Codeを利用する場合は、以下の拡張機能をインストールします。
21+
Visual Studio Code を利用する場合は、以下の拡張機能をインストールします。
2222

23-
| 拡張機能 | インストール条件 |
24-
| ------- | ------- |
25-
|[ESLint](https://marketplace.visualstudio.com/items?itemName=dbaeumer.vscode-eslint)|任意|
26-
|[Vetur](https://marketplace.visualstudio.com/items?itemName=octref.vetur)|任意|
27-
|[TSLint](https://marketplace.visualstudio.com/items?itemName=ms-vscode.vscode-typescript-tslint-plugin)|任意|
28-
|[Debugger for Chrome](https://marketplace.visualstudio.com/items?itemName=msjsdiag.debugger-for-chrome)|任意|
29-
|[Remote Development](https://marketplace.visualstudio.com/items?itemName=ms-vscode-remote.vscode-remote-extensionpack)|Visual Studio CodeでRemote Developmentを利用する場合|
23+
| 拡張機能 | インストール条件 |
24+
| ---------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------- |
25+
| [ESLint](https://marketplace.visualstudio.com/items?itemName=dbaeumer.vscode-eslint) | 任意 |
26+
| [Vetur](https://marketplace.visualstudio.com/items?itemName=octref.vetur) | 任意 |
27+
| [TSLint](https://marketplace.visualstudio.com/items?itemName=ms-vscode.vscode-typescript-tslint-plugin) | 任意 |
28+
| [Debugger for Chrome](https://marketplace.visualstudio.com/items?itemName=msjsdiag.debugger-for-chrome) | 任意 |
29+
| [Remote Development](https://marketplace.visualstudio.com/items?itemName=ms-vscode-remote.vscode-remote-extensionpack) | Visual Studio Code で Remote Development を利用する場合 |
3030

3131
---
3232

3333
## 2. 実行
3434

35-
コマンドの実行は、WorkingCopyのルートディレクトリでおこないます
35+
コマンドの実行は、WorkingCopy のルートディレクトリでおこないます
3636

3737
### 2-1. `yarn` を使う場合
3838

@@ -89,12 +89,12 @@ $ docker-compose run --rm app yarn install
8989

9090
## 4. ステージング・本番環境への反映
9191

92-
下表の左列に記載されたブランチが更新されると、ブランチとWebサイトの更新が自動的におこなわれます
92+
下表の左列に記載されたブランチが更新されると、ブランチと Web サイトの更新が自動的におこなわれます
9393

94-
| 更新対象 | 自動的に更新されるブランチ | 更新されるWebサイト |
95-
| ---- | ---- | ---- |
96-
|`master`| 無し |本番サイト https://studyathome.web.app/|
97-
|`development`| 無し |開発用サイト https://studyathome-dev.web.app/|
94+
| 更新対象 | 自動的に更新されるブランチ | 更新される Web サイト |
95+
| ------------- | -------------------------- | --------------------------------------------- |
96+
| `master` | 無し | 本番サイト https://studyathome.web.app/ |
97+
| `development` | 無し | 開発用サイト https://studyathome-dev.web.app/ |
9898

9999
---
100100

@@ -103,15 +103,15 @@ $ docker-compose run --rm app yarn install
103103
development 以外は、Pull Request は禁止です。
104104
Pull Request を送る際のブランチは、以下のネーミングルールに従ったブランチにしてください。
105105

106-
| 種類 | ブランチのネーミングルール |
107-
| ---- | ---- |
108-
|機能追加系|`feature/#{ISSUE_ID}-#{branch_title_name}`|
109-
|フィックス系|`fix/#{ISSUE_ID}-#{branch_title_name}`|
110-
|ホットフィックス系|`hotfix/#{ISSUE_ID}-#{branch_title_name}`|
106+
| 種類 | ブランチのネーミングルール |
107+
| ------------------ | ------------------------------------------ |
108+
| 機能追加系 | `feature/#{ISSUE_ID}-#{branch_title_name}` |
109+
| フィックス系 | `fix/#{ISSUE_ID}-#{branch_title_name}` |
110+
| ホットフィックス系 | `hotfix/#{ISSUE_ID}-#{branch_title_name}` |
111111

112112
### 5-1. 基本的なブランチ
113113

114-
| 目的 | ブランチ | 確認URL | Pull requestsを出せる人 | 備考 |
115-
| ---- | ---- | ---- | ---- | ---- |
116-
| 開発 | development | https://studyathome-dev.web.app/ | 全開発者 | base branch。基本は、この`development`ブランチに Pull Requestを送ってください|
117-
| 本番 | master | https://studyathome.web.app/ | 管理者のみ | 管理者以外の Pull Request は禁止です。 |
114+
| 目的 | ブランチ | 確認 URL | Pull requests を出せる人 | 備考 |
115+
| ---- | ----------- | -------------------------------- | ------------------------ | -------------------------------------------------------------------------------- |
116+
| 開発 | development | https://studyathome-dev.web.app/ | 全開発者 | base branch。基本は、この`development`ブランチに Pull Request を送ってください|
117+
| 本番 | master | https://studyathome.web.app/ | 管理者のみ | 管理者以外の Pull Request は禁止です。 |

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,18 @@
11
# おうちで時間割
22

33
## 貢献の仕方
4+
45
Issues にあるいろいろな修正にご協力いただけると嬉しいです。
56

67
詳しくは[貢献の仕方](./CONTRIBUTING.md)を御覧ください。
78

89
## 行動原則
10+
911
詳しくは[サイト構築にあたっての行動原則](./CODE_OF_CONDUCT.md)を御覧ください。
1012

1113
## ライセンス
12-
本ソフトウェアは、[MITライセンス](./LICENSE.txt)の元提供されています。
1314

15+
本ソフトウェアは、[MIT ライセンス](./LICENSE.txt)の元提供されています。
1416

1517
## 開発者向け情報
1618

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"providers": [
3+
"awscloudformation"
4+
],
5+
"projectName": "StudyAtHome",
6+
"version": "3.0",
7+
"frontend": "javascript",
8+
"javascript": {
9+
"framework": "vue",
10+
"config": {
11+
"SourceDir": "src",
12+
"DistributionDir": "dist",
13+
"BuildCommand": "yarn generate",
14+
"StartCommand": "yarn start"
15+
}
16+
}
17+
}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"AppSyncApiName": "studyathome",
3+
"DynamoDBBillingMode": "PAY_PER_REQUEST",
4+
"DynamoDBEnableServerSideEncryption": false,
5+
"AuthCognitoUserPoolId": {
6+
"Fn::GetAtt": [
7+
"authstudyathome6e74485c",
8+
"Outputs.UserPoolId"
9+
]
10+
}
11+
}

0 commit comments

Comments
 (0)