kjpar0317 / vue-python

vue3 pinia vite tailwindcss daisiyui python sqlalchemy asyncio aiomysql poetry

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

vue-python

VUE-파이썬

client : Vue(JS) + Pinia + Vite + TailwindCSS + Daisyui

client 패키지 설치

npm install

server : Python + Poetry + FastAPI + sqlAlchemy

server 패키지 설치

Poetry 설치

윈도우 파워셀에서 (Invoke-WebRequest -Uri https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py -UseBasicParsing).Content | python -

Poetry 가상환경 폴더 변경

백앤드폴더에 .venv 폴더 생성 밑에 명령으로 가상환경 선택
poetry config virtualenvs.in-project true
poetry config virtualenvs.path "./.venv"

Poetry 패키지 설치

poetry install

Poetry 패키지 추가 (새로운 거 추가 시)

예) poetry add fastapi

Python 실행

poetry run python main.py

#기타 참고

tailwindcss

https://tailwindcss.com/docs/aspect-ratio
https://tailwindcomponents.com/
https://play.tailwindcss.com/

아이콘

https://heroicons.com/

Docker

docker-compose up

밑에 것을 쓸 필요가

docker build . -t nginx-fastapi-vue-docker

docker run --rm -p 80:80 nginx-fastapi-vue-docker

About

vue3 pinia vite tailwindcss daisiyui python sqlalchemy asyncio aiomysql poetry


Languages

Language:Vue 72.6%Language:Python 19.6%Language:JavaScript 6.1%Language:Dockerfile 0.7%Language:CSS 0.6%Language:HTML 0.3%Language:Shell 0.1%