/fastapi-chatroom-sockets

A real time chat room app using sockets, fast api and react.js

Primary LanguageJavaScript

Setup and Run locally

FastAPI is a modern, fast (high-performance), web framework for building APIs with Python 3.7+ based on standard Python type hints.

for server

Install the dependencies

pip install -r requirements.txt

Run the backend server

uvicorn main:app --reload --host 0.0.0.0 --port 8000

for client

Install the dependencies

npm i

Start the server

npm start

Build & run the docker image

  • for backend
docker build -t server .
docker run -d -p 8000:8000 server
  • for client
docker build -t client .
docker run -d -p 3000:3000 client