Commit graph

7 commits

Author SHA1 Message Date
clucraft
a2b0c2cc65 Fix price formatting for PostgreSQL DECIMAL type
PostgreSQL returns DECIMAL as strings, not numbers.
Updated all price formatting functions to handle both.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-20 14:22:40 -05:00
clucraft
5263ac93a9 Add database initialization script
- Add database/init.sql with schema
- Mount init.sql in docker-compose for auto-initialization
- PostgreSQL will run this on first startup

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-20 14:14:00 -05:00
clucraft
93b6338e99 Fix TypeScript errors in scraper
- Fix cheerio import to use named exports
- Add proper interfaces for JSON-LD data
- Fix type annotations for CheerioAPI

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-20 14:09:10 -05:00
clucraft
324d47d8b1 Update docker-compose to use GitHub Container Registry images
Images:
- ghcr.io/clucraft/priceghost-backend:latest
- ghcr.io/clucraft/priceghost-frontend:latest

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-20 14:03:54 -05:00
clucraft
8992087220 Fix Dockerfiles: use npm install instead of npm ci
npm ci requires package-lock.json which wasn't generated.
Using npm install instead for builds.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-20 14:02:06 -05:00
clucraft
56c553aa02 Add GitHub Actions workflow for Docker builds
Builds and pushes images to GitHub Container Registry:
- ghcr.io/clucraft/priceghost-backend
- ghcr.io/clucraft/priceghost-frontend

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-20 13:59:22 -05:00
clucraft
10660e5626 Initial commit: PriceGhost price tracking application
Full-stack application for tracking product prices:
- Backend: Node.js + Express + TypeScript
- Frontend: React + Vite + TypeScript
- Database: PostgreSQL
- Price scraping with Cheerio
- JWT authentication
- Background price checking with node-cron
- Price history charts with Recharts
- Docker support with docker-compose

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-20 13:58:13 -05:00