From d034426afe87d6ffea02aa969add59b757681677 Mon Sep 17 00:00:00 2001 From: cyndaquil1999 Date: Wed, 4 Sep 2024 22:35:11 +0900 Subject: [PATCH 1/5] =?UTF-8?q?README=E3=81=ABDocker=E8=B5=B7=E5=8B=95?= =?UTF-8?q?=E6=96=B9=E6=B3=95=E3=81=A8API=E3=83=89=E3=82=AD=E3=83=A5?= =?UTF-8?q?=E3=83=A1=E3=83=B3=E3=83=88=E7=A2=BA=E8=AA=8D=E6=89=8B=E9=A0=86?= =?UTF-8?q?=E3=82=92=E8=A8=98=E8=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../client/example_client.json | 6 ++++++ member-portal-backend/db.sqlite3 | Bin 0 -> 77824 bytes 2 files changed, 6 insertions(+) create mode 100644 member-portal-backend/client/example_client.json create mode 100644 member-portal-backend/db.sqlite3 diff --git a/member-portal-backend/client/example_client.json b/member-portal-backend/client/example_client.json new file mode 100644 index 0000000..4553a4e --- /dev/null +++ b/member-portal-backend/client/example_client.json @@ -0,0 +1,6 @@ +{ + "clientId": "example_client", + "clientName": "Example Client", + "redirectUri": "http://localhost:3000/callback", + "applicationName": "Example Application" +} diff --git a/member-portal-backend/db.sqlite3 b/member-portal-backend/db.sqlite3 new file mode 100644 index 0000000000000000000000000000000000000000..ff2a6b8be8b7cf6f0844c7cef46a7b69878da92d GIT binary patch literal 77824 zcmeI%%~IP|6u@ySAvOk#328?w25o52z$9^-nQYRTQdh|^Nla>-1=EErY}r<0TaF}? zWNEtUGi1?jyXc#=Z_o$nviDvikN}Zg7n;9ktdFa&bAIPuf6P7n@ue5JM$ZpMPGo#j zSSx5+;XA`96bfbWz9-)COYSekJ7TRRwzD?Ng$F0UR;vFN))#LVsz=qoSAVNMsQkGa zt^8AomOrihvGn`$&*i_CrsXfnpBCSUlXxM300IagfWZGD@Or(d@9bztk#jtB!*@gR zd%zCecT;!Vxx9O?-n8~wmeJb#{-tGHI(K{QjNDyur8#?gx1`^{ubntMej?()iNw07Im z&<$*P?uiq022Qa3^&@ll;x1h$a@$7aeu$EdZrBODN#yzC`7v|0P%Y^j8`|tA75*gf zd!CSq*K6sZ<7OG}_0K;$!}dl_|NQyKo_`ifGM|fEnC8Q^qF&$73f{QuemJvsrjf7q z?f9{FE#A62`>ImXbzM8%QE|(1gle&xj##y2huialFtX)ImmG)A_3b0C+a0=>u6Qiu zvobSRi~6^ER%R+ZyQWsv+4E&pi&IDC)bYoW=p|viUP)&bH)kgob_TvbwB3>84dbp5 zPLI2L4#2JRKdoL7FKm>4z&fl{1dquEkrG)8%qW z-`v!GaaHO)r!yT!o*SNTETxk_Zf3cEP7saU@paWtrxo8tfS9}W zgT`U2xwqeF8SUO%+v$nn;yH3ah4$HrZR6QN)7pRDP@^^#o@q3#XI9f{)U89KoxHf6 z91XRlqHb+w^_lr&1dd%h-&~%3St{vUTiR@-0F$>)ZZD=8lZUeVQ34?TVA^f>1E(tn z&DjT4X7_)xSkzx^Wu=mQzFkZ1m1jTPnGf*3N+|Hfr;=I}(7t$H4 zw(M#RoN(ZF?THhH@5R8r7_hZR@(Usk{Iiua7jBAN1tCf%Q8z z;HoV<@Uho<`?*TRUpl5~-nuC~^(echR`P%LqWp1Dk&89C;DrDJ2q1s}0tg_000Iag zfB*t{6U=V#$<>90tg_000Iag zfB*srAb Date: Wed, 4 Sep 2024 22:36:03 +0900 Subject: [PATCH 2/5] =?UTF-8?q?=E3=83=95=E3=83=AD=E3=83=B3=E3=83=88?= =?UTF-8?q?=E3=81=AEDockerfile=E3=81=AE=E3=83=9D=E3=83=BC=E3=83=88?= =?UTF-8?q?=E3=82=923000=E3=81=AB=E6=8C=87=E5=AE=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 48 +++++++++++-------------------- member-portal-frontend/Dockerfile | 2 +- 2 files changed, 17 insertions(+), 33 deletions(-) diff --git a/README.md b/README.md index 929214e..2205296 100644 --- a/README.md +++ b/README.md @@ -2,40 +2,24 @@ kstmメンバーであることを確認し、また事務処理を簡潔化するためのポータルサイト 以下Next.jsのREADME.md ---- -This is a [Next.js](https://nextjs.org/) project bootstrapped with [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app). -## Getting Started +## Frontend +### Docker起動方法 +1. Dockerfileのあるディレクトリに移動 +2. `docker build -t ` を実行(image_nameは自由に設定) +3. `docker run -p 3000:3000 -d ` を実行 +4. `http://localhost:3000` にアクセス -First, run the development server: +※ ローカルで起動する場合は、`npm run dev` を実行 -```bash -npm run dev -# or -yarn dev -# or -pnpm dev -# or -bun dev -``` +## Backend -Open [http://localhost:3000](http://localhost:3000) with your browser to see the result. +### Docker起動方法 +1. Dockerfileのあるディレクトリに移動 +2. `docker build -t ` を実行(image_nameは自由に設定) +3. `docker run -p 3001:8080 -d ` を実行 +4. `http://localhost:3001` にアクセス -You can start editing the page by modifying `app/page.tsx`. The page auto-updates as you edit the file. - -This project uses [`next/font`](https://nextjs.org/docs/basic-features/font-optimization) to automatically optimize and load Inter, a custom Google Font. - -## Learn More - -To learn more about Next.js, take a look at the following resources: - -- [Next.js Documentation](https://nextjs.org/docs) - learn about Next.js features and API. -- [Learn Next.js](https://nextjs.org/learn) - an interactive Next.js tutorial. - -You can check out [the Next.js GitHub repository](https://github.com/vercel/next.js/) - your feedback and contributions are welcome! - -## Deploy on Vercel - -The easiest way to deploy your Next.js app is to use the [Vercel Platform](https://vercel.com/new?utm_medium=default-template&filter=next.js&utm_source=create-next-app&utm_campaign=create-next-app-readme) from the creators of Next.js. - -Check out our [Next.js deployment documentation](https://nextjs.org/docs/deployment) for more details. +### APIドキュメント確認方法 +1. `swagger/README.md` の "Getting started" の手順を行う +2. "Mock API" の手順を `documentation.yml` と同じディレクトリにて行う \ No newline at end of file diff --git a/member-portal-frontend/Dockerfile b/member-portal-frontend/Dockerfile index af9b448..de65d81 100644 --- a/member-portal-frontend/Dockerfile +++ b/member-portal-frontend/Dockerfile @@ -5,7 +5,7 @@ WORKDIR /app COPY ./package*.json ./ RUN npm install - +EXPOSE 3000 COPY . . ENTRYPOINT ["npm", "run", "dev"] \ No newline at end of file From 0284a5af43d99f39362ca224ff10a8efc8f25d2a Mon Sep 17 00:00:00 2001 From: Nlkomaru Date: Fri, 6 Sep 2024 10:59:38 +0900 Subject: [PATCH 3/5] =?UTF-8?q?API=E3=83=89=E3=82=AD=E3=83=A5=E3=83=A1?= =?UTF-8?q?=E3=83=B3=E3=83=88=E3=81=AE=E7=A2=BA=E8=AA=8D=E6=89=8B=E6=AE=B5?= =?UTF-8?q?=E3=82=92=E5=A4=89=E6=9B=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 2205296..d64a4d6 100644 --- a/README.md +++ b/README.md @@ -1,8 +1,6 @@ # member-portal kstmメンバーであることを確認し、また事務処理を簡潔化するためのポータルサイト -以下Next.jsのREADME.md - ## Frontend ### Docker起動方法 1. Dockerfileのあるディレクトリに移動 @@ -20,6 +18,15 @@ kstmメンバーであることを確認し、また事務処理を簡潔化す 3. `docker run -p 3001:8080 -d ` を実行 4. `http://localhost:3001` にアクセス + +## Common + ### APIドキュメント確認方法 +1. `cd swagger`で`swagger`ディレクトリに移動します +2. `npx @redocly/cli preview-docs documentation.yml`を実行します +3. `http://localhost:8080/`にアクセス + +### Mockサーバーの立て方 1. `swagger/README.md` の "Getting started" の手順を行う -2. "Mock API" の手順を `documentation.yml` と同じディレクトリにて行う \ No newline at end of file +2. "Mock API" の手順を `documentation.yml` と同じディレクトリにて行う +3. `http://localhost:4010`にモックサーバーが立つ \ No newline at end of file From 8cd969503136d03aa62b64041e59a83d442a792e Mon Sep 17 00:00:00 2001 From: cyndaquil1999 Date: Fri, 6 Sep 2024 11:15:45 +0900 Subject: [PATCH 4/5] =?UTF-8?q?=E3=83=93=E3=83=AB=E3=83=89=E3=82=B3?= =?UTF-8?q?=E3=83=9E=E3=83=B3=E3=83=89=E3=82=92=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index d64a4d6..5d66657 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ kstmメンバーであることを確認し、また事務処理を簡潔化す ## Frontend ### Docker起動方法 1. Dockerfileのあるディレクトリに移動 -2. `docker build -t ` を実行(image_nameは自由に設定) +2. `docker build -t .` を実行(image_nameは自由に設定) 3. `docker run -p 3000:3000 -d ` を実行 4. `http://localhost:3000` にアクセス @@ -14,7 +14,7 @@ kstmメンバーであることを確認し、また事務処理を簡潔化す ### Docker起動方法 1. Dockerfileのあるディレクトリに移動 -2. `docker build -t ` を実行(image_nameは自由に設定) +2. `docker build -t .` を実行(image_nameは自由に設定) 3. `docker run -p 3001:8080 -d ` を実行 4. `http://localhost:3001` にアクセス From 58a62eb8d8e20924237bb0eecf18322a5d0a725c Mon Sep 17 00:00:00 2001 From: Nona Takahara <45140117+nona-takahara@users.noreply.github.com> Date: Mon, 16 Sep 2024 13:33:50 +0000 Subject: [PATCH 5/5] =?UTF-8?q?=E3=83=86=E3=82=B9=E3=83=88=E7=94=A8OAuth?= =?UTF-8?q?=E3=82=AF=E3=83=A9=E3=82=A4=E3=82=A2=E3=83=B3=E3=83=88=E6=83=85?= =?UTF-8?q?=E5=A0=B1=E3=83=95=E3=82=A1=E3=82=A4=E3=83=AB=E3=82=92=E6=A0=BC?= =?UTF-8?q?=E7=B4=8D=E3=81=99=E3=82=8B=E3=83=87=E3=82=A3=E3=83=AC=E3=82=AF?= =?UTF-8?q?=E3=83=88=E3=83=AA=E5=90=8D=E3=82=92=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- member-portal-backend/{client => clients}/example_client.json | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename member-portal-backend/{client => clients}/example_client.json (100%) diff --git a/member-portal-backend/client/example_client.json b/member-portal-backend/clients/example_client.json similarity index 100% rename from member-portal-backend/client/example_client.json rename to member-portal-backend/clients/example_client.json