An open API service indexing awesome lists of open source software.

https://github.com/gwjun/global-chat


https://github.com/gwjun/global-chat

fastify i18n i18next react

Last synced: 10 months ago
JSON representation

Awesome Lists containing this project

README

          

# Global Chat

This project sets up a real-time chat service that leverages the LLM API to provide seamless, natural conversations.

## Installation

1. Clone the repository and install the dependencies

```bash
git clone https://github.com/GWjun/global-chat.git
cd global-chat
pnpm install
```

2. Create a .env file

```bash
cp .env.example .env
```

## Run

1. Start Database

```sh
pnpm docker:start
pnpx prisma generate
```

2. Start Application

- **Development:**

```bash
pnpm dev
```

- **Start Production Server:**

```bash
pnpm start
```

Builds the application and starts the server in production mode.

## Structure

```
├── dist/ # Production build output
├── src/ # React application source files
│ ├── main.tsx # Client-side entry point
│ └── route.tsx # Route object
└── server/ # Fastify server code
├── entry.tsx # Server-side entry point for SSR render
└── main.ts # Main server file
```