Skip to content

2024.11) velog-dashboard project v2, data-side & batch & admin, back-office

Notifications You must be signed in to change notification settings

Check-Data-Out/velog-dashboard-v2-back-office

Repository files navigation

velog-dashboard-v2-back-office

Velog-Dashboard v2의 데이터, 스크래핑, 백오피스용 레포지토리입니다.

Requirements

  • Python 3.13.0
  • Poetry 1.8.4

Installation

# 프로젝트 Clone 및 이동
git clone https://github.com/Check-Data-Out/velog-dashboard-v2-back-office.git
cd velog-dashboard-v2-back-office

# 전역적으로 3.13 python version 이 아니라면
pyenv local 3.13

# 가상환경 생성 및 패키지 설치
poetry shell
poetry install

Database Configuration

1. dockerdocs를 참고하여 Docker, Docker Compose 설치

2. .env.sample의 형식으로 환경 변수 설정

3. docker-compose up -d로 실행

Run Test

1) unit testing

poetry run pytest

2) formatting & linting

# Formatting
ruff format

# Linting
ruff check --fix

3) register pre-commit

  • need to be done poetry config
poetry show pre-commit  # check the result
poetry run pre-commit install  # the result will be >> pre-commit installed at .git/hooks/pre-commit

# pre-commit testing
poetry run pre-commit run --all-files

Runserver

# Local 환경
python manage.py runserver


# Prod 환경으로 실행
python manage.py runserver --settings=backoffice.settings.prod

About

2024.11) velog-dashboard project v2, data-side & batch & admin, back-office

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages