Code Monkey home page Code Monkey logo

wanted-pre-onboarding-backend's Introduction

원티드 프리온보딩 백엔드 코스 5차 선발과제

요구사항 분석 및 구현 과정

요구사항

  1. 채용공고를 등록합니다.
  2. 채용공고를 수정합니다.
  3. 채용공고를 삭제합니다.
  4. 채용공고 목록을 가져옵니다.
    • 채용공고 목록 확인.
    • 채용공고 검색 기능 구현.
  5. 채용 상세 페이지를 가져옵니다.
  6. 사용자는 채용공고에 지원합니다.

구현 과정

  • 채용 공고 id값을 패스 파라미터로 받아서 해당하는 채용공고가 있으면 그 객체를 리턴하고 없으면 404에러를 raise하는 함수를 만들고 필요한 부분에서 활용했습니다.
  • 1, 4, 6번은 Function Based View로 구현하였습니다.
  • 2, 3, 5번은 같은 엔드포인트에서 http 메서드별로 구별하여 Class Based View로 구현하였습니다.
  • 1번은 회사가 채용 공고를 등록하는 것이므로 회사id 값이 들어가도록 구현했습니다.
  • 2번은 회사 id 외에 모든 정보를 수정할 수 있도록 patch 메서드를 활용하여 구현했습니다.
  • 3번은 채용공고id로 해당 공고를 찾고 삭제하는 방식으로 구현했습니다.
  • 4번은 django.db.models의 Q를 활용하여 채용공고를 올린 회사명, 포지션, 사용기술이 모두 검색되도록 구현했습니다.
  • 5번은 해당 공고를 올린 회사가 올린 다른 채용공고id를 조회할 수 있도록 구현했습니다.
  • 6번은 사용자는 한 채용공고를 1회만 지원 가능하다는 조건에 맞게 구현했습니다.
  • Unit Test를 구현했습니다.

wanted-pre-onboarding-backend's People

Contributors

stresszero avatar

Stargazers

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