An open API service indexing awesome lists of open source software.

https://github.com/mfa/fastapi-vuejs-websocket


https://github.com/mfa/fastapi-vuejs-websocket

Last synced: about 1 year ago
JSON representation

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
```