Giter Club home page Giter Club logo

globalnewssearchweb's Introduction

moya-sharp 모야샵 프로젝트

사용한 기술 스택

  • React
  • Redux / redux-saga
  • emotion (css-in-js)
  • typescript

프로젝트 폴더 구조

├── public
│   └── images
├── assets
├── components
├── containers
├── pages
├── hooks
├── redux
│   ├── modules
│   └── store.ts
├── api
│   └── newsList.ts
├── util.js
├── App.js
└── index.js

해당 폴더 구조에 대한 설명

  • public
    • 이미지 파일을 저장해 둔 곳
  • assets
    • 키워드 리스트 파일 저장
  • components
    • 재활용 가능한 컴포넌트들을 저장해둔 폴더
    • 그 아래 영역별로 (home, newsList, myPage) 하위 폴더가 있어서 그이래 컴포넌트가 작성되어 있음
  • containers
    • component를 감싸고 있는 컴포넌트로 보여주는 것 이외에 로직을 component로 내려주는 역활을 함
    • 관리해야할 상태는 container에서 관리하고 component는 받아서 사용하는 역활만 수행하도록 함
  • hooks
    • container에서도 페이지 전반에서 재사용되는 상태를 관리하는 로직만 모아둔 파일
    • 또는, 키워드 리스트들의 해당 키워드의 api code를 적어두는 객체를 모아두는 곳으로도 사용함,
  • pages
    • 해당 프로젝트의 페이지를 한눈에 볼 수 있도록 라우터에 걸어둔 컴포넌트
    • 컴포넌트의 전반적인 흐름은 App.js -> pages -> container -> components 로 이동함
  • styles
    • 각각의 컴포넌트의 경우 해당 컴포넌트 파일에서 스타일을 작성했으므로 styles 폴더는 글로벌 스타일과 테마만 파일만 보관
  • App.tsx
    • 라우팅의 용도로 사용하거나 Layout을 설정하는 용도로 사용
  • index.tsx
    • 프로젝트의 시작점으로 프로젝트의 전반적으로 해당하는 로직을 작성한거나, 라이브러리를 셋팅할때도 사용

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.