This guide will help you get Clarticle up and running on your local machine.
- Docker Desktop installed and running
- Git for cloning the repository
- Anthropic Claude API key (get one at console.anthropic.com)
git clone https://github.com/Danor93/Clarticle.git
cd ClarticleClarticle uses service-specific environment files. You need to create .env files for each service:
cp server/.env.example server/.envThe default values should work out of the box. No changes needed unless you want custom ports.
cp rag-service/.env.example rag-service/.envEdit rag-service/.env and add your Anthropic API key:
# Replace with your actual API key
ANTHROPIC_API_KEY=sk-ant-api03-your-actual-key-hereNote: Without the Anthropic API key, the chat functionality will not work!
cp client/.env.example client/.envThe default values should work. No changes needed for local development.
docker-compose up --buildThis command will:
- Build all service images
- Start all containers (backend, rag-service, frontend, redis)
- Initialize the vector store
- Make the application available at http://localhost:3000
First startup may take 5-10 minutes as Docker downloads base images and builds services.
- Check Application: Open http://localhost:3000 in your browser
- Check Health: Visit http://localhost:3000/api/health
- Should show all services as "healthy"
- Test Chat: Try asking "Hello, how are you?"
- Add Article: Use the "Add Articles" tab to add a URL
| Variable | Description | Required |
|---|---|---|
ANTHROPIC_API_KEY |
Your Claude API key | ✅ YES |
CLAUDE_MODEL |
Claude model to use | No (default: claude-3-7-sonnet-latest) |
CHUNK_SIZE |
Text chunk size | No (default: 1000) |
MAX_TOKENS |
Max response tokens | No (default: 4000) |
TEMPERATURE |
Model temperature | No (default: 0.7) |
| Variable | Description | Required |
|---|---|---|
RAG_SERVICE_URL |
RAG service URL | No (default: http://localhost:3001) |
REDIS_URL |
Redis cache URL | No (default: redis://localhost:6379) |
PORT |
Server port | No (default: 8080) |
| Variable | Description | Required |
|---|---|---|
VITE_API_URL |
Backend API URL | No (default: http://localhost:8080) |
- Cause: Missing or invalid Anthropic API key
- Solution: Check
rag-service/.envhas validANTHROPIC_API_KEY
- Cause: RAG service failed to start
- Solution: Check logs with
docker-compose logs rag-service-nodejs
- Cause: Another service using ports 3000, 8080, or 3001
- Solution: Stop conflicting services or change ports in
.envfiles
- Cause: Docker daemon not running
- Solution: Ensure Docker Desktop is running
If your code changes aren't reflected after rebuilding containers, try building without cache:
# Rebuild specific service without cache
docker-compose build --no-cache rag-service-nodejs
# Or rebuild all services without cache
docker-compose build --no-cache
# Then restart
docker-compose upFor stubborn cache issues:
# Stop services and remove containers
docker-compose down
# Prune Docker system
docker system prune -a
# Rebuild and start
docker-compose up --build# View logs for all services
docker-compose logs -f
# View specific service logs
docker-compose logs -f rag-service-nodejs
# Stop all services
docker-compose down
# Rebuild specific service without cache
docker-compose build --no-cache rag-service-nodejs
# Remove all containers and volumes (clean slate)
docker-compose down -v- Add Articles: Use the "Add Articles" tab to add URLs to your knowledge base
- Start Chatting: Ask questions about the articles you've added
- Explore Features: Try the theme toggle, check response caching, test concurrent requests
Now you're ready to use Clarticle! Open http://localhost:3000 and start chatting with your articles.