Skip to content

방명록 페이지를 구현한다. #30

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

Open
wants to merge 19 commits into
base: supabase
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
19 commits
Select commit Hold shift + click to select a range
70747bb
🌱: README을 수정
4BFC Sep 3, 2024
ae92a95
🌱: README을 수정
4BFC Sep 3, 2024
1befbe3
🔧: pnpm으로 CRA template TypeScript를 설치하고 eslint 규칙 적용
4BFC Nov 24, 2024
3d0767d
🔧: react-router-dom 설치 후 컴포넌트 연결 및 전체적인 테스트 검토 완료
4BFC Nov 24, 2024
9bb6d51
🔧: pnpm으로 mono-repo 구현
4BFC Nov 24, 2024
c8e26c9
🔧: supabase와 axios, tanstackquery 설치
4BFC Dec 1, 2024
c679da5
✨: Signup 페이지 구현 및 Post요청 확인
4BFC Dec 1, 2024
911dda5
🔧: dotenv 설치
4BFC Dec 2, 2024
5a056a2
✨: env 파일 ignore에 추가
4BFC Dec 2, 2024
8e8196b
✨: 코드 수정
4BFC Dec 2, 2024
b1307d7
✨: fetch함수 확인 및 post 테스트, 500 에러
4BFC Dec 2, 2024
a5aa355
✨: dotenv 추가 및 적용을 위한 커밋, 확인은 따로 하지 않았음
4BFC Dec 3, 2024
ea4fdb2
✨: 회원가입 페이지 interface 정의 및 supabse 연동 확인
4BFC Dec 4, 2024
23833d6
🔧: React-Hook-From 설치
4BFC Dec 4, 2024
a3b3a3c
🔧: Recoil 라이브러리 설치
4BFC Dec 4, 2024
38f241b
✨: 방명록 페이지 생성
4BFC Dec 4, 2024
a5009ee
✨: fetch 훅을 만들고 GET을 할 수 있게 코드를 구현한다. 테스트 성공, 현재 fetch.instance는 get만…
4BFC Dec 4, 2024
40fecd3
✨: Recoil 설정과 Visited css를 구현하면서 Tailwind의 전체적인 UI를 구현했다.
4BFC Dec 4, 2024
7a2aa5d
💄: CSS 적용 완료 및 테스트, 방명록 등록 부분 UI 배치 검토 필요
4BFC Dec 5, 2024
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
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
node_modules
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
node-linker=hoisted
17 changes: 0 additions & 17 deletions README.md

This file was deleted.

94 changes: 94 additions & 0 deletions front/.eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,94 @@
{
"env": {
"browser": true,
"es6": true,

"node": true
},
"parser": "@typescript-eslint/parser",
"plugins": ["@typescript-eslint", "import","prefer-arrow"],
"extends": [
"airbnb",
"airbnb/hooks",
"prettier",
"plugin:@typescript-eslint/recommended",
"plugin:prettier/recommended"
],
"globals": {
"Atomics": "readonly",
"SharedArrayBuffer": "readonly"
},
"parserOptions": {
"ecmaVersion": 2020,
"sourceType": "module",
"ecmaFeatures": {
"jsx": true
}
},
"rules": {
"react/function-component-definition": "off",
// 이 함수형 컴포넌트를 어떤 함수 유형으로 사용할지 미리 정하고 rules에 명시해 두어야 에러가 발생하지 않는다. 따라서 그라운드 룰이 명확하지 않으면 사용하지 않는게 좋다.
"react/react-in-jsx-scope": "off", // JSX를 사용하기 위해 React를 임포트할 필요가 없다고 ESLint에게 알림. React 17부터 JSX 변환이 자동으로 처리되므로 이 규칙을 끔.

"react/jsx-uses-react": "off", // JSX에서 React를 사용하지 않더라도 "React" 변수가 정의되지 않았다고 경고하지 않도록 설정. React 17 이후로는 JSX에 React를 직접 사용하지 않아도 됨.

"linebreak-style": 0, // 줄 바꿈 스타일에 대한 규칙을 비활성화. 플랫폼에 따라 줄 바꿈 스타일을 다르게 강제할 수 있는데, 이 규칙을 끄는 것으로 설정.

"import/no-dynamic-require": 0, // `require()`를 동적으로 사용하는 것에 대한 경고를 비활성화. 런타임에서 동적으로 모듈을 불러오는 것을 허용.

"import/no-unresolved": 0, // 모듈 경로가 올바르게 설정되어 있는지 확인하는 규칙을 비활성화. 경로가 잘못되어도 경고하지 않음.

"import/prefer-default-export": 0, // 단일 `export`를 할 때 `export default`를 사용하도록 강제하는 규칙을 비활성화. 명시적 `export`를 사용할 수 있음.

"global-require": 0, // 모듈을 동적으로 로드할 때 `require()`를 사용하더라도 경고를 표시하지 않도록 설정.

"import/no-extraneous-dependencies": 0, // `package.json`에 명시되지 않은 의존성에 대한 경고를 비활성화. 종속성으로 `devDependencies`에 포함되지 않은 것을 사용할 때 경고하지 않음.

"jsx-quotes": ["error", "prefer-single"], // JSX 속성 값에서 항상 싱글 쿼트(`'`)를 사용하도록 강제. 더블 쿼트(`"`) 대신 싱글 쿼트를 사용하라는 규칙.

"react/jsx-props-no-spreading": 0, // JSX에서 프로퍼티 전파(`{...props}`) 사용을 경고하지 않도록 설정.

"react/forbid-prop-types": 0, // `prop-types` 사용을 금지하는 규칙을 비활성화. React 컴포넌트의 props에 대한 타입 검사를 위해 `prop-types`를 사용할 수 있도록 허용.

"react/jsx-filename-extension": [
2,
{ "extensions": [".js", ".jsx", ".ts", ".tsx"] }
], // JSX를 포함하는 파일에서 사용할 수 있는 확장자를 설정. `.js`, `.jsx`, `.ts`, `.tsx` 파일에서 JSX를 사용할 수 있도록 허용.

"import/extensions": 0, // 파일 확장자에 대한 규칙을 비활성화. `import` 문에서 확장자를 명시할지 여부에 대한 경고를 하지 않음.

"no-use-before-define": 0, // 변수나 함수 선언 전에 사용되는 것을 경고하지 않음. 코드에서 선언 전에 사용된 변수에 대한 경고를 하지 않음.

"@typescript-eslint/no-empty-interface": 0, // 비어있는 인터페이스를 사용하는 것에 대한 경고를 비활성화. TypeScript에서 인터페이스가 비어있어도 경고하지 않음.

"@typescript-eslint/no-explicit-any": 0, // `any` 타입 사용에 대한 경고를 비활성화. TypeScript에서 `any` 타입을 사용할 때 경고하지 않음.

"@typescript-eslint/no-var-requires": 0, // TypeScript에서 `require()`를 사용하는 것에 대한 경고를 비활성화.

"no-shadow": "off", // 변수 이름이 다른 스코프에서 이미 선언된 변수를 덮어쓰는 것을 경고하지 않도록 설정.

"react/prop-types": 0, // `prop-types` 검사를 비활성화. React 컴포넌트에서 prop의 타입 검사를 강제하지 않음.

"no-empty-pattern": 0, // 비어있는 패턴을 사용할 때 경고를 표시하지 않음. 예: `const {}`와 같은 빈 객체 구조 분해 할당을 허용.

"no-alert": 0, // `alert()` 사용에 대한 경고를 비활성화. `alert()`을 사용해도 경고가 표시되지 않음.

"react-hooks/exhaustive-deps": 0, // React Hooks의 `useEffect` 훅에 대한 의존성 배열 검사를 비활성화.

"prefer-arrow/prefer-arrow-functions": "error" // 함수 선언 대신 화살표 함수를 사용하도록 강제. 함수 선언을 화살표 함수로 변환하라는 경고.

// "react/function-component-definition": ["error", {
// "named": "function-declaration",
// "unnamed": "arrow-function"
// }]
//"prefer-arrow/prefer-arrow-functions"으로 대체
},
"settings": {
"import/parsers": {
"@typescript-eslint/parser": [".ts", ".tsx", ".js"]
},
"import/resolver": {
"typescript": {}
}
}
}
23 changes: 23 additions & 0 deletions front/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.

# dependencies
/node_modules
/.pnp
.pnp.js
.env
# testing
/coverage

# production
/build

# misc
.DS_Store
.env.local
.env.development.local
.env.test.local
.env.production.local

npm-debug.log*
yarn-debug.log*
yarn-error.log*
19 changes: 19 additions & 0 deletions front/.prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"parser": "typescript",
"singleQuote": true,
"printWidth": 110,
"tabWidth": 2,
"useTabs": false,
"semi": true,
"quoteProps": "as-needed",
"jsxSingleQuote": true,
"trailingComma": "all",
"arrowParens": "always",
"endOfLine": "auto",
"bracketSpacing": true,
"jsxBracketSameLine": false,
"requirePragma": false,
"insertPragma": false,
"proseWrap": "preserve",
"vueIndentScriptAndStyle": false
}
46 changes: 46 additions & 0 deletions front/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
# Getting Started with Create React App

This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app).

## Available Scripts

In the project directory, you can run:

### `npm start`

Runs the app in the development mode.\
Open [http://localhost:3000](http://localhost:3000) to view it in the browser.

The page will reload if you make edits.\
You will also see any lint errors in the console.

### `npm test`

Launches the test runner in the interactive watch mode.\
See the section about [running tests](https://facebook.github.io/create-react-app/docs/running-tests) for more information.

### `npm run build`

Builds the app for production to the `build` folder.\
It correctly bundles React in production mode and optimizes the build for the best performance.

The build is minified and the filenames include the hashes.\
Your app is ready to be deployed!

See the section about [deployment](https://facebook.github.io/create-react-app/docs/deployment) for more information.

### `npm run eject`

**Note: this is a one-way operation. Once you `eject`, you can’t go back!**

If you aren’t satisfied with the build tool and configuration choices, you can `eject` at any time. This command will remove the single build dependency from your project.

Instead, it will copy all the configuration files and the transitive dependencies (webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except `eject` will still work, but they will point to the copied scripts so you can tweak them. At this point you’re on your own.

You don’t have to ever use `eject`. The curated feature set is suitable for small and middle deployments, and you shouldn’t feel obligated to use this feature. However we understand that this tool wouldn’t be useful if you couldn’t customize it when you are ready for it.

## Learn More

You can learn more in the [Create React App documentation](https://facebook.github.io/create-react-app/docs/getting-started).

To learn React, check out the [React documentation](https://reactjs.org/).
Loading