Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/pshreyam/simple-chat-app
💬 A miniproject implementing simple chat app for understanding websocket
https://github.com/pshreyam/simple-chat-app
fastapi websockets
Last synced: 20 days ago
JSON representation
💬 A miniproject implementing simple chat app for understanding websocket
- Host: GitHub
- URL: https://github.com/pshreyam/simple-chat-app
- Owner: pshreyam
- Created: 2024-10-24T13:28:18.000Z (3 months ago)
- Default Branch: main
- Last Pushed: 2024-11-10T04:33:23.000Z (3 months ago)
- Last Synced: 2024-11-10T05:20:54.897Z (3 months ago)
- Topics: fastapi, websockets
- Language: HTML
- Homepage:
- Size: 203 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Simple Chat App
A simple chat app using FastAPI websocket server for backend for understanding the workings of websocket.
# Getting Started
## Installation
Create a new virtual environment and activate it.
```bash
pyenv virtualenv 3.13.0 chat-server
pyenv activate chat-server
```Install the required packages using the command:
```bash
pip install -r requirements.txt
```## Running the chat app
Run the FastAPI server using the command:
```bash
uvicorn main:app --reload --port 8000
```Serve the webpage in index.html using any server or simply open it in the webbrowser using its local path.