Git Product home page Git Product logo

nestjsbasic's Introduction

Nest Logo

A progressive Node.js framework for building efficient and scalable server-side applications.

NPM Version Package License NPM Downloads CircleCI Coverage Discord Backers on Open Collective Sponsors on Open Collective Support us

Description

Nest framework TypeScript starter repository.

Installation

$ npm install

Running the app

# development
$ npm run start

# watch mode
$ npm run start:dev

# production mode
$ npm run start:prod

Test

# unit tests
$ npm run test

# e2e tests
$ npm run test:e2e

# test coverage
$ npm run test:cov

Support

Nest is an MIT-licensed open source project. It can grow thanks to the sponsors and support by the amazing backers. If you'd like to join them, please read more here.

Stay in touch

License

Nest is MIT licensed.

nestjsbasic's People

Contributors

nuyeo avatar kakasoo avatar

Stargazers

 avatar  avatar 정예지 avatar Teddy avatar Dok6n avatar JangHyeok Moon avatar SunKyu Choi avatar

Watchers

Teddy avatar  avatar Rimo avatar

nestjsbasic's Issues

docker-compose 사용하기

프로젝트 폴더의 root에 아래 코드를 복사해서 docker-compose.yml 파일을 만드세요.
이후에 root 폴더에서 docker compose up -d를 입력하면 MySQL이 설치됩니다.
단, 이미 MySQL을 사용 중이라면 제가 말한 걸 하기 전에 먼저 말씀해주세요.

version: "3"
services:
  # 서비스 명
  mysql:
    # 사용할 이미지
    image: mysql:8.0

    # 컨테이너 실행 시 재시작
    restart: always

    # 컨테이너명 설정
    container_name: RepoServerDB

    # 접근 포트 설정 (컨테이너 외부:컨테이너 내부)
    ports:
      - "3306:3306"

    # 환경 변수 설정
    environment:
      MYSQL_ROOT_PASSWORD: password

    # 명령어 설정
    command:
      - --character-set-server=utf8mb4
      - --collation-server=utf8mb4_unicode_ci

커머스 ERD 설계하기

여기서 설명하는 커머스 ERD는 가장 대표적인 커머스들의 공통 특징을 묶으려고 하는 것이고, 디테일한 부분까지 챙기지는 못합니다.
하지만 대충 판매자, 구매자, 주문결제에 대한 각각 6개씩의 테이블만 트리로 잘 만들어둬도 웬만한 커머스 구조를 모방할 수 있습니다.
재밌는 점은 판매자, 구매자, 주문결제로 이어지는 이 세 가지 트리의 구조가 서로 똑같고, 시간 순으로 진행된다는 점이에요.
그럼 한 번 시작해보죠.

NestJS 구조 정리

이것 또한 먼저 시작하신 분이 있습니다.
앞의 분을 보고 배우되 자기가 이해한 그대로의 언어로 작성해주세요.
각각이 어떤 구조인지 심층적으로 파고들 게 아니라면 일단 역할에 대한 이해가 자기 언어로 설명하는 게 낫습니다.

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.