mfa / fastapi-vuejs-websocket

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

fastapi-vuejs-websocket

testbed for experiments with fastapi + websockets with a vuejs frontend

backend

run fastapi

uvicorn app.main:app --reload

frontend

cd frontend
npm install
npm run dev

build+watch (with output in app/dist) with localhost setup

npm run watch

build (with output in app/dist) with production setup

npm run build

deploy to fly.io

deploy:

(cd frontend; npm run build) && fly deploy --local-only

About


Languages

Language:Python 47.6%Language:Vue 41.7%Language:JavaScript 7.2%Language:HTML 3.0%Language:Procfile 0.5%