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.
- Host: GitHub
- URL: https://github.com/jod35/fastapi-websockets-chat-app
- Owner: jod35
- Created: 2024-09-08T09:23:47.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-09-08T09:45:45.000Z (over 1 year ago)
- Last Synced: 2025-01-05T16:12:15.651Z (about 1 year ago)
- Language: HTML
- Size: 400 KB
- Stars: 2
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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
```