Skip to content

Commit

Permalink
v0.1.0
Browse files Browse the repository at this point in the history
- ์ด๋ฆ„, email, password๋ฅผ ์ž…๋ ฅํ•˜์—ฌ ํšŒ์›๊ฐ€์ž… ์ง„ํ–‰
- email, password๋ฅผ ์ž…๋ ฅํ•˜์—ฌ ๋กœ๊ทธ์ธ
- ๋กœ๊ทธ์•„์›ƒ ๋ฒ„ํŠผ์„ ํ†ตํ•ด ๋กœ๊ทธ์•„์›ƒ
- ํšŒ์›๊ฐ€์ž…์„ ์ง„ํ–‰ํ•˜๋ฉด ์ž๋™ ๋กœ๊ทธ์ธ
- JWT ํ† ํฐ์„ ํ†ตํ•œ ์ž๋™ ๋กœ๊ทธ์ธ ๊ธฐ๋Šฅ ์ง€์›
- ํŠธ๋ž˜ํ‚นํ•˜๊ณ  ์‹ถ์€ ์ƒํ’ˆ์„ URL์„ ํ†ตํ•ด ๋ชฉํ‘œ ๊ฐ€๊ฒฉ๊ณผ ํ•จ๊ป˜ ๋“ฑ๋ก
- ๋ฉ”์ธ ํ™”๋ฉด์—์„œ ํŠธ๋ž˜ํ‚น ์ค‘์ธ ์ƒํ’ˆ ๋ชฉ๋ก์„ ํ™•์ธ
- ์ƒ์„ธ ํ™”๋ฉด์—์„œ ํŠธ๋ž˜ํ‚น ์ค‘์ง€ ๋ฒ„ํŠผ์„ ํ†ตํ•ด ์ƒํ’ˆ์„ ์‚ญ์ œ
- ์ธ๊ธฐ ์ƒํ’ˆ ํ™”๋ฉด์„ ํ†ตํ•ด ํŠธ๋ž˜ํ‚น์ค‘์ธ ์‚ฌ์šฉ์ž๊ฐ€ ๋งŽ์€ ์ˆœ์„œ๋กœ ์ธ๊ธฐ ์ƒํ’ˆ ๋ชฉ๋ก์„ ํ™•์ธ

Co-Authored-By: EunhoKang <[email protected]>
Co-Authored-By: ootr47 <[email protected]>
Co-Authored-By: ByeongIk Choi <[email protected]>
Co-Authored-By: ์†๋ฌธ๊ธฐ <[email protected]>
  • Loading branch information
5 people committed Nov 23, 2023
1 parent d55d8c8 commit 5a4cff4
Show file tree
Hide file tree
Showing 228 changed files with 19,373 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/CODEOWNERS
Validating CODEOWNERS rules โ€ฆ
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Android
/android/ @Taewan-P @EunhoKang @ootr47

# Backend
/backend/ @Muungi @sickbirdd
18 changes: 18 additions & 0 deletions .github/ISSUE_TEMPLATE/backlog-task-template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
---
name: Backlog Task Template
about: ๋ฐฑ๋กœ๊ทธ ํƒœ์Šคํฌ๋ฅผ ์ถ”๊ฐ€ํ•ฉ๋‹ˆ๋‹ค
title: ''
labels: ''
assignees: ''

---

### ์š”๊ตฌ์‚ฌํ•ญ

*์–ด๋–ค ๊ธฐ๋Šฅ์ด ๊ตฌํ˜„๋˜์–ด์•ผํ•˜๋Š”์ง€ ์ ์–ด์ฃผ์„ธ์š”*



### ์ถ”๊ฐ€ ์ž๋ฃŒ

*์ถ”๊ฐ€ ๋งํฌ ๋ฐ ์ž๋ฃŒ๋Š” ์—ฌ๊ธฐ ์ ์–ด์ฃผ์„ธ์š”*
11 changes: 11 additions & 0 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
android:
- android/**

backend:
- backend/**

infra:
- .github/**

docs:
- '*.md'
10 changes: 10 additions & 0 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@

Resolves #<์ด์Šˆ๋ฒˆํ˜ธ>

## ์ง„ํ–‰ ๋‚ด์šฉ

- [ ]


## ์Šคํฌ๋ฆฐ์ƒท (์„ ํƒ)

18 changes: 18 additions & 0 deletions .github/workflows/auto-labeler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: "Pull Request Labeler"
on:
- pull_request_target

jobs:
triage:
permissions:
contents: read
pull-requests: write
runs-on: ubuntu-latest
steps:
- uses: actions/labeler@v4
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"
configuration-path: .github/labeler.yml
sync-labels: true
dot: true

51 changes: 51 additions & 0 deletions .github/workflows/backend-deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
name: ๐Ÿ€ Deploy to Naver Cloud Platform
on:
push:
branches:
- release # Only in release branch

jobs:
push_to_registry:
name: Push to ncp container registry
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Login to NCP Container Registry
uses: docker/login-action@v2
with:
registry: ${{ secrets.NCP_CONTAINER_REGISTRY }}
username: ${{ secrets.NCP_ACCESS_KEY }}
password: ${{ secrets.NCP_SECRET_KEY }}
- name: build and push
uses: docker/build-push-action@v3
with:
context: .
file: ./backend/Dockerfile
push: true
tags: ${{ secrets.NCP_CONTAINER_REGISTRY }}/server:latest
cache-from: type=registry,ref=${{ secrets.NCP_CONTAINER_REGISTRY }}/server:latest
cache-to: type=inline
secrets: |
GIT_AUTH_TOKEN=${{ secrets.GITHUB_TOKEN }}
pull_from_registry:
name: Connect server ssh and pull from container registry
needs: push_to_registry
runs-on: ubuntu-latest
steps:
- name: connect ssh
uses: appleboy/ssh-action@master
with:
host: ${{ secrets.SERVER_HOST }}
username: ${{ secrets.SERVER_USERNAME }}
password: ${{ secrets.SERVER_PASSWORD }}
port: ${{ secrets.SERVER_PORT }}
script: |
sudo docker pull ${{ secrets.NCP_CONTAINER_REGISTRY }}/server
sudo docker stop $(docker ps -a -q)
sudo docker rm $(docker ps -a -q)
sudo docker run -d -p 3000:3000 --env-file ${{ secrets.ENV_FILE }} -v ${{ secrets.HOST_DIR}}:${{secrets.CONTAINER_DIR}} ${{ secrets.NCP_CONTAINER_REGISTRY }}/server
sudo docker image prune -f
20 changes: 20 additions & 0 deletions .github/workflows/backend-eslint-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: ESLint Check
on:
pull_request:
paths:
- backend/**
jobs:
eslint:
name: runner / eslint
runs-on: ubuntu-latest
permissions:
contents: read
pull-requests: write
steps:
- uses: actions/checkout@v4
- uses: reviewdog/action-eslint@v1
with:
eslint_flags: "src/"
filter_mode: file
workdir: "backend"
fail_on_error: true
41 changes: 41 additions & 0 deletions .github/workflows/firebase-deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: ๐Ÿ”ฅ Deploy to Firebase App Distribution

on:
push:
branches:
- release # Only in release branch

jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup JDK
uses: actions/setup-java@v3
with:
distribution: 'oracle'
java-version: '17'
cache: 'gradle'
- name: Generate Keystore
env:
KEYSTORE_B64: ${{ secrets.APP_KEYSTORE }}
run: |
echo $KEYSTORE_B64 > keystore_b64.txt
base64 --decode --ignore-garbage keystore_b64.txt > keystore.jks
working-directory: ./android/app

- name: Build Release APK
env:
SIGNING_KEY_ALIAS: ${{ secrets.KEY_ALIAS }}
SIGNING_PASSWORD: ${{ secrets.KEY_PASSWORD }}
run: ./gradlew assembleRelease
working-directory: ./android

- name: Upload to Firebase App Distribution
uses: wzieba/Firebase-Distribution-Github-Action@v1
with:
appId: ${{ secrets.FIREBASE_APP_ID }}
serviceCredentialsFileContent: ${{ secrets.FIREBASE_APP_DISTRIBUTION }}
groups: tester
releaseNotesFile: android/release_notes.txt
file: android/app/build/outputs/apk/release/app-release.apk
20 changes: 20 additions & 0 deletions .github/workflows/ktlint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Kotlin Lint Check
on:
pull_request:
paths:
- android/**

jobs:
ktlint:
name: Check Kotlin Format
runs-on: ubuntu-latest

steps:
- name: Clone repo
uses: actions/checkout@v4
- name: ktlint
uses: ScaCap/action-ktlint@master
with:
filter_mode: file
github_token: ${{ secrets.github_token }}
reporter: github-pr-review
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# MacOS
.DS_Store
44 changes: 44 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
# Price Guard
<img width="275" alt="priceguard_icon_web" src="https://github.com/boostcampwm2023/and09-PriceGuard/assets/37584805/b3fd42cf-f075-4cc7-a263-8195f28ab6ac">

## ๐Ÿ›ก๏ธ ํ”„๋กœ์ ํŠธ ์†Œ๊ฐœ

_์›ํ•˜๋Š” ์ƒํ’ˆ์˜ ๊ฐ€๊ฒฉ์„ ์ถ”์ ํ•˜๊ณ  ์ €๋ ดํ• ๋•Œ ๊ตฌ์ž…ํ•˜์„ธ์š”!_

```
PriceGuard๋Š” ๊ตญ๋‚ด ์ƒ๊ฑฐ๋ž˜ ์‚ฌ์ดํŠธ๋“ค์˜ ์ƒํ’ˆ ๊ฐ€๊ฒฉ์„ ์ถ”์ ํ•ฉ๋‹ˆ๋‹ค.
์‚ฌ์šฉ์ž๊ฐ€ ์›ํ•˜๋Š” ์ƒํ’ˆ ๋งํฌ๋ฅผ ๋“ฑ๋กํ•˜๋ฉด ํ•ด๋‹น ์ƒํ’ˆ๋“ค์˜ ์ •๋ณด๋ฅผ ์ฃผ๊ธฐ์ ์œผ๋กœ ํ™•์ธํ•ฉ๋‹ˆ๋‹ค.
์‚ฌ์šฉ์ž๊ฐ€ ๋ชฉํ‘œ ๊ฐ€๊ฒฉ์„ ์„ค์ •ํ•ด์„œ ๋ชฉํ‘œ ๊ฐ€๊ฒฉ ์ดํ•˜์ธ ์ƒํ’ˆ์ด ์žˆ์œผ๋ฉด ์•Œ๋ฆผ์„ ๋ณด๋ƒ…๋‹ˆ๋‹ค.
```

## ๐Ÿ‘จโ€๐Ÿ‘จโ€๐Ÿ‘ฆ ํŒ€์› ์†Œ๊ฐœ

<table>
<tr>
<td align="center"><a href="https://github.com/muungi">J070 ์†๋ฌธ๊ธฐ</a></td>
<td align="center"><a href="https://github.com/sickbirdd">J157 ์ตœ๋ณ‘์ต</a></td>
<td align="center"><a href="https://github.com/EunhoKang">K001 ๊ฐ•์€ํ˜ธ</a></td>
<td align="center"><a href="https://github.com/ootr47">K012 ๋ฐ•์Šน์ค€</a></td>
<td align="center"><a href="https://github.com/Taewan-P">K017 ๋ฐ•ํƒœ์™„</a></td>
</tr>
<tr>
<td align="center"><a href="https://github.com/muungi"><img src="https://github.com/muungi.png" width="100px;" alt=""/></a></td>
<td align="center"><a href="https://github.com/sickbirdd"><img src="https://github.com/sickbirdd.png" width="100px;" alt=""/></a></td>
<td align="center"><a href="https://github.com/EunhoKang"><img src="https://github.com/EunhoKang.png" width="100px;" alt=""/></a></td>
<td align="center"><a href="https://github.com/ootr47"><img src="https://github.com/ootr47.png" width="100px;" alt=""/></a></td>
<td align="center"><a href="https://github.com/Taewan-P"><img src="https://github.com/Taewan-P.png" width="100px;" alt=""/></a></td>
</tr>
<tr>
<td align="center">Back-End</td>
<td align="center">Back-End</td>
<td align="center">Android</td>
<td align="center">Android</td>
<td align="center">Android</td>
</tr>
</table>
<br/>


## :memo: ํŒ€ ๊ทœ์น™
- [ํŒ€ ๊ทœ์น™](https://github.com/boostcampwm2023/and09-PriceGuard/wiki/%ED%8C%80-%EA%B7%9C%EC%B9%99)
- [Git ๊ทœ์น™](https://github.com/boostcampwm2023/and09-PriceGuard/wiki/Git-%EC%82%AC%EC%9A%A9%EB%B2%95)
18 changes: 18 additions & 0 deletions android/.editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
[*.{kt,kts}]
end_of_line = lf
ij_kotlin_allow_trailing_comma = false
ij_kotlin_allow_trailing_comma_on_call_site = false
ij_kotlin_imports_layout = *
ij_kotlin_packages_to_use_import_on_demand = java.util.*,kotlinx.android.synthetic.**
indent_size = 4
indent_style = space
insert_final_newline = true
ktlint_chain_method_rule_force_multiline_when_chain_operator_count_greater_or_equal_than = unset
ktlint_class_signature_rule_force_multiline_when_parameter_count_greater_or_equal_than = unset
ktlint_code_style = android_studio
ktlint_function_naming_ignore_when_annotated_with = [unset]
ktlint_function_signature_body_expression_wrapping = default
ktlint_function_signature_rule_force_multiline_when_parameter_count_greater_or_equal_than = unset
ktlint_ignore_back_ticked_identifier = false
max_line_length = off

21 changes: 21 additions & 0 deletions android/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
*.iml
.gradle
/local.properties
/.idea/caches
/.idea/libraries
/.idea/modules.xml
/.idea/workspace.xml
/.idea/navEditor.xml
/.idea/assetWizardSettings.xml
.DS_Store
/build
/captures
.externalNativeBuild
.cxx
local.properties

# Keystore
*.jks

# Release
/app/release
3 changes: 3 additions & 0 deletions android/.idea/.gitignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions android/.idea/.name

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions android/.idea/compiler.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 20 additions & 0 deletions android/.idea/gradle.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions android/.idea/kotlinc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 9 additions & 0 deletions android/.idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions android/.idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions android/app/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/build
Loading

0 comments on commit 5a4cff4

Please sign in to comment.