Skip to content

Vijay-kumar-bantu/chat-app-turbo

Repository files navigation

ChatApp Turbo

This is a monorepo for the ChatApp Turbo project, built using Turborepo.

Using this project

To get started, clone the repository and install dependencies:

git clone https://github.com/Vijay-kumar-bantu/chat-app-turbo
cd chatapp-turbo
pnpm install

What's inside?

This monorepo includes the following packages/apps:

Apps and Packages

  • Frontend: a React.js app for the chat interface
  • backend: a Node & express js server
  • @chatapp/ui: a shared React component library used by both Frontend application
  • @chatapp/eslint-config: eslint configurations (includes eslint-config-next and eslint-config-prettier)
  • @chatapp/typescript-config: tsconfig.jsons used throughout the monorepo
  • @chatapp/utils: useful functions through out the monorepo

Each package/app is 100% TypeScript.

Utilities

This monorepo has the following tools pre-configured:

Setup Environment Variables

Before running the application, ensure you create .env for dev and .env.prodfor docker for both the frontend and backend applications. Use the .env.example files provided in their respective directories as a reference.

# For frontend
cp apps/frontend/.env.example apps/frontend/.env

# For backend
cp apps/backend/.env.example apps/backend/.env

Build

To build all apps and packages, run the following command:

pnpm build

Develop

To develop all apps and packages, run the following command:

pnpm dev

Docker Setup

To run the application using Docker, ensure you have Docker and Docker Compose installed on your system. Then, follow these steps:

  1. Build the Docker images and start the containers:

    docker-compose up -d --build
  2. The application will be available at the respective ports defined in the docker-compose.yml file.

  3. To stop and remove the containers, use:

    docker-compose down

Make sure to check the docker-compose.yml file for configuration details.

Screenshots

Here are some screenshots of the application:

Landing Page

Landing Page

Chat Interface

Chat Interface

Author

Vijay Kumar Bantu
Email: capvijju24@gmail.com

About

Chat app build in turborepo

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •