GithubHelp home page GithubHelp logo

server's Introduction

팀원

  • 20200999 양성원
  • 20201009 전시현
  • 20201011 조성윤

Package Structure


📂 git@sisicolcol/server-js
  ┣📂 src
    ┣📂 config # db 옵션
    ┣📂 controllers # req->검사->service && service->검사->res, Controller Layer
    ┣📂 middlewares # 미들웨어들을 짱박아둔 디렉토리
    ┣📂 repositorys # DB와 직접적으로 만나는 디렉토리, DataManager Layer
    ┣📂 routers # 메서드 종류와 요청에 따른 분기를 다루는 곳
    ┣📂 services # Controller에서 비즈니스 로직을 분리한 곳, Service Layer
    ┣📂 utilities # response 관련 status와 함수를 모아둔 곳
    ┣📜 index.js
  ┣📂 swagger
  ┣ .env.example
  ┣ package.json
  

API 로직

  1. index.js(express) - 익스프레스가 띄운 서버로 접속
  2. routers/index.js - 도메인별 라우터로 분기
  3. routers/*.router.js - 해당하는 도메인로 라우팅
  4. controllers/*.controller.js - 유효성 검사, 인증처리 등, Controller Layer
  5. services/*.service.js - DB로 데이터 전달 혹은 DB에서 뽑아온 데이터 정제, Service Layer
  6. respository/*.repository.js - DB 접근 쿼리들의 집합, DataManager Layer
  7. DataBase

How to Run

npm run start
개발시: npm run dev (nodemon)

server's People

Contributors

listenyoon avatar suanna01 avatar hyeon-b avatar

server's Issues

[STYLE] 파일 명칭 통합 수정

📢 이슈 내용

명세서 수정에 따른 파일 이름 수정

📃 상세 내용

  • 활동지원사 관련 파일의 hp를 helper로 통일한다.

✔️ 체크리스트

  • hp.apply.controller
  • hp.apply.repository
  • hp.apply.router
  • hp.apply.service

[FEATURE] 마이페이지 사용자 정보 가져오기

📢 이슈 내용

마이페이지 사용자 정보 가져오기

📃 상세 내용

  • repositorys/hp.apply.repository.js

✔️ 체크리스트

  • 사용자 자기소개서 get
  • 사용자 정보(이름, 성별, 생일) get

📍 참고 내용

[STYLE] hp, helper 명칭 통합하기

📢 이슈 내용

통일성 및 가독성 향상을 위한 hp, helper 명칭 통합

📃 상세 내용

  • apply.router.js에서 '/user/helper/accept' api는 helper명칭 사용
  • hp.apply.router.js에서 '/hp/apply/:hp_id' api는 hp명칭 사용
  • hp.apply.router.js에서 '/hp/apply' api는 hp명칭 사용
  • hp.apply.router.js에서 '/hp/preidc/:hp_id' api는 hp명칭 사용
  • hp.apply.router.js에서 '/hp/preidc' api는 hp명칭 사용

✔️ 체크리스트

  • hp를 helper로 명칭 통일하기

📍 참고 내용

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.