GithubHelp home page GithubHelp logo

node-lv-5's Introduction

Lv5

  1. 요구사항 정리 / ERD 설계
  2. Prettier 를 이용한 간격 설정
  3. becrypt 암호화
  4. 아이디/비밀번호 검증 Joi 라이브러리 이용 - 컨트롤러 단
  5. Sequelize 트랜잭션 사용
  6. 3 레이어 패턴 적용
  7. 에러핸들링 미들웨어 구성
  8. 엑세스, 리프레쉬 토큰
  • EsLint
  • 타입스크립트로 변경 작업
  • 에러핸들링 미들웨어에 에러 발생 시 slack으로 에러 로그 넘겨주기
  • Jest를 이용해 테스트 코드 작성하기
  • Elastic Redis 적용 + 리프레쉬 토큰

요구사항

  1. 회원가입/로그인

    • 회원가입
    • 로그인
  2. 게시글

    • 게시글 작성
    • 게시글 수정
    • 게시글 삭제
    • 게시글 조회 + 해당 게시글 좋아요,
    • 게시글 목록 조회(검색)
    • 게시글 좋아요
  3. 댓글

    • 댓글 작성
    • 댓글 수정
    • 댓글 삭제
    • 댓글 조회
  • 댓글 좋아요
  1. 답글

    • 답글 작성
    • 답글 수정
    • 답글 삭제
    • 답글 조회
    • 답글 좋아요
  2. 마이페이지

    • 내가 쓴 게시글 조회
    • 내가 쓴 댓글 조회 -> 어떤 게시글에 작성했는지,
    • 내가 좋아요한 게시글 조회
    • 내가 좋아요한 댓글 조회
    • 내가 좋아요한 답글 조회
    • 내가 쓴 답글 조회

migrate, model 생성

-- Users Table npx sequelize model:generate --name Users --attributes userId:string,password:string,nickname:string,salt:string -- UserInfos Table npx sequelize model:generate --name UserInfos --attributes userInfoId:integer,userId:string,profileImage:string,name:string,age:integer,gender:integer,position:integer -- Teams npx sequelize model:generate --name Teams --attributes teamId:integer,userId:string,teamName:string,userRole:integer -- Comments Table npx sequelize model:generate --name Comments --attributes commentId:integer,postId:integer,userId:string,parentCommentId:integer,content:string -- Posts Table npx sequelize model:generate --name Posts --attributes postId:integer,userId:string,title:string,introduce:string,content:string,thumnail:string -- PostImages Table npx sequelize model:generate --name PostImages --attributes resourseId:integer,postId:integer,imageUrl:string -- PostTags Table npx sequelize model:generate --name PostTags --attributes postTagId:integer,postId:integer,tagId:integer -- LikePosts Table npx sequelize model:generate --name LikePosts --attributes likeId:integer,postId:integer,userId:string -- LikeComments Table npx sequelize model:generate --name LikeComments --attributes likeId:integer,commentId:integer,userId:string -- CommonItems Table npx sequelize model:generate --name CommonItems --attributes itemId:integer,itemClass:string,itemName:string

node-lv-5's People

Contributors

wooglim 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.