codestates / codestates/U-LearningMate

[Dev-log/이희수] 4월3일

Open
#45 0 comments 0 reactions 1 assignee Claimed by @fireballer150 View on GitHub
Dev-Log
Dominant language
JavaScript
Stars
0
Forks
0
PR merge metrics
No merged PRs in 30d

Description

### 오늘은 어떻게 프로젝트에 기여했나요?
- 회원가입페이지 모달로 원래 해야하는데 일단 페이지로 돌려서 했다...모달작업이 더 어려운듯...

![image](https://user-images.githubusercontent.com/91917997/161422650-167f1d9e-a786-489d-adf2-36dabbfdce4f.png)
![image](https://user-images.githubusercontent.com/91917997/161422653-01f5b147-ef18-4e2e-86e6-e6a9e8937b25.png)

### 오늘의 프로젝트에서 힘든 점은 무엇인가요?
- REDUX 코드분리를 해서 코드를 짜봤는데....정말로 어렵구나...하지만 한 10번더 해보면 감이 올꺼같다!

![image](https://user-images.githubusercontent.com/91917997/161422853-73de56ae-20c1-4773-9c44-fc11708446df.png)

- signupActions.js
```
import { SIGNUP_START } from "../types";
import axios from 'axios';

export const signupStart = (email,nickname,password,mobile,level,team) => async (dispatch)=> {
console.log("userAction으로 넘어온이메일패스워드",email,nickname,password,mobile,level,team)
const signInfo = {email,password,nickname,mobile,level,team}
const b = await axios
.post(`${process.env.REACT_APP_API_URL}/users/signup`, signInfo,{
withCredentials: true,
})
.then((res) => {
console.log("res1",res)
if (res.data.message !== "ok") {
return false;
} else {
dispatch({type:SIGNUP_START,payload:{signInfo}});
return true
}
})};
```
- 서버에서 회원가입요청 정보를 받은거 보면 이렇게 나온다
![image](https://user-images.githubusercontent.com/91917997/161422919-e51ec668-6c8c-4758-bb5f-c7490f320002.png)

### 내일은 프로젝트에 기여하기 위해 무엇을 해야 하나요?
- [ ] 리덕스 thunk 구글로그인 구성

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.