Code Monkey home page Code Monkey logo

next-delivery's Introduction

프로젝트 개요

  • 음식주문앱
  • Next.js 13 + 리액트 + TS
  • 기획문서 [참고링크]

패키지 정보

  • next13 버전 pages 라우터

  • emotion ⇒ next/js 공식홈페이지 예제 pages 라우터 예전 예제라서 오류 발생함

    • 11.11 버전으로 해결
  • components/pages 폴더 ⇒ 페이지 컴포넌트에 사용될 컴포넌트 모음 폴더

url 구성

url 페이지명 pages 폴더위치 (/…) 컴포넌트 폴더 (/components/pages/) 렌더링방식
/ 메인 / /home SSR
/store/[storeId] 가게 상세페이지 /store /store/detail SSG
/store/[storeId]/food/[foodId] 음식 상세페이지 /store/food /food/detail SSG
/like 가게 찜 페이지 /like /like/list SSR
/cart 음식 장바구니 페이지 /cart /cart/list SSR
/service 고객센터 /service /service SSR

프로젝트 폴더 구성

===================================================
├── 📁public
├── 📁src
|   ├── 📁pages
|   |    ├── 📄index.ts // 메인
|   |    ├── 📁store
|   |    |    ├── 📄[id].tsx // 가게 상세 페이지
|   |    |    ├── ~~📄index.tsx // 가게 목록 페이지 (필요 없음)~~
|   |    |    ├── 📁food
|   |    |         ├── 📄[id].tsx // 가게 상세 페이지
|   |    |         ├── ~~📄index.tsx // 가게 목록 페이지 (필요 없음)~~
|   |    ├── 📁like
|   |    ├── 📁cart
|   |    |    ├── 📁
|   |    |    |    ├── 📄
|   |    |    ├── 📁
|   |    |    |    ├── 📄 
|   ├── 📁components
|   |    ├── 📁home
===================================================

실행

npm install
npm run dev 

개발 로그

10.23

10.24

10.25

  • 메인 페이지 데이터 페칭 작업
  • 가게 상세 페이지
  • 음식 상세 페이지
  • 가게 좋아요 기능 추가
  • 음식 장바구니 기능 추가

next-delivery's People

Contributors

f-lab-bot avatar modac-bull avatar

Watchers

 avatar

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.