Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weโ€™ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

develop -> main #267

Merged
merged 1 commit into from
Aug 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
213 changes: 192 additions & 21 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,36 +1,207 @@
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).
# DKation - ๋””์ผ€์ดํ…Œํฌ์ธ ์›Œ์ผ€์ด์…˜ ์ถ”์ฒจ ์‹œ์Šคํ…œ
> ๊ฐœ๋ฐœ ๊ธฐ๊ฐ„ : 2024.07 ~ 2024.08
>
<div align="center">
<img src="src/app/_assets/images/logo.png" alt="dkation_logo" />
</div>

## Getting Started
## โœ๐Ÿป ํ”„๋กœ์ ํŠธ ๊ฐœ์š”

First, run the development server:
์›Œ์ผ€์ด์…˜์€ Work์™€ Vacation์˜ ํ•ฉ์„ฑ์–ด๋กœ, ํšŒ์‚ฌ ์ง์›๋“ค์ด ์—…๋ฌด์™€ ํœด์‹์„ ๋™์‹œ์— ์ฆ๊ธธ ์ˆ˜ ์žˆ๋„๋ก ๋•๋Š” ๋ณต์ง€ ์ œ๋„์ž…๋‹ˆ๋‹ค. ์ด ์„œ๋น„์Šค๋Š” ์ง์›๋“ค์—๊ฒŒ ์ฃผ์–ด์ง„ ํฌ์ธํŠธ๋ฅผ ํ™œ์šฉํ•˜์—ฌ ์›Œ์ผ€์ด์…˜ ์ฐธ์—ฌ ๊ธฐํšŒ๋ฅผ ๋ฒ ํŒ…ํ•˜๊ณ , ๋žœ๋ค ์ถ”์ฒจ์„ ํ†ตํ•ด ๋‹น์ฒจ์ž๋ฅผ ์„ ์ •ํ•˜๋Š” ์‹œ์Šคํ…œ์ž…๋‹ˆ๋‹ค.


## ๐Ÿง‘๐Ÿปโ€๐Ÿ’ป ๋ฐฐํฌ ์ •๋ณด

๋ฐฐํฌ URL : https://dkation.com/

| | ๊ด€๋ฆฌ์ž | ์œ ์ € |
| :---: |:-----------------------------------------------------------------------------:|:---------------------------------------------------------------------------:|
| ๋ฉ”์ธ ํŽ˜์ด์ง€ | <img width="400" alt="admin_main" src="src/app/_assets/images/adminMain.png"> | <img width="400" alt="user_main" src="src/app/_assets/images/userMain.png"> |
| Test ID | dkadmin123 | eunzzzzzz1 |
| Test PW | 12345 | 12345 |


## โš™๏ธ ๊ธฐ์ˆ  ์Šคํƒ

<table>
<thead>
<tr>
<th>๋ถ„๋ฅ˜</th>
<th>๊ธฐ์ˆ  ์Šคํƒ</th>
</tr>
</thead>
<tbody>
<tr>
<td>
<p>ํ”„๋ก ํŠธ์—”๋“œ</p>
</td>
<td>
<img src="https://img.shields.io/badge/Next.js-000000?style=flat&logo=Next.js&logoColor=white"/>
<img src="https://img.shields.io/badge/typescript-1572B6?style=flat&logo=typescript&logoColor=000000"/>
<img src="https://img.shields.io/badge/tailwindcss-1252B6?style=flat&logo=tailwindcss&logoColor=white"/>
<img src="https://img.shields.io/badge/react--query-FF4154?style=flat&logo=react-query&logoColor=000000"/>
<img src="https://img.shields.io/badge/zod-F8F8FF?style=flat&logo=zod&logoColor=3E67B1"/>
<img src="https://img.shields.io/badge/NextAuth-483d8b?style=flat&logo=NextAuth&logoColor=000000"/>

</td>
</tr>
<tr>
<td>
<p>ํ˜‘์—…</p>
</td>
<td>
<img src="https://img.shields.io/badge/Notion-000000?logo=Notion">
<img src="https://img.shields.io/badge/Figma-F24E1E?logo=Figma&logoColor=ffffff">
<img src="https://img.shields.io/badge/Jira-4B89DC?logo=Jira&logoColor=ffffff">
<img src="https://img.shields.io/badge/Agit-FEE500?logo=Agit">

</table>

<br />

## ๐Ÿงก FE ํŒ€์› ์†Œ๊ฐœ
<table>
<tr>
<td align="center" width="150px">
<a href="https://github.com/eunji0714" target="_blank">
<img src="https://github.com/eunji0714.png?size=180" alt="์‹ ์€์ง€" />
</a>
</td>
<td align="center" width="150px">
<a href="https://github.com/Ginieee" target="_blank">
<img src="https://github.com/Ginieee.png?size=180" alt="๊ฐ•์–ด์ง„" />
</a>
</td>
<td align="center" width="150px">
<a href="https://github.com/maylh" target="_blank">
<img src="https://github.com/maylh.png?size=180" alt="๊น€๊ฐ€ํ˜„" />
</a>
</td>

</tr>
<tr>
<td align="center">
<a href="https://github.com/eunji0714" target="_blank">
์‹ ์€์ง€
</a>
</td>
<td align="center">
<a href="https://github.com/Ginieee" target="_blank">
๊ฐ•์–ด์ง„
</a>
</td>
<td align="center">
<a href="https://github.com/maylh" target="_blank">
๊น€๊ฐ€ํ˜„
</a>
</td>
</tr>
</table>

<br />

## ๐ŸŽฎ ํ”„๋กœ์ ํŠธ ์„ค์น˜ ๋ฐ ์‹คํ–‰ ๋ฐฉ๋ฒ•

### 1. ์„ค์น˜

```bash
$ git clone https://github.com/TEAM-MONGDOL/dkation-fe.git
$ cd dkation-fe
```

### 2. .env.local ์ถ”๊ฐ€
```bash
npm run dev
# or
yarn dev
# or
pnpm dev
# or
bun dev
NEXT_PUBLIC_SERVER_URL=http://210.109.53.168:8080
NEXTAUTH_SECRET=kUp1byNb0kKEXOiTgT7Sw0DlT0toOykEt1u/vgwxAWg=
NEXTAUTH_URL=http://localhost:3000
NEXT_PUBLIC_KAKAO_API_KEY=ce3f0cff684353522017918a797cdbf3
SENTRY_AUTH_TOKEN=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
```

Open [http://localhost:3000](http://localhost:3000) with your browser to see the result.
### 2. ์‹คํ–‰

You can start editing the page by modifying `app/page.tsx`. The page auto-updates as you edit the file.
```bash
$ npm install
$ npm run dev
```

</br>

## ๐Ÿš€ ํ•ต์‹ฌ ๊ธฐ๋Šฅ ๋ฐ FE ๊ธฐ์ˆ ์  ๋„์ „

### NextAuth & Middleware

> ๋กœ๊ทธ์ธ ๊ถŒํ•œ ๋ฐ ํ† ํฐ ๊ด€๋ฆฌ, ๊ถŒํ•œ์— ๋”ฐ๋ฅธ ๋ผ์šฐํŒ… ์ฒ˜๋ฆฌ

- ๋กœ๊ทธ์ธ ์‹œ ํ† ํฐ์„ ์ฟ ํ‚ค์— ์ €์žฅํ•˜์—ฌ, ํ•ด๋‹น ํ† ํฐ์„ ํ™œ์šฉํ•ด ์œ ์ €๋ฅผ ํŒŒ์•…ํ•จ
- ์œ ์ € ๊ณ„์ •๊ณผ ์–ด๋“œ๋ฏผ ๊ถŒํ•œ์„ ๊ตฌ๋ถ„ํ•˜์—ฌ ๊ฐ ํŽ˜์ด์ง€๋ณ„ ๋ผ์šฐํŒ…์— ์‚ฌ์šฉ
- ๋ฉ”์ธํŽ˜์ด์ง€์™€ ๋กœ๊ทธ์ธํŽ˜์ด์ง€ ์™ธ์˜ ๋ชจ๋“  ํŽ˜์ด์ง€๋Š” ์ตœ์†Œ ์œ ์ € ๊ถŒํ•œ์„ ํ•„์š”๋กœ ํ•˜๋ฉฐ, `/admin` ์œผ๋กœ ์‹œ์ž‘ํ•˜๋Š” ๊ด€๋ฆฌ์ž ํŽ˜์ด์ง€๋Š” ๊ด€๋ฆฌ์ž ๊ถŒํ•œ์„ ํ•„์š”๋กœ ํ•จ
- ๊ถŒํ•œ์„ ์ง€๋‹ˆ์ง€ ์•Š์•˜์œผ๋‚˜ ๊ถŒํ•œ์ด ํ•„์š”ํ•œ ํŽ˜์ด์ง€์— ์ ‘๊ทผํ•˜์˜€์„ ๊ฒฝ์šฐ, ๋กœ๊ทธ์ธ ํŽ˜์ด์ง€๋กœ ๋ฆฌ๋‹ค์ด๋ ‰ํŠธ ์ฒ˜๋ฆฌ

### Daum Postcode & KakaoMap

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
> react-query์˜ useInfinityQuery ํ›…์„ ์‚ฌ์šฉํ•œ ๋ฌดํ•œ์Šคํฌ๋กค ๊ตฌํ˜„

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.
- ์œ ์ € ํŽ˜์ด์ง€์˜ ๋‚ด ์›Œ์ผ€์ด์…˜ ์‹ ์ฒญ ๋‚ด์—ญ, ์–ด๋“œ๋ฏผ ๋‹จ์ฒด ํฌ์ธํŠธ ์ง€๊ธ‰์„ ์œ„ํ•œ ๋Œ€์ƒ ์„ ํƒ, ๋ฐฐ๋„ˆ ๋ฆฌ์ŠคํŠธ ์กฐํšŒ ์‹œ ๋ฌดํ•œ ์Šคํฌ๋กค์„ ์ ์šฉํ•˜์—ฌ ์‚ฌ์šฉ์ž ๊ฒฝํ—˜ ํ–ฅ์ƒ
- initialPageParam์„ ์„ค์ •ํ•˜์—ฌ ๋ฐ์ดํ„ฐ๋ฅผ ๋กœ๋“œํ•  ๋•Œ ๊ธฐ๋ณธ ํŽ˜์ด์ง€ ๋ฐ ํฌ๊ธฐ๋ฅผ ์ •์˜ํ•˜๊ณ , getNextPageParam ํ•จ์ˆ˜๋ฅผ ํ†ตํ•ด ๋‹ค์Œ ํŽ˜์ด์ง€์˜ ํŒŒ๋ผ๋ฏธํ„ฐ๋ฅผ ๊ณ„์‚ฐ
- ๋‹ค์Œ ํŽ˜์ด์ง€์˜ ๋ฐ์ดํ„ฐ๊ฐ€ ์—†๋‹ค๋ฉด ๋ถˆํ•„์š”ํ•œ API ์š”์ฒญ์„ ํ•˜์ง€ ์•Š์Œ

### ์• ๋‹ˆ๋ฉ”์ด์…˜

> ๋‹ค์–‘ํ•œ ์• ๋‹ˆ๋ฉ”์ด์…˜ ํšจ๊ณผ๋ฅผ ํ™œ์šฉํ•˜์—ฌ ๋ถ€๋“œ๋Ÿฌ์šด ์‹œ๊ฐ์  ํšจ๊ณผ๋ฅผ ์ œ๊ณตํ•˜๊ณ  ์‹œ๋ฎฌ๋ ˆ์ด์…˜์„ ๊ตฌํ˜„

- ์–ด๋“œ๋ฏผ ๋„ค๋น„๊ฒŒ์ด์…˜ ๋ฐ”, ์žฅ์†Œ ์„ ํƒ ๋“œ๋กญ๋‹ค์šด, FQA ์•„์ฝ”๋””์–ธ ๋ฉ”๋‰ด ๋“ฑ์— ์• ๋‹ˆ๋ฉ”์ด์…˜์„ ์ ์šฉํ•ด ์‚ฌ์šฉ์ž ๊ฒฝํ—˜์„ ๋ณด๋‹ค ๋ถ€๋“œ๋Ÿฝ๊ณ  ํŽธ๋ฆฌํ•˜๊ฒŒ ๊ฐœ์„ 
- ์›Œ์ผ€์ด์…˜ ๋‹น์ฒจ ์‹œ๋ฎฌ๋ ˆ์ด์…˜์„ ์• ๋‹ˆ๋ฉ”์ด์…˜์„ ์ ์šฉํ•˜์—ฌ ๊ฐ ์‚ฌ์šฉ์ž์˜ ๋ฐฐํŒ… ๋น„์œจ๊ณผ ๋‹น์ฒจ ์ธ๋ฑ์Šค๋ฅผ ๊ณต๊ฐœํ•จ์œผ๋กœ์จ ๋‹น์ฒจ ๊ณผ์ •์˜ ํˆฌ๋ช…์„ฑ์„ ์ฆ๋ช…

</aside>

</br>

## โš’๏ธ ํด๋”๊ตฌ์กฐ
```
- app
โ””โ”€โ”€ (route)
โ”‚ โ”œโ”€โ”€ (user)
โ”‚ โ”‚ โ”œโ”€โ”€ (with-layout)
โ”‚ โ”‚ โ””โ”€โ”€ (without-layout)
โ”‚ โ””โ”€โ”€ admin
โ”‚ โ”œโ”€โ”€ (with-layout)
โ”‚ โ””โ”€โ”€ error
โ””โ”€โ”€ _assets
โ”‚ โ”œโ”€โ”€ icons
โ”‚ โ””โ”€โ”€ images
โ””โ”€โ”€ _components
โ”‚ โ”œโ”€โ”€ admin
โ”‚ โ”œโ”€โ”€ common
โ”‚ โ”‚ โ”œโ”€โ”€ atoms
โ”‚ โ”‚ โ”œโ”€โ”€ containers
โ”‚ โ”‚ โ””โ”€โ”€ modules
โ”‚ โ””โ”€โ”€ user
โ””โ”€โ”€ _constants
โ””โ”€โ”€ _hooks
โ”‚ โ”œโ”€โ”€ admin
โ”‚ โ”œโ”€โ”€ common
โ”‚ โ””โ”€โ”€ user
โ””โ”€โ”€ _types
โ””โ”€โ”€ api
โ””โ”€โ”€ auth
โ””โ”€โ”€ [...nextauth]
```
</aside>

Check out our [Next.js deployment documentation](https://nextjs.org/docs/deployment) for more details.
<br />
Binary file added src/app/_assets/images/adminMain.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/app/_assets/images/userMain.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading