This is the server-side application built with Express.
- Clone the repository.
- Navigate to the server directory:
bash cd server
- Install dependencies:
bash npm install
Create a .env
file in the server directory with the following content:
PORT=3001
PG_USER=your_postgres_user
PG_HOST=localhost
PG_PASSWORD=your_postgres_password
ANTHROPIC_API_KEY=your_anthropic_api_key
To start the server, run:
npm run dev
- GET /api/letters: Fetches letters from the database.