Skip to content

Commit

Permalink
Merge pull request #3 from KUIT-Space/intro
Browse files Browse the repository at this point in the history
Intro
  • Loading branch information
Turtle-Hwan authored Jul 9, 2024
2 parents a50448b + 9f5a6b8 commit 41beea8
Show file tree
Hide file tree
Showing 14 changed files with 295 additions and 118 deletions.
64 changes: 34 additions & 30 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,30 +1,34 @@
# React + TypeScript + Vite

This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.

Currently, two official plugins are available:

- [@vitejs/plugin-react](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react/README.md) uses [Babel](https://babeljs.io/) for Fast Refresh
- [@vitejs/plugin-react-swc](https://github.com/vitejs/vite-plugin-react-swc) uses [SWC](https://swc.rs/) for Fast Refresh

## Expanding the ESLint configuration

If you are developing a production application, we recommend updating the configuration to enable type aware lint rules:

- Configure the top-level `parserOptions` property like this:

```js
export default {
// other rules...
parserOptions: {
ecmaVersion: 'latest',
sourceType: 'module',
project: ['./tsconfig.json', './tsconfig.node.json'],
tsconfigRootDir: __dirname,
},
}
```

- Replace `plugin:@typescript-eslint/recommended` to `plugin:@typescript-eslint/recommended-type-checked` or `plugin:@typescript-eslint/strict-type-checked`
- Optionally add `plugin:@typescript-eslint/stylistic-type-checked`
- Install [eslint-plugin-react](https://github.com/jsx-eslint/eslint-plugin-react) and add `plugin:react/recommended` & `plugin:react/jsx-runtime` to the `extends` list
# React + TypeScript + Vite with swc
- `npm run dev` ์ดํ›„ localhost:~ ์ฃผ์†Œ ์ ‘์†

- ๋ญ”๊ฐ€ ์ด์ƒํ•˜๋ฉด `npm install` ํ–ˆ๋Š”์ง€ ํ™•์ธํ•˜๊ธฐ

## eslint, prettier, github issue/PR template ์ ์šฉ ์™„๋ฃŒ

[๊ธฐ๋ณธ ๋ธŒ๋žœ์น˜ ์ „๋žต]

๊ฐ์ž ๊ธฐ๋Šฅ ๊ตฌํ˜„ ์‹œ,
1. ์–ด๋–ค ๊ธฐ๋Šฅ์„ ๊ตฌํ˜„ํ•ด์•ผ ํ•˜๋Š”์ง€ ์„ค๋ช…ํ•˜๋Š” issue ์ƒ์„ฑํ•˜๊ธฐ
2. ํ•ด๋‹นํ•˜๋Š” issue ๋ฒˆํ˜ธ์— ๋งž๋Š” branch ์ƒ์„ฑํ•˜๊ธฐ
ex) feat#12-signup
3. ํ•ด๋‹น ๋ธŒ๋žœ์น˜์—์„œ ์ž‘์—… ํ›„, ๊ฒฐ๊ณผ๋ฌผ main branch์— pr ๋‚ ๋ฆฌ๊ธฐ
4. 1์ธ ์ด์ƒ approve review ํ›„ merge
5. review ์™„๋ฃŒ๋˜์—ˆ๊ณ  ๋ฌธ์ œ ์—†์œผ๋ฉด issue close


## ๊ธฐ๋ณธ ํด๋” ๊ตฌ์กฐ (src/)
- assets : ์ด๋ฏธ์ง€ ํŒŒ์ผ๋“ค์ด ๋“ค์–ด๊ฐ€๋Š” ๊ณณ์ž…๋‹ˆ๋‹ค. ํŠน์ • ํŽ˜์ด์ง€/์ปดํฌ๋„ŒํŠธ์—์„œ๋งŒ ์“ฐ์ด๋Š” ๊ฒƒ์€ ํด๋”๋กœ ๋ฌถ์–ด์ฃผ์„ธ์š”.
- components : ์—ฌ๋Ÿฌ ํŽ˜์ด์ง€์— ๊ณตํ†ต์œผ๋กœ ์“ฐ์ด๋Š” ์ปดํฌ๋„ŒํŠธ๊ฐ€ ๋“ค์–ด๊ฐ€๋Š” ๊ณณ์ž…๋‹ˆ๋‹ค.
- figma > assets ์— ์ •๋ฆฌ๋œ ์ปดํฌ๋„ŒํŠธ, figma > 2์ฐจ ์™€ํ”„_์ž‘์—…์ค‘ ํŽ˜์ด์ง€์— ์ •๋ฆฌ๋œ ์ปดํฌ๋„ŒํŠธ๋ฅผ ๊ธฐ๋ฐ˜์œผ๋กœ ํ•ฉ๋‹ˆ๋‹ค.
- pages : ๊ฐ๊ฐ์˜ ํŽ˜์ด์ง€๋ฅผ ๊ตฌ๋ถ„ํ•˜๋Š” ๊ณณ์ž…๋‹ˆ๋‹ค. ํฐ ๊ธฐ๋Šฅ์œผ๋กœ ๋จผ์ € ๊ตฌ๋ถ„ํ•˜๊ณ , ์ƒ์„ธ ํŽ˜์ด์ง€๋Š” ํ•˜์œ„ ํด๋”๋กœ ๊ตฌ๋ถ„ํ•ด ์ฃผ์„ธ์š”.
- utils : ์ค‘๋ณต๋˜๋Š” ๋กœ์ง(์ผ๋ฐ˜ JavaScript ํ•จ์ˆ˜)์„ ๊ณตํ†ต์œผ๋กœ ์ •์˜ํ•ด์„œ ์‚ฌ์šฉํ•ฉ๋‹ˆ๋‹ค.
- apis : fetch ๋“ฑ ์„œ๋ฒ„์™€ ์ •๋ณด๋ฅผ ์ฃผ๊ณ ๋ฐ›๋Š” ์ค‘๋ณต ๋กœ์ง์„ ์ •๋ฆฌํ•ฉ๋‹ˆ๋‹ค.
- hooks : ์ค‘๋ณต๋˜๋Š” ๋กœ์ง(React JSX์—์„œ ์“ฐ์ด๋Š” ๋กœ์ง - ์ƒํƒœ ๊ด€๋ฆฌ, ๋ผ์ดํ”„์‚ฌ์ดํด ๊ด€๋ จ)์„ ์ปค์Šคํ…€ user hook์œผ๋กœ ๋งŒ๋“ญ๋‹ˆ๋‹ค.

<์ถ”ํ›„ ํ•„์š”ํ•˜๋ฉด ์ถ”๊ฐ€>
- styles : css, button ๋“ฑ ๊ณตํ†ต ๋””์ž์ธ์„ ์ •์˜ํ•ฉ๋‹ˆ๋‹ค.
- context/store : ์ „์—ญ ์ƒํƒœ ๊ด€๋ฆฌ๊ฐ€ ํ•„์š”ํ•  ๋•Œ ์‚ฌ์šฉํ•ฉ๋‹ˆ๋‹ค.

## Routing
- App.tsx์— router๋„ ํ•จ๊ป˜ ์ •์˜๋˜์–ด ์žˆ์Šต๋‹ˆ๋‹ค.
- children : [] ์•ˆ์— ์›ํ•˜๋Š” ๊ฒฝ๋กœ์™€ ๋ณด์—ฌ์ค„ component๋ฅผ ์ž‘์„ฑํ•ฉ๋‹ˆ๋‹ค.
181 changes: 172 additions & 9 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "kuit-space-front",
"private": true,
"version": "0.0.0",
"version": "0.0.1",
"type": "module",
"scripts": {
"dev": "vite",
Expand All @@ -10,8 +10,11 @@
"preview": "vite preview"
},
"dependencies": {
"@types/styled-components": "^5.1.34",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"react-router-dom": "^6.24.1",
"styled-components": "^6.1.11",
"vite-plugin-svgr": "^4.2.0"
},
"devDependencies": {
Expand Down
Loading

0 comments on commit 41beea8

Please sign in to comment.