https://github.com/mfa/fastapi-vuejs-websocket
https://github.com/mfa/fastapi-vuejs-websocket
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/mfa/fastapi-vuejs-websocket
- Owner: mfa
- Created: 2023-02-28T22:18:40.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-03-13T21:32:39.000Z (over 3 years ago)
- Last Synced: 2025-02-07T14:22:43.593Z (over 1 year ago)
- Language: Python
- Size: 83 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
## 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
```