Code Monkey home page Code Monkey logo

wanted_pre_onboarding's Introduction

wanted_pre_onboarding

  1. 요구사항 분석
  • ORM 사용 하여 구현 : sequelize 사용
  • RDBMS 사용 : sqlite사용
  • 필요한 모델 만들기 : 회사 (company) , 사용자 (user) , 채용공고 (posting), 지원내역(apply)
  • 추가 기능
  1. 구현과정 2-1. model 설계

스크린샷 2022-10-12 오후 9 30 28

2-2. 필요한 npm 모듈 설치

스크린샷 2022-10-12 오후 9 30 59


  1. 기능설명

1. 채용공고 등록

  • POST /list
  • request data 예시
{
    "company_id": 1,
    "position" : "fnd-developer",
    "rewards" : 15000000,
    "content" : "We are looking for a developer as an;......",
    "tech_stack" : "python, aws "
}
  • response
status : 200,
message : "posted"

2. 채용공고 수정 (회사id외 모두 수정가능 )

  • PUT /list/edit
  • 원데이터
{
    "lists": [
        {
            "posting_id": 1,
            "company_id": "1",
            "position": "backend-developer",
            "rewards": 15000000,
            "content": "We are looking for a developer as an;......",
            "tech_stack": "python, aws ",
            "createdAt": "2022-10-12T07:56:49.046Z",
            "updatedAt": "2022-10-12T07:56:58.779Z",
            "company": {
                "name": "Wanted Co",
                "country": "Korea",
                "region": "Seoul"
            }
        }
    ]
}
  • request data 예시
{
    "posting_id" : 1,
    "position" : "front-developer",
    "rewards" : 15000000,
    "content" : "We are looking for a developer as an;......",
    "tech_stack" : "python, aws "
}
  • response ( data 변경 후 )
{
    "detail": {
        "posting_id": 1,
        "company_id": "1",
        "position": "front-developer",
        "rewards": 15000000,
        "content": "We are looking for a developer as an;......",
        "tech_stack": "python, aws ",
        "createdAt": "2022-10-12T07:56:49.046Z",
        "updatedAt": "2022-10-12T07:58:01.731Z",
        "company": {
            "name": "Wanted Co",
            "country": "Korea",
            "region": "Seoul"
        }
    }
}

3. 채용공고 삭제

  • DELETE /list

  • request data 예시

    {
    	"posting_id " : 1 
    }
  • response

status : 200,
message : "deleted"

4. 채용공고 리스트 조회

  • GET /list
  • response data
{
    "lists": [
        {
            "posting_id": 1,
            "company_id": "1",
            "position": "front-developer",
            "rewards": 15000000,
            "content": "We are looking for a developer as an;......",
            "tech_stack": "python, aws ",
            "createdAt": "2022-10-12T07:24:07.930Z",
            "updatedAt": "2022-10-12T07:24:07.930Z",
            "company": {
                "name": "Wanted Co",
                "country": "Korea",
                "region": "Seoul"
            }
        },
        {
            "posting_id": 2,
            "company_id": "1",
            "position": "backend-developer",
            "rewards": 15000000,
            "content": "We are looking for a developer as an;......",
            "tech_stack": "python, aws ",
            "createdAt": "2022-10-12T07:24:23.368Z",
            "updatedAt": "2022-10-12T07:24:23.368Z",
            "company": {
                "name": "Wanted Co",
                "country": "Korea",
                "region": "Seoul"
            }
        }
    ]
}

4-1. 채용공고 리스트 검색기능

  • url : GET /list

  • request 예시 : /list?keyword=front

  • response data 예시

{
    "lists": [
        {
            "posting_id": 1,
            "company_id": "1",
            "position": "front-developer",
            "rewards": 15000000,
            "content": "We are looking for a developer as an;......",
            "tech_stack": "python, aws ",
            "createdAt": "2022-10-12T07:24:07.930Z",
            "updatedAt": "2022-10-12T07:24:23.368Z",
            "company": {
                "name": "Wanted Co",
                "country": "Korea",
                "region": "Seoul"
            }
        }
    ]
}

5. 채용 상세 페이지

  • url : GET / list/:posting_id
  • response data 예시
{
    "lists": [
        {
            "posting_id": 1,
            "company_id": "1",
            "position": "front-developer",
            "rewards": 15000000,
            "content": "We are looking for a developer as an;......",
            "tech_stack": "python, aws ",
            "createdAt": "2022-10-12T07:24:07.930Z",
            "updatedAt": "2022-10-12T07:24:23.368Z",
            "company": {
                "name": "Wanted Co",
                "country": "Korea",
                "region": "Seoul"
            }
        }
    ]
}

6. 채용공고 지원

  • url : POST/apply
  • request data 예시
{
	"posting_id" : 1,
  "user_id" : 1
}
  • response data
    1. // Apply_Model내 데이터에서 같은 posting_id 에 같은 user_id가 있는경
이미 지원한 이력이 있습니다.
    1. 처음 지원한 경우
status : 200,
message : "지원이 완료 되었습니다."

4.Installation


$ npm install

5. Running App

$ npm start

wanted_pre_onboarding's People

Contributors

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