Giter VIP home page Giter VIP logo

api-study_2022's Introduction

API-study_2022

Wellysis 사내 스터디 (기초 백엔드 API) 기록 repo입니다.

API가 무엇인지...에 대한 이해부터 시작하기 위해 토큰 인증 구현, user 부분 구현 등을 생략하고 진행한 스터디입니다.

아래 스터디 이후 모든 것을 구현한 두번째 스터디를 진행했습니다.

  • 두번째 스터디 보러 가기 링크

기간: 2022.09 - 2022.11

참고: https://realworld-docs.netlify.app/docs/specs/backend-specs/endpoints

Setting

1. 가상환경 생성

python -m venv .venv
  • (option) 가상환경 디렉토리를 .gitignore에 추가
echo '.venv' >> .gitignore

2. 가상환경 활성화

. .venv/bin/activate
  • (option) check
which python

가상환경 내의 Python을 사용하고 있으면 OK

3. 패키지 다운로드

pip install -r requirements.txt 

4. 가상환경 비활성화

deactivate

1주차 - 환경 설정

  • 미션: 로컬에 빈 웹 서비스 띄우기 - 본인은 Python + Flask 조합을 사용

  • 결과: hello.py 확인

    • 환경 설정 후 터미널에 python hello.py 치면 로컬 주소(e.g., http://127.0.0.1:5000) 확인 가능 -> 해당 주소로 접속

2주차 - 아티클 생성

3주차 - 아티클 get, update, and delete

  • 미션: {{로컬호스트url}}/articles/{{slug}}로 들어온 요청을 요청 종류에 따라 처리함 (get, put (update), delete)

    • update할 때는 title이 바뀌면 slug도 바뀌도록
  • 결과: app.py

4주차 - comment create, get, and delete

  • 미션: {{로컬호스트url}}/articles/{{slug}}/comments로 들어온 요청을 요청 종류에 따라 처리함 POST, GET, DELETE (delete의 경우에는 /comments/{{id}} 까지)

  • 결과: app.py

5주차 - favorite article, unfavorite article, get tags

  • 미션: {{로컬호스트url}}/articles/{{slug}}/favorite 로 들어온 요청을 종류에 따라 처리함(POST, DELETE) + GET {{로컬호스트url}}/tags 를 통해 tags 불러오기.

  • 결과: app.py

6주차 - list articles, feed articles

  • 미션: list article의 경우 GET {{로컬호스트url}}/articles를 콜했을 때 filter에 따라서 아티클 보여주기. feed article의 경우 GET {{로컬호스트url}}/articles/feed를 콜했을 때 article 보여주기

  • 결과: app.py

  • 참고: 수정하고 tag 처리하는 과정에서 에러 발생함. 수정 요망..

api-study_2022's People

Contributors

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