-
Notifications
You must be signed in to change notification settings - Fork 0
Create Week10 Mission1-2 #86
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
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,24 @@ | ||
| # Logs | ||
| logs | ||
| *.log | ||
| npm-debug.log* | ||
| yarn-debug.log* | ||
| yarn-error.log* | ||
| pnpm-debug.log* | ||
| lerna-debug.log* | ||
|
|
||
| node_modules | ||
| dist | ||
| dist-ssr | ||
| *.local | ||
|
|
||
| # Editor directories and files | ||
| .vscode/* | ||
| !.vscode/extensions.json | ||
| .idea | ||
| .DS_Store | ||
| *.suo | ||
| *.ntvs* | ||
| *.njsproj | ||
| *.sln | ||
| *.sw? |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,35 @@ | ||
| # Week10 Mission1 - Movie Search | ||
|
|
||
| TMDB APIλ₯Ό νμ©ν μν κ²μ, μ±μΈ μ½ν μΈ ν¬ν¨ μ¬λΆ, μΈμ΄ μ ν, μν μμΈ λͺ¨λ¬, SPA λ°°ν¬ μ€μ μ ν¬ν¨ν 10μ£Όμ°¨ λ―Έμ μ λλ€. | ||
|
|
||
| ## μ€ν | ||
|
|
||
| ```bash | ||
| npm install | ||
| npm run dev | ||
| ``` | ||
|
|
||
| ## νκ²½λ³μ | ||
|
|
||
| `.env` νμΌμ Gitμ μ¬λ¦¬μ§ μμ΅λλ€. `.env.example`μ μ°Έκ³ ν΄ μλ κ°μ μ€μ ν΄μ£ΌμΈμ. | ||
|
|
||
| ```bash | ||
| VITE_TMDB_BASE_URL=https://api.themoviedb.org/3 | ||
| VITE_TMDB_API_KEY=your_tmdb_bearer_token | ||
| ``` | ||
|
Comment on lines
+17
to
+19
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ν΄λΌμ΄μΈνΈ λ²λ€μ Bearer ν ν°μ λ ΈμΆνκ³ μμ΅λλ€. Line 17-19μ²λΌ π€ Prompt for AI Agents |
||
|
|
||
| ## ꡬν λ΄μ© | ||
|
|
||
| - `form` κΈ°λ° μν κ²μ UI | ||
| - μν μ λͺ© μ λ ₯ μν κ΄λ¦¬ | ||
| - μ±μΈ μ½ν μΈ ν¬ν¨ μ¬λΆλ₯Ό `include_adult` νλΌλ―Έν°λ‘ μ λ¬ | ||
| - νκ΅μ΄, μμ΄, μΌλ³Έμ΄ μ ν κ°μ `language` νλΌλ―Έν°λ‘ μ λ¬ | ||
| - μν μΉ΄λ ν΄λ¦ μ μμΈ λͺ¨λ¬ νμ | ||
| - IMDb κ²μ λ²νΌ μ ν μ΄κΈ° | ||
| - `/movies/:movieId` λΌμ°ν μ μ§ | ||
| - `vercel.json`μΌλ‘ SPA μλ‘κ³ μΉ¨ 404 λ°©μ§ | ||
| - `React.memo`, `useCallback`, `useMemo` κΈ°λ° λ λλ§ μ΅μ ν | ||
|
|
||
| ## μ΅μ ν κΈ°λ‘ | ||
|
|
||
| [OPTIMIZATION.md](./OPTIMIZATION.md)μ μν νμ΄μ§ μ΅μ ν λ΄μ©κ³Ό LP νμ΄μ§ μ±λ₯ κ°μ ν¬μΈνΈλ₯Ό μ 리νμ΅λλ€. | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,23 @@ | ||
| import js from '@eslint/js' | ||
| import globals from 'globals' | ||
| import reactHooks from 'eslint-plugin-react-hooks' | ||
| import reactRefresh from 'eslint-plugin-react-refresh' | ||
| import tseslint from 'typescript-eslint' | ||
| import { defineConfig, globalIgnores } from 'eslint/config' | ||
|
|
||
| export default defineConfig([ | ||
| globalIgnores(['dist']), | ||
| { | ||
| files: ['**/*.{ts,tsx}'], | ||
| extends: [ | ||
| js.configs.recommended, | ||
| tseslint.configs.recommended, | ||
| reactHooks.configs.flat.recommended, | ||
| reactRefresh.configs.vite, | ||
| ], | ||
| languageOptions: { | ||
| ecmaVersion: 2020, | ||
| globals: globals.browser, | ||
| }, | ||
| }, | ||
| ]) |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,13 @@ | ||
| <!doctype html> | ||
| <html lang="en"> | ||
| <head> | ||
| <meta charset="UTF-8" /> | ||
| <link rel="icon" type="image/svg+xml" href="/favicon.svg" /> | ||
| <meta name="viewport" content="width=device-width, initial-scale=1.0" /> | ||
| <title>mission1</title> | ||
| </head> | ||
| <body> | ||
| <div id="root"></div> | ||
| <script type="module" src="/src/main.tsx"></script> | ||
| </body> | ||
| </html> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
π§© Analysis chain
π Script executed:
Repository: HSU-Makeus-Challenge-10th/Web
Length of output: 284
.env.exampleνμΌμ΄ μ‘΄μ¬νμ§ μμ΅λλ€. νμΌμ μμ±νκ±°λ README μ§μλ¬Έμ μμ ν΄μΌ ν©λλ€.README 14λ² λΌμΈμμλ κ°λ°μλ€μ΄
.env.exampleμ μ°Έκ³ νλλ‘ μλ΄νκ³ μμΌλ, ν΄λΉ νμΌμ΄ μ μ₯μμ μ‘΄μ¬νμ§ μμ΅λλ€..env.exampleνμΌμ μμ±νμ¬ νμν νκ²½ λ³μλ₯Ό ν¬ν¨μν€κ±°λ, READMEμ μ°Έκ³ μ§μλ¬Έμ μμ νμΈμ.π€ Prompt for AI Agents