Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
47 commits
Select commit Hold shift + click to select a range
ab4fe0c
set : Initial Setting
seondal Nov 28, 2022
c5b9299
feat : register 기능 추가 (유효성은 아직 X)
heeeesoo Nov 29, 2022
a39a074
feat : 팀 선택 추가
heeeesoo Nov 30, 2022
59c8422
feat : login form 만듦
heeeesoo Dec 1, 2022
f112855
feat : login jwt 테스트
heeeesoo Dec 1, 2022
afbe458
feat : 카카오 로그인 인가 코드 받기
heeeesoo Dec 13, 2022
3c7b313
feat : accessToken 받아오고 콘솔 출력
heeeesoo Dec 13, 2022
467d988
feat : layout 추가
heeeesoo Dec 15, 2022
0c28b12
feat : layout update
heeeesoo Dec 16, 2022
23e70c7
feat : vote, result 페이지 추가
heeeesoo Dec 16, 2022
42ed64c
feat : vote, result에 component 추가
heeeesoo Dec 16, 2022
f9c7dfb
chore : FE, BE type -> department 수정
heeeesoo Dec 18, 2022
c3e2dfc
chore : redux-toolkit count로 테스트 기능
heeeesoo Dec 18, 2022
ec99926
chore : user ID 없애고 email로 바꾸기
heeeesoo Dec 19, 2022
48968d0
chore : 파트 투표버튼 누르면 콘솔찍기
heeeesoo Dec 19, 2022
e5e8053
fix : 투표에 index 추가
heeeesoo Dec 19, 2022
c1f09aa
feat : department, demo 투표 화면 다르게
heeeesoo Dec 19, 2022
960bbd4
feat : redux toolkit에 로그인하면 아이디, 비번 저장
heeeesoo Dec 19, 2022
6cf9c70
feat : user에 isLogged 추가
heeeesoo Dec 19, 2022
6623f15
feat : logout redux 추가
heeeesoo Dec 19, 2022
515c0e3
style : 헤더 스타일 적용
heeeesoo Dec 19, 2022
f3f9137
Merge pull request #1 from dia-ME-tes/heeeesoo
seondal Dec 19, 2022
409aeda
Update .gitignore
seondal Dec 19, 2022
c7d5351
⚙️ set : next-auth 를 이용한 카카오 로그인 구현
seondal Dec 19, 2022
9de5a71
✨ feat : 소셜로그인 여부에 따라 회원가입 화면 다르게 구현
seondal Dec 20, 2022
2264fcf
✨ feat : 모든 조건을 만족해야 회원가입 가능
seondal Dec 20, 2022
fb39045
🛠 fix : 비밀번호 확인 기능 수정
seondal Dec 20, 2022
be52c9a
♻️ refactor : 카카오 로그인 관련 코드 삭제
seondal Dec 20, 2022
039764e
💄 style : picocss 적용 (임시)
seondal Dec 20, 2022
d6e161f
Merge pull request #2 from dia-ME-tes/seondal
heeeesoo Dec 20, 2022
7ea81a8
style : 전체 폰트 적용
heeeesoo Dec 20, 2022
47f0757
style : home 화면
heeeesoo Dec 20, 2022
f5f4488
style : 투표 화면 스타일 적용
heeeesoo Dec 20, 2022
3ef9e8a
style : 결과 화면 스타일 적용
heeeesoo Dec 20, 2022
43b4ac1
chore : register team, department index 콘솔 찍히게
heeeesoo Dec 20, 2022
ab78041
feat : 회원가입 post 추가
heeeesoo Dec 20, 2022
50bab3e
feat : login fetch api 붙임
heeeesoo Dec 20, 2022
de38454
feat : redux user 수정
heeeesoo Dec 20, 2022
87dda6f
chore : getServerSideProps 주석처리
heeeesoo Dec 20, 2022
cd97868
style : login style 적용
heeeesoo Dec 20, 2022
ae797db
style : 회원가입 스타일 적용
heeeesoo Dec 20, 2022
61c3c44
feat : fe,be에 따라서 index화면 다름
heeeesoo Dec 21, 2022
b7cb52f
feat : cookie 해결
heeeesoo Dec 21, 2022
558670b
feat : 자기 팀 투표 못하게
heeeesoo Dec 21, 2022
5d31be9
Merge pull request #3 from dia-ME-tes/jhs
heeeesoo Dec 21, 2022
0c134b5
feat : redux-persist 추가
heeeesoo Dec 21, 2022
afbd37d
Merge pull request #4 from dia-ME-tes/jhs
heeeesoo Dec 21, 2022
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
3 changes: 3 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"extends": "next/core-web-vitals"
}
37 changes: 37 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.

# dependencies
/node_modules
/.pnp
.pnp.js

# testing
/coverage

# next.js
/.next/
/out/

# production
/build

# misc
.DS_Store
*.pem

# debug
npm-debug.log*
yarn-debug.log*
yarn-error.log*
.pnpm-debug.log*

# local env files
.env*.local

# vercel
.vercel

# typescript
*.tsbuildinfo
next-env.d.ts
.env
53 changes: 20 additions & 33 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,47 +1,34 @@
# **마지막 미션: React-Vote! 🗳**
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

안녕하세요! 프론트 파트장 주효정입니다🙌 어느덧 마지막 스터디네요. 그동안 과제하시면서 힘들고 어려우셨겠지만, 성장했다는 보람이 더 컸으면하는 바람입니다.
First, run the development server:

이번 스터디는 각 팀의 백엔드와 함께 진행하는 **합동 과제**입니다. 모던 웹에서 REST API가 주류로 떠오름에 따라 프론트엔드와 백엔드의 구분이 이전보다 명확해졌습니다. 주로 백엔드는 API 서버의 역할을, 프론트엔드는 이를 이용해 사용자에게 UI를 제공하는 역할로 웹이 분화되었습니다. 그 말은 곧, API 없이는 사용자에게 의미있는 서비스를 제공하기 힘들어진다는 것이겠죠. 여러분께서도 차후 팀 프로젝트를 진행하시면서 백엔드 개발자들과 API에 대해 소통할 일이 많아질 것입니다.
```bash
npm run dev
# or
yarn dev
```

따라서 이번 과제는 백엔드 개발자들이 전달해준 `API`를 사용해서 구현해보는 미션입니다. 투표 서비스를 개발해 보는 것인데요. 백엔드 개발자와 함께 클라이언트 사이드에서 API를 조금 더 효율적으로 사용할 수 있는 방법에 대해 고민해 보고, 논의해 보는 시간을 가져 보시기 바랍니다.
Open [http://localhost:3000](http://localhost:3000) with your browser to see the result.

이번 미션도 화이팅입니다🔥
You can start editing the page by modifying `pages/index.tsx`. The page auto-updates as you edit the file.

## **미션**
[API routes](https://nextjs.org/docs/api-routes/introduction) can be accessed on [http://localhost:3000/api/hello](http://localhost:3000/api/hello). This endpoint can be edited in `pages/api/hello.ts`.

### **미션 목표**
The `pages/api` directory is mapped to `/api/*`. Files in this directory are treated as [API routes](https://nextjs.org/docs/api-routes/introduction) instead of React pages.

- REST API를 통한 서버와의 통신 방법을 이해합니다.
- async/await, Promise등 JavaScript의 비동기 처리를 이해합니다.
- API document를 통해 백엔드 개발자와 소통하는 방법을 익힙니다.
- 팀 내의 프론트엔드 개발자와 적절한 역할 분담을 통해 개발 효율을 높이는 방법에 대해 고민합니다.
## Learn More

### **배포 링크**
[배포 링크](https://react-vote-15th-pokedon.vercel.app/)
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.

2022년 12월 21일 (기한 엄수)
You can check out [the Next.js GitHub repository](https://github.com/vercel/next.js/) - your feedback and contributions are welcome!

### **필수 요건**
## Deploy on Vercel

- UI/UX에 대한 감각을 최대한 발휘해 디자인을 적용해 봅니다.
- `HTTPS`를 통해 서버와 통신합니다.
- 외의 사항은 [가이드 문서](https://www.notion.so/CEOS-16-932263db36344e33a3e6cf2c4bbb4576)를 참고하세요.
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.

### **선택 사항**

- API Fetch는 어떤 방식을 사용하든 무방합니다 (axios, Fetch API)
- `Promise.then()` 보단 `async/await`를 사용해 보세요. 더 최신 스펙이랍니다.

## **링크 및 참고자료**

- [리액트 API 연동의 기본](https://react.vlpt.us/integrate-api/01-basic.html)
- [자바스크립트 - 동기(Synchronous)? 비동기(asynchronous)?](https://ljtaek2.tistory.com/142)
- [async와 await, 비동기를 동기코드 처럼](https://kamang-it.tistory.com/entry/JavaScript11async%EC%99%80-await-%EB%B9%84%EB%8F%99%EA%B8%B0%EB%A5%BC-%EB%8F%99%EA%B8%B0%EC%BD%94%EB%93%9C-%EC%B2%98%EB%9F%BC)
- [REST API 제대로 알고 사용하기](https://meetup.toast.com/posts/92)
- [axios란? (feat. Fetch API)](https://velog.io/@shin6403/React-axios%EB%9E%80-feat.-Fetch-API)
- [Postman, 어렵지 않게 사용하기](https://gngsn.tistory.com/26)
Check out our [Next.js deployment documentation](https://nextjs.org/docs/deployment) for more details.
7 changes: 7 additions & 0 deletions next.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
/** @type {import('next').NextConfig} */
const nextConfig = {
reactStrictMode: true,
swcMinify: true,
}

module.exports = nextConfig
Loading