| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
A simple Web Application built with FastAPI, React and Websocket. This project was created to consolidate my learning in these technologies and gain confidence in using them for more complex software.
git clone https://github.com/GabrielReira/fastapi-react-websocket-app.git
cd fastapi-react-websocket-appTo run both the backend and frontend, use the single command bellow that will build and start all services:
docker-compose up --buildYou can also run the backend service separately, either with or without Docker.
cd backenddocker build -t app-backend-image .
docker run -dp 8000:8000 app-backend-imageTo run with a Docker volume for persistent data storage:
docker volume create app-db-volume
docker build -t app-backend-image .
docker run -dp 8000:8000 -v app-db-volume:/app/data app-backend-imagecd backendpython -m venv venvsource venv/bin/activate # for Mac/Linux
venv\Scripts\activate # for Windowspip install -r requirements.txtuvicorn main:app --reloadThe frontend can also be run separately, either with Docker or not.
cd frontenddocker build -t app-frontend-image .
docker run -dp 3000:3000 app-frontend-imagecd frontendnpm install
npm startFeel free to connect with me on LinkedIn
| Back | FazBrowse Home | New Git URL |