Showing
5 changed files
with
11 additions
and
38 deletions
| ... | @@ -8,7 +8,7 @@ | ... | @@ -8,7 +8,7 @@ |
| 8 | 8 | ||
| 9 | 20대 남자면 꼭 가야만 하는 군대, 어떤 보직이 알맞을지 미리 추천해 드리겠습니다. | 9 | 20대 남자면 꼭 가야만 하는 군대, 어떤 보직이 알맞을지 미리 추천해 드리겠습니다. |
| 10 | 10 | ||
| 11 | -> (이미지 추가 예정) | 11 | + |
| 12 | 12 | ||
| 13 | ## 🔖 프로그램 구조 | 13 | ## 🔖 프로그램 구조 |
| 14 | 14 | ||
| ... | @@ -18,8 +18,6 @@ | ... | @@ -18,8 +18,6 @@ |
| 18 | - `pages` : 기능별 화면을 모아놓은 라우팅 페이지들 입니다. | 18 | - `pages` : 기능별 화면을 모아놓은 라우팅 페이지들 입니다. |
| 19 | - `store` : 상태관리를 위한 redux store 입니다. | 19 | - `store` : 상태관리를 위한 redux store 입니다. |
| 20 | 20 | ||
| 21 | -`KHUSAT-SERVER` | ||
| 22 | - | ||
| 23 | ## 🌏 개발환경 및 사용 언어 | 21 | ## 🌏 개발환경 및 사용 언어 |
| 24 | 22 | ||
| 25 | `KHUSAT-FRONT` | 23 | `KHUSAT-FRONT` |
| ... | @@ -41,35 +39,11 @@ | ... | @@ -41,35 +39,11 @@ |
| 41 | - axios | 39 | - axios |
| 42 | - react-router-dom | 40 | - react-router-dom |
| 43 | 41 | ||
| 44 | -`KHUSAT-SERVER` | ||
| 45 | - | ||
| 46 | ## 🔎 사용 방법 | 42 | ## 🔎 사용 방법 |
| 47 | 43 | ||
| 48 | -**(배포 이전) Local에서 동작하는 방법을 소개합니다.** | 44 | +- 별도의 설치 없이 http://khusat.herokuapp.com 에서 자유롭게 사용하실 수 있습니다! |
| 49 | -> 서버 및 클라이언트 배포 예정 | ||
| 50 | - | ||
| 51 | -1. repository clone 하기 | ||
| 52 | - > 원하는 디렉토리에서 khusat-front 를 클론해옵니다. | ||
| 53 | - | ||
| 54 | - ```jsx | ||
| 55 | - git clone http://khuhub.khu.ac.kr/khusat/khusat-front.git | ||
| 56 | - ``` | ||
| 57 | - | ||
| 58 | -2. package 파일 설치하기 | ||
| 59 | - > 빌드를 위한 패키지 모듈들을 설치합니다. (yarn을 추천합니다) | ||
| 60 | - | ||
| 61 | - ```jsx | ||
| 62 | - yarn // yarn 만 입력합니다. | ||
| 63 | - npm install // npm 사용시 npm install을 입력합니다. | ||
| 64 | - ``` | ||
| 65 | - | ||
| 66 | -3. application 실행하기 | ||
| 67 | - > `yarn start` 로 실행 후 [`localhost:3000`](http://localhost:3000) 으로 접속하여 테스트 할 수 있습니다! | ||
| 68 | 45 | ||
| 69 | - ```jsx | 46 | +> [!지금 테스트 체험해보기](http://khusat.herokuapp.com) |
| 70 | - yarn start | ||
| 71 | - https://localhost:3000 | ||
| 72 | - ``` | ||
| 73 | 47 | ||
| 74 | ## 👥 구성원 소개 | 48 | ## 👥 구성원 소개 |
| 75 | 49 | ||
| ... | @@ -86,5 +60,5 @@ MIT License Copyright(c) [Kyhong Park] | ... | @@ -86,5 +60,5 @@ MIT License Copyright(c) [Kyhong Park] |
| 86 | 60 | ||
| 87 | ## ☎️ Contact | 61 | ## ☎️ Contact |
| 88 | 프로젝트에 문제가 있거나 궁금하신 사항은 메일로 연락주세요 | 62 | 프로젝트에 문제가 있거나 궁금하신 사항은 메일로 연락주세요 |
| 89 | -- Email: junolee7803@gmail.com [JunHo Lee] | ||
| 90 | -- Email: kyhong222@naver.com [Kyhong Park] | ||
| ... | \ No newline at end of file | ... | \ No newline at end of file |
| 63 | +- Email: junolee7803@gmail.com | ||
| 64 | +- Email: kyhong222@naver.com | ||
| ... | \ No newline at end of file | ... | \ No newline at end of file | ... | ... |
| ... | @@ -27,7 +27,7 @@ | ... | @@ -27,7 +27,7 @@ |
| 27 | "web-vitals": "^0.2.4" | 27 | "web-vitals": "^0.2.4" |
| 28 | }, | 28 | }, |
| 29 | "scripts": { | 29 | "scripts": { |
| 30 | - "start": "react-scripts start .env", | 30 | + "start": "react-scripts start", |
| 31 | "build": "react-scripts build", | 31 | "build": "react-scripts build", |
| 32 | "test": "react-scripts test", | 32 | "test": "react-scripts test", |
| 33 | "eject": "react-scripts eject" | 33 | "eject": "react-scripts eject" | ... | ... |
| 1 | import React, { useEffect } from "react"; | 1 | import React, { useEffect } from "react"; |
| 2 | import "./kakaoBtn.scss"; | 2 | import "./kakaoBtn.scss"; |
| 3 | -import dotenv from "dotenv"; | ||
| 4 | import kakao from "../../assets/kakao.png"; | 3 | import kakao from "../../assets/kakao.png"; |
| 5 | -dotenv.config(); | ||
| 6 | 4 | ||
| 7 | const KakaoBtn = ({result}) => { | 5 | const KakaoBtn = ({result}) => { |
| 8 | - useEffect(() => { | 6 | + useEffect(()=>{ |
| 9 | createKakaoButton(); | 7 | createKakaoButton(); |
| 10 | - }, []); | 8 | + },[]); |
| 11 | - | ||
| 12 | const createKakaoButton = () => { | 9 | const createKakaoButton = () => { |
| 13 | // kakao sdk script이 정상적으로 불러와졌으면 window.Kakao로 접근이 가능합니다 | 10 | // kakao sdk script이 정상적으로 불러와졌으면 window.Kakao로 접근이 가능합니다 |
| 14 | if (window.Kakao) { | 11 | if (window.Kakao) { | ... | ... |
| 1 | +import React,{useEffect} from "react"; | ||
| 1 | import useScript from "../hooks/useScript"; | 2 | import useScript from "../hooks/useScript"; |
| 2 | import KakaoBtn from "../components/kakao/KakaoBtn"; | 3 | import KakaoBtn from "../components/kakao/KakaoBtn"; |
| 3 | 4 | ||
| 4 | const KakaoBtnContainer = ({result}) => { | 5 | const KakaoBtnContainer = ({result}) => { |
| 5 | useScript("https://developers.kakao.com/sdk/js/kakao.js"); | 6 | useScript("https://developers.kakao.com/sdk/js/kakao.js"); |
| 7 | + | ||
| 6 | return ( | 8 | return ( |
| 7 | <div className="layout"> | 9 | <div className="layout"> |
| 8 | <KakaoBtn result={result} /> | 10 | <KakaoBtn result={result} /> | ... | ... |
| 1 | -import React from "react"; | 1 | +import React,{useEffect} from "react"; |
| 2 | import styled, { css } from "styled-components"; | 2 | import styled, { css } from "styled-components"; |
| 3 | import { lighten,darken } from "polished"; | 3 | import { lighten,darken } from "polished"; |
| 4 | import KakaoBtn from "../containers/KakaoBtnContainer"; | 4 | import KakaoBtn from "../containers/KakaoBtnContainer"; | ... | ... |
-
Please register or login to post a comment