45 lines
841 B
Markdown
45 lines
841 B
Markdown
# Developer Guide — Will & Representation
|
|
|
|
This document outlines the standard commands for building, running, and managing the Schopenhauer Chat application.
|
|
|
|
## Development Commands
|
|
|
|
- **Install dependencies**:
|
|
```bash
|
|
npm install
|
|
```
|
|
- **Run local development server**:
|
|
```bash
|
|
npm run dev
|
|
```
|
|
- **Build production bundle**:
|
|
```bash
|
|
npm run build
|
|
```
|
|
- **Run linter**:
|
|
```bash
|
|
npm run lint
|
|
```
|
|
|
|
## Docker Commands
|
|
|
|
- **Build and start the container in background**:
|
|
```bash
|
|
docker compose up --build -d
|
|
```
|
|
- **Inspect container logs**:
|
|
```bash
|
|
docker logs -f schopenhauer-chat
|
|
```
|
|
- **Stop and remove container**:
|
|
```bash
|
|
docker compose down
|
|
```
|
|
|
|
## Environment Setup
|
|
Ensure `.env.local` exists in the root directory with:
|
|
```env
|
|
GEMINI_API_KEY=your_key_here
|
|
GEMINI_MODEL=gemini-3.1-flash
|
|
```
|