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

https://github.com/jod35/fastapi-websockets-chat-app

This is a simple chat Application I built to demonstrate websockets with FastAPI and JavaScript.
https://github.com/jod35/fastapi-websockets-chat-app

Last synced: 11 months ago
JSON representation

This is a simple chat Application I built to demonstrate websockets with FastAPI and JavaScript.

Awesome Lists containing this project

README

          

# FastAPI Websockets with Javascript
This is a simple web socket chat application I built in this [livestream](https://www.youtube.com/live/5o__C9wJHZA?si=L5xwYWZiYGXot-es)

https://github.com/user-attachments/assets/d089bd95-4ca0-43ea-bdee-3a1ac8704bc8

## How to run the app

### Run the app locally
You can install the requirements locally using the following command
```bash
pip install -r requirements.txt
```
Then finally, run the app with the following command
```bash
fastapi dev
```
### Run the application in Docker
You can run the app using Docker with
```bash
docker build -t
```

```bash
docker run -p 8000:8000
```