https://github.com/gwjun/global-chat
https://github.com/gwjun/global-chat
fastify i18n i18next react
Last synced: 10 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/gwjun/global-chat
- Owner: GWjun
- Created: 2025-01-06T04:31:00.000Z (12 months ago)
- Default Branch: main
- Last Pushed: 2025-03-03T07:27:32.000Z (10 months ago)
- Last Synced: 2025-03-03T08:28:39.323Z (10 months ago)
- Topics: fastify, i18n, i18next, react
- Language: TypeScript
- Homepage:
- Size: 223 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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
```