153

GitHub - kakao-recruit/2019-blind-2nd-elevator: 2019 카카오 블라인드 공채 2차 오...

 4 years ago
source link: https://github.com/kakao-recruit/2019-blind-2nd-elevator
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

README.md

2019 카카오 블라인드 공채 2차 오프라인 - Elevator

2019 카카오 블라인드 공채 2차 오프라인 문제에서 사용한 Elevator 서버 코드를 공개합니다.

Directories

    .
    ├── dataset                # problem sets
    ├── docs                   # documentation files
    ├── elevator               # source files
    ├── example                # example
    ├── logs                   # elevator logs
    ├── LICENSE
    ├── CONTRIBUTING.md 
    ├── NOTICE.md 
    └── README.md

Elevator System

Elevator system design 문서 바로가기

Elevator Control API

Elevator control API 문서 바로가기

Elevator Game 문제

Elevator Game 문제보기

Getting Started

Installation Prerequisites

다음의 경우 example 코드를 수행하기 위해 필요합니다.
  • Python 2.7 (or higher) or 3.4(or higher)
  • Python Requests

Install and Run

Repository 를 Clone 하고 Elevator 서버를 실행합니다.

$ git clone https://github.com/kakao-recruit/2019-blind-2nd-elevator.git $GOPATH/src/2019-blind-2nd-elevator
$ cd $GOPATH/src/2019-blind-2nd-elevator/elevator/cmd/elevator/
$ go get ./						# install libraries
$ go build
$ ./elevator

Docker를 이용하여 서버를 실행하는 방법도 있습니다.

$ git clone https://github.com/kakao-recruit/2019-blind-2nd-elevator.git 
$ cd 2019-blind-2nd-elevator
$ docker build . -t elevator
$ docker run -p 8000:8000 elevator

Elevator Control

example 코드로 어피치 맨션 문제를 풀어봅니다. python 2.7 또는 3.4 이상이 필요합니다.

$ cd 2019-blind-2nd-elevator
$ cd example
$ python example.py

Elevator Viewer

elevator 제어 코드를 실행하면 ./logs 경로에 로그가 기록됩니다.

http://localhost:8000/viewer 로 접속하면 지금까지 서버에서 수행한 token 목록이 나오고, 이를 클릭하면 elevator simulation 결과를 확인할 수 있습니다.

viewer

만든 사람들

문의


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK