Backend: https://github.com/Rawaa-Al-Kabbani/chat-backend
This is my implementation of the frontend for the Chat app. It is written in Typescript and React.js is used as the framework.
When running the app via Docker Nginx is used to serve the static build files.
You can currently sign up, sign in, create room, and send messages in the app.
The app uses WebSockets for real-time room and message updates.
- Node.js and Yarn for running the app locally.
If you are using NVM you can install a compatible version from the
.nvmrc
file usingnvm use
- Docker for running the app via Docker
- docker-compose for running the app via docker-compose
To run it using Docker:
- Ensure you have Docker installed on your system
- Build the Docker image using
docker build -t chat-app .
- Start the container using
docker run -p 3000:80 -t chat-app
- The app will be available on http://localhost:3000
To run it using docker-compose:
- Ensure you have Docker and docker-compose installed on your system
- Start the app using
docker compose up build
- The app will be available on: http://localhost:3000
To run the formatting:
- Install the development dependencies using
yarn install
- Run
yarn run format
To generate the GraphQL types:
- Install the dependencies using
yarn install
- Ensure the backend is running, and that you have the correct schema URL configured in
codegen.ts
- Run
yarn run graphql-codegen