-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #15 from nowgnuesLee/feature/backend/readme
- Loading branch information
Showing
1 changed file
with
29 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
# Chat Server | ||
A chat server developed using aiohttp, asyncio, and Redis. | ||
## Getting Started | ||
We are currently using Python version 3.12.6. Since Redis is being used, Redis installation is required. | ||
### Installation With pip | ||
``` bash | ||
pip install -r requirements.txt | ||
``` | ||
### Run Server | ||
``` bash | ||
python server.py | ||
``` | ||
## Env | ||
``` | ||
HOST=SERVER_HOST | ||
PORT=SERVER_PORT | ||
REDIS_HOST=REDIS_HOST | ||
REDIS_PORT=REDIS_PORT | ||
MAX_PROCESSES=NUMBER_OF_PROCESSES | ||
ROOM_NAME=ROOM_NAME | ||
``` | ||
## Simulation | ||
You can interact with the running chat server through client.py. You can run multiple clients to simulate a scenario with multiple clients. | ||
### Run Client | ||
```bash | ||
python client.py | ||
``` |