Code Monkey home page Code Monkey logo

devops-eng-training's Introduction

devops-eng-training

1. 프로젝트 소개

해당 프로젝트는 모두의연구소 풀잎스쿨 MLOps 스터디에서 진행한 DevOps 실습입니다.
Flask를 사용하여 웹서버를 구현하였으며, GET Method를 통해 사칙연산을 할 수 있습니다.
unittest/functions_test.py에서는 사칙연산 함수를 테스트 해볼 수 있고, integration/app_test.pt에서는 웹서버의 상태를 확인할 수 있습니다.

2. 사용법

  1. git clone
     git clone https://github.com/scy6500/devops-eng-training.git
  2. 패키지 설치
     pip install -r requirements.txt
  3. 웹서버 실행
     python app.py
  4. 서버에 요청 보내기
    덧셈
     curl -X GET 'http://localhost:5000/add?num1=10&num2=2'
    뺄셈
     curl -X GET 'http://localhost:5000/subtract?num1=10&num2=2'
    곱셈
     curl -X GET 'http://localhost:5000/multiply?num1=10&num2=2'
    나누셈
     curl -X GET 'http://localhost:5000/division?num1=10&num2=2'

3. 테스트 방법

  1. 사칙연산 함수 테스트
      cd devops-eng-training/unittest
      pytest
  2. 서버 상태 테스트
      cd devops-eng-training/integration
      pytest

devops-eng-training's People

Contributors

minsulee2 avatar scy6500 avatar

Watchers

 avatar

Forkers

scy6500 lsh110600

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.