Skip to content

Commit

Permalink
[정성현] sprint5 (#82)
Browse files Browse the repository at this point in the history
* feat: 프로젝트 초기화

- CRA 프로젝트 초기 환경에서 불필요한 코드 제거

* feat: 프로젝트 기본 환경 구성

- README.md 작성
- 프로젝트 디렉터리 구조화
- index.html에 오픈그래프, 파비콘 적용
- index.js에 초기화 / 변수 / 전역 CSS 적용
  • Loading branch information
jsh1147 authored Sep 9, 2024
1 parent 66f3ba6 commit 3ce0807
Show file tree
Hide file tree
Showing 29 changed files with 541 additions and 241 deletions.
125 changes: 55 additions & 70 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,70 +1,55 @@
# 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 your browser.

The page will reload when you make changes.\
You may 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/).

### Code Splitting

This section has moved here: [https://facebook.github.io/create-react-app/docs/code-splitting](https://facebook.github.io/create-react-app/docs/code-splitting)

### Analyzing the Bundle Size

This section has moved here: [https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size](https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size)

### Making a Progressive Web App

This section has moved here: [https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app](https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app)

### Advanced Configuration

This section has moved here: [https://facebook.github.io/create-react-app/docs/advanced-configuration](https://facebook.github.io/create-react-app/docs/advanced-configuration)

### Deployment

This section has moved here: [https://facebook.github.io/create-react-app/docs/deployment](https://facebook.github.io/create-react-app/docs/deployment)

### `npm run build` fails to minify

This section has moved here: [https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify](https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify)
# 🐼 판다마켓

> 일상의 모든 물건을 믿고 거래할 수 있는 **중고 거래 플랫폼**
- [판다마켓 바로가기](https://pandamarket-jsh.netlify.app/)
- 코드잇 스프린트 FE-10 스프린트 미션
- 2024.08.05.(월) ~ 개발 진행 중

![판다마켓 이미지](/readme/banner_w1440.png)

<br />

## 기술 스택

- **개발**
- HTML, CSS, JS
- React
- **IDE**
- Visual Studio Code
- **배포**
- Netlify

<br />

## 네이밍 규칙

- **HTML**
- id: camelCase
- name: camelCase
- class: camelCase with BEM
- **CSS**
- 변수: kebab-case
- **JS**
- 식별자: camelCase

<br />

## 프로젝트 구조

```
step2-FE-kakao-shop : 프로젝트 디렉터리
├─ .github : GitHub 설정
├─ public : Non-Compile 파일
├─ readme : README.md 미디어
└─ src : Compile 파일
├─ apis : 통신 API
├─ assets : 미디어
├─ components : 컴포넌트
├─ constants : 상수
├─ contexts : 전역 상태
├─ hooks : 커스텀 훅
├─ pages : 페이지
├─ styles : CSS
└─ utils : 유틸리티 함수
```
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
{
"name": "1-weekly-mission",
"name": "pandamarket-jsh",
"version": "0.1.0",
"private": true,
"homepage": "https://pandamarket-jsh.netlify.app/",
"dependencies": {
"@testing-library/jest-dom": "^5.17.0",
"@testing-library/react": "^13.4.0",
Expand Down
Binary file modified public/favicon.ico
Binary file not shown.
45 changes: 13 additions & 32 deletions public/index.html
Original file line number Diff line number Diff line change
@@ -1,43 +1,24 @@
<!DOCTYPE html>
<html lang="en">
<html lang="ko" prefix="og: https://ogp.me/ns#">
<head>
<meta charset="utf-8" />
<link rel="icon" href="%PUBLIC_URL%/favicon.ico" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="theme-color" content="#000000" />
<meta property="og:title" content="🐼판다마켓" />
<meta
name="description"
content="Web site created using create-react-app"
property="og:description"
content="일상의 모든 물건을 거래해 보세요"
/>
<meta property="og:image" content="%PUBLIC_URL%/opengraph_w1200.png" />
<meta property="og:url" content="https://pandamarket-jsh.netlify.app" />
<title>판다마켓</title>
<link
rel="stylesheet"
as="style"
crossorigin
href="https://cdn.jsdelivr.net/gh/orioncactus/[email protected]/dist/web/static/pretendard.min.css"
/>
<link rel="apple-touch-icon" href="%PUBLIC_URL%/logo192.png" />
<!--
manifest.json provides metadata used when your web app is installed on a
user's mobile device or desktop. See https://developers.google.com/web/fundamentals/web-app-manifest/
-->
<link rel="manifest" href="%PUBLIC_URL%/manifest.json" />
<!--
Notice the use of %PUBLIC_URL% in the tags above.
It will be replaced with the URL of the `public` folder during the build.
Only files inside the `public` folder can be referenced from the HTML.
Unlike "/favicon.ico" or "favicon.ico", "%PUBLIC_URL%/favicon.ico" will
work correctly both with client-side routing and a non-root public URL.
Learn how to configure a non-root public URL by running `npm run build`.
-->
<title>React App</title>
</head>
<body>
<noscript>You need to enable JavaScript to run this app.</noscript>
<div id="root"></div>
<!--
This HTML file is a template.
If you open it directly in the browser, you will see an empty page.
You can add webfonts, meta tags, or analytics to this file.
The build step will place the bundled scripts into the <body> tag.
To begin the development, run `npm start` or `yarn start`.
To create a production bundle, use `npm run build` or `yarn build`.
-->
</body>
</html>
Binary file removed public/logo192.png
Binary file not shown.
Binary file removed public/logo512.png
Binary file not shown.
25 changes: 0 additions & 25 deletions public/manifest.json

This file was deleted.

Binary file added public/opengraph_w1200.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 0 additions & 3 deletions public/robots.txt

This file was deleted.

Binary file added readme/banner_w1440.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
38 changes: 0 additions & 38 deletions src/App.css

This file was deleted.

22 changes: 1 addition & 21 deletions src/App.js
Original file line number Diff line number Diff line change
@@ -1,25 +1,5 @@
import logo from './logo.svg';
import './App.css';

function App() {
return (
<div className="App">
<header className="App-header">
<img src={logo} className="App-logo" alt="logo" />
<p>
Edit <code>src/App.js</code> and save to reload.
</p>
<a
className="App-link"
href="https://reactjs.org"
target="_blank"
rel="noopener noreferrer"
>
Learn React
</a>
</header>
</div>
);
return <div></div>;
}

export default App;
8 changes: 0 additions & 8 deletions src/App.test.js

This file was deleted.

Empty file added src/apis/.gitkeep
Empty file.
Empty file added src/assets/.gitkeep
Empty file.
Empty file added src/components/.gitkeep
Empty file.
Empty file added src/constants/.gitkeep
Empty file.
Empty file added src/contexts/.gitkeep
Empty file.
Empty file added src/hooks/.gitkeep
Empty file.
13 changes: 0 additions & 13 deletions src/index.css

This file was deleted.

19 changes: 8 additions & 11 deletions src/index.js
Original file line number Diff line number Diff line change
@@ -1,17 +1,14 @@
import React from 'react';
import ReactDOM from 'react-dom/client';
import './index.css';
import App from './App';
import reportWebVitals from './reportWebVitals';
import React from "react";
import ReactDOM from "react-dom/client";
import App from "./App";

const root = ReactDOM.createRoot(document.getElementById('root'));
import "./styles/reset.css";
import "./styles/variable.css";
import "./styles/global.css";

const root = ReactDOM.createRoot(document.getElementById("root"));
root.render(
<React.StrictMode>
<App />
</React.StrictMode>
);

// If you want to start measuring performance in your app, pass a function
// to log results (for example: reportWebVitals(console.log))
// or send to an analytics endpoint. Learn more: https://bit.ly/CRA-vitals
reportWebVitals();
1 change: 0 additions & 1 deletion src/logo.svg

This file was deleted.

Empty file added src/pages/.gitkeep
Empty file.
13 changes: 0 additions & 13 deletions src/reportWebVitals.js

This file was deleted.

5 changes: 0 additions & 5 deletions src/setupTests.js

This file was deleted.

Loading

0 comments on commit 3ce0807

Please sign in to comment.