-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
115 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,115 @@ | ||
# ONCE-BE | ||
> Once : ์นด๋ ๋ค๋ณด์ ์๋ฅผ ์ํ ๊ฒฐ์ ์ ์ต๋ ํ ์ธ ์นด๋ ์ถ์ฒ AI ์ฑ๋ด ์๋น์ค | ||
## ๐ ๏ธ Tech Stack | ||
- Java 17 | ||
- Spring Boot 3 | ||
- MySQL 8.0.35 | ||
- Docker | ||
- OpenAI | ||
- CODEF API | ||
|
||
|
||
## โ๏ธ How to run | ||
1. Clone project | ||
```bash | ||
$ git clone https://github.com/EWHA-LUX/ONCE-BE.git | ||
``` | ||
|
||
2. Set environment variable<br> | ||
2-1. Add `src/main/resources/firebase/once-firebase-adminsdk.json`<br> | ||
  Download firebase-admin sdk json โบ [Click here!](https://firebase.google.com/docs/admin/setup?hl=ko#initialize_the_sdk_in_non-google_environments)<br><br> | ||
2-2. Add `src/main/resources/application.properties`<br> | ||
```yaml | ||
# Database | ||
SPRING_DATABASE_URL=(YOUR_RDS_ENDPOINT) | ||
SPRING_DATASOURCE_PASSWORD=(YOU_RDS_PASSWORD) | ||
# JWT | ||
JWT_SECRET_KEY=(YOUR_JWT_KEY) | ||
# S3 | ||
AWS_S3_ACCESSKEY=(YOUR_S3_ACCESSKEY) | ||
AWS_S3_SECRETKEY=(YOUR_S3_SECRETKEY) | ||
AWS_S3_BUCKET=(YOUR_S3_BUCKET_NAME) | ||
AWS_S3_REGION=(YOUR_S3_REGION) | ||
# GPT | ||
OPENAI_MODEL=(YOUR_GPT_MODEL_ID) | ||
OPENAI_KEY=(YOUR_OPENAI_API_KEY) | ||
# AES | ||
AES_ENCRYPTION_KEY=(YOUR_AES_KEY) | ||
# CODEF | ||
CLIENT_ID=(YOUR_CODEF_CLIENT_ID) | ||
SECERET_KEY=(YOUR_CODEF_SECERET_KEY) | ||
ACCESS_TOKEN=(YOUR_CODEF_ACCESS_TOKEN) | ||
# Google Maps | ||
GOOGLE_CLOUD_API_KEY=(YOUR_GOOGLE_API_KEY) | ||
``` | ||
|
||
3. Run `OnceApplication.java` | ||
|
||
## ๐๏ธ Once ERD | ||
<p align="center"> | ||
<img src="https://github.com/EWHA-LUX/ONCE-BE/assets/100216331/4f1951ac-507d-4b7b-8943-9d2e8ae8db32" width="700"/> | ||
</p> | ||
|
||
## ๐ API Documents | ||
<details> | ||
<summary>ํผ์ณ ๋ณด๊ธฐ</summary> | ||
|
||
|Feature|URI| | ||
|--|--| | ||
|[ํ์๊ฐ์ ](https://haewonny.notion.site/81e4d32d4d5046a09caaafd3d712e0b0)|`POST /user/signup`| | ||
|[์์ด๋ ์ค๋ณต ํ์ธ](https://www.notion.so/haewonny/eb19e5efa62945558280e0c8fdb11f30)|`GET /user/duplicate?loginId=์์ด๋`| | ||
|[์๋๋ก๊ทธ์ธ](https://www.notion.so/haewonny/a26a0b011b6a4fb79f43e387d4ee3579?pvs=4)|`POST /user/auto`| | ||
|[๋ก๊ทธ์ธ](https://www.notion.so/haewonny/b38bec0d9a5440f9a796eb6d69d6a80f?pvs=4)|`POST /user/login`| | ||
|[๊ธฐ๊ธฐ ํ ํฐ ์ ์ฅ ](https://www.notion.so/48d0fd9115df40329503ff83e18f3715?pvs=21)|`POST /user/token`| | ||
|[ํ์ ํํด](https://www.notion.so/681060114c1349a5b477217b7a1b997a?pvs=21)|`DELETE /user/quit`| | ||
|[๋น๋ฐ๋ฒํธ ํ์ธ](https://www.notion.so/b366e8dacecb447db6c97be4b9eaf717?pvs=21)|`POST /user/edit/pw`| | ||
|[๋น๋ฐ๋ฒํธ ๋ณ๊ฒฝ](https://www.notion.so/d31c6be979894c06a93a253da493c5bc?pvs=21)|`PATCH /user/edit/pw`| | ||
|[์์ด๋ ์ฐพ๊ธฐ](https://www.notion.so/67c76b1e8d424061892bb092e6b53bb1?pvs=21)|`POST /user/find/id`| | ||
|[๋น๋ฐ๋ฒํธ ์ฐพ๊ธฐ](https://www.notion.so/562c51c122e4458ea7e9103fc60f6067?pvs=21)|`POST /user/find/pw`| | ||
|[๋ด ์ ๋ณด ์์ ํ๊ธฐ ํ์ด์ง](https://www.notion.so/6109536b5380418287af0e4998fe922f?pvs=21)|`GET /user/edit`| | ||
|[ํ์ ์ ๋ณด ์์ ](https://www.notion.so/bb4d955235b04f489e0a60d520b8a249?pvs=21)|`PATCH /user/edit`| | ||
|[ํ๋กํ ์ด๋ฏธ์ง ์์ (๋ฑ๋ก)](https://www.notion.so/5c0588ab85e5468ba9b804f1ca72cf80?pvs=21)|`PATCH /user/edit/profile`| | ||
|[์นด๋ ๋ฑ๋ก 1๋จ๊ณ (์นด๋์ฌ๋ก ์นด๋ ๊ฒ์)](https://www.notion.so/1-43b72b3c6e504bb7acbcc82e25e44773?pvs=21)|`GET /user/card/search?code=0301,0302`| | ||
|[์นด๋ ๋ฑ๋ก 2๋จ๊ณ (์นด๋ ์ด๋ฆ ๊ฒ์)](https://www.notion.so/2-a3bae8eb3a404948a0d628d28d8f8627?pvs=21)|`GET /user/card/searchname?name=๊ตฟ๋ฐ์ด&code=0301,0302`| | ||
|[์นด๋ ๋ฑ๋ก 3๋จ๊ณ (์นด๋ ๋ฑ๋ก)](https://www.notion.so/3-79822161ce854920a4b3fa044c12a380?pvs=21)|`POST /user/card`| | ||
|[์ฑ๋ด ์นด๋ ์ถ์ฒ](https://www.notion.so/0563b60116a24415a68a13db55996b13?pvs=21)|`GET /home?keyword=GS25&paymentAmount=10000`| | ||
|[ํํ๋ฉด ๊ธฐ๋ณธ ์ ๋ณด](https://haewonny.notion.site/c9feaf8878b44c2fa2f3998e18cdec94)|`GET /home/basic`| | ||
|[๊ฒฐ์ ์ฌ๋ถ ๋ณ๊ฒฝ](https://www.notion.so/977de7a067b84f14a3acbf053b3afd3d?pvs=21)|`PATCH /home/{chat_id}`| | ||
|[์๋ฆผ ๋ฆฌ์คํธ ์กฐํ](https://www.notion.so/7d3699bb0725475c9186679d0bb24e28?pvs=21)|`GET /home/announcement`| | ||
|[์๋ฆผ ์์ธ ์กฐํ](https://www.notion.so/e3e9d2f9afc448ad87f629711e9b26d6?pvs=21)|`GET /home/announcement/{announceId}`| | ||
|[์ฌ์ฉ์ ๊ทผ์ฒ ๋จ๊ณจ๊ฐ๊ฒ ์กฐํ](https://www.notion.so/899e5fda2f81494993b22b2298eefbc4?pvs=21)|`GET /home/gps`| | ||
|[์๋ฆผ ์์ฑ ์์ฒญ](https://www.notion.so/2661c7a83f3845a2aae26d3342a06fea?pvs=21)|`POST /home/announcement`| | ||
|[CODEF ๋ณด์ ์นด๋ ์กฐํ](https://www.notion.so/CODEF-fdc68b1817fb42f1b6e176b135749f51?pvs=21)|`GET/card/list`| | ||
|[CODEF ์นด๋์ฌ ์ฐ๊ฒฐ ํํฉ](https://www.notion.so/CODEF-f09845097643404dbac4975003d82ad1?pvs=21)|`GET/card/connect`| | ||
|[CODEF ์ฃผ์นด๋ ๋ฑ๋ก](https://www.notion.so/CODEF-0dcbcfd7f9a448f6ab3420c63d7fac42?pvs=21)|`POST /card/main`| | ||
|[CODEF ์ฃผ์นด๋ ์ค์ ์กฐํ](https://www.notion.so/CODEF-7c624bc8db78428daff21574a82b7e86?pvs=21)|`GET /card/main/performance`| | ||
|[๋ง์ด์๋ ์กฐํ](https://www.notion.so/ef3d4f6127604c8aa458f2e6be21589d?pvs=21)|`GET /card`| | ||
|[์ฃผ์นด๋ ์๋ ์นด๋ ์ค์ ์ ๋ ฅ](https://www.notion.so/7fe0661e7dbb4dd497d630d2c151c60a?pvs=21)|`POST /card/performance`| | ||
|[์๋ณํํ์กฐํ](https://www.notion.so/c2bc02499d7440daa57a279940737d4d?pvs=21)|`GET /card/benefit?month=8`| | ||
|[๋ชฉํ ํํ ๊ธ์ก ์ ๋ ฅ](https://www.notion.so/7edb985fb06f47e1b045e68d9fdf6280?pvs=21)|`POST /card/benefitgoal`| | ||
|[๋ง์ดํ์ด์ง ์กฐํ](https://www.notion.so/61fcbd7c42e54240a09750afe75168f1?pvs=21)|`GET /mypage`| | ||
|[์ฑ๋ด ๋ํ ์กฐํ](https://www.notion.so/fbfd12c6d50f488d9495c98f094f4c1d?pvs=21)|`GET /mypage/chathistory?month=2024-01`| | ||
|[์นด๋ ๋ชฉ๋ก ์กฐํ](https://www.notion.so/3eb9972d9fed4e418a1d614232672e9a?pvs=21)|`GET /mypage/maincard`| | ||
|[์ฃผ์นด๋ ํด์ ](https://www.notion.so/a29c406a019b402ba3f9d1fe15827b16?pvs=21)|`PATCH /mypage/maincard/{ownedCardId}`| | ||
|[๋ฑ๋ก ์นด๋ ์ญ์ ](https://www.notion.so/efff9ca6d5d1494b8f56a7bdbefde6e7?pvs=21)|`DELETE /mypage/maincard/{ownedCardId}`| | ||
</details> | ||
|
||
|
||
|
||
|
||
|
||
## ๐ฉ๐ปโ๐ป Back-End Contributors | ||
|
||
| Jimin Yu | Haewon Lee | Chaerin Heo | | ||
| --------------------------------- | --------------------------------- |--------------------------------- | | ||
| ![](https://github.com/jiminnee.png) | ![](https://github.com/haewonny.png) | ![](https://github.com/julia-heo.png) | | ||
| <p align="center"><a href="https://github.com/jiminnee">@jiminnee</a></p> | <p align="center"><a href="https://github.com/haewonny">@haewonny</a></p> | <p align="center"><a href="https://github.com/julia-heo">@julia-heo</a></p> | | ||
|
||
<img src="https://github.com/EWHA-LUX/ONCE-FE/assets/94354545/2fea2faa-7eaf-4c54-8aab-156601c47f79" border="0" width="1000px" /> |