39647-vm/replit.md
tornikegerantia bc95274472 Add compatibility for Replit environment and local development
Update backend server to handle Webflow GraphQL endpoints and CSRF tokens, serve static files correctly, and use 0.0.0.0 host. Add a compatibility script for frontend Webflow e-commerce issues and update HTML files to include it.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 375ec6d3-d5af-4f82-ab81-5c60fd4a86a3
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Event-Id: 05dda85a-ad24-46c8-b27e-50c860b4dd57
Replit-Helium-Checkpoint-Created: true
2026-04-14 21:14:11 +00:00

15 lines
823 B
Markdown

# Project Overview
## Architecture
- Static Webflow-exported frontend in the project root (`index.html`, `company.html`, `order.html`, `login.html`, `css/`, `js/`, `images/`).
- Node.js/Express backend in `backend/` serves the root static site and `/api/*` endpoints.
- Backend data is stored in JSON files under `backend/data/`; no external database is required for the current setup.
## Replit Setup
- Main workflow runs `cd backend && npm start` on port 5000.
- Express listens on `0.0.0.0` and trusts the Replit proxy for preview compatibility.
- Production deployment is configured to run the same backend server command.
## Important Notes
- Run backend commands from the `backend/` directory so static files resolve correctly.
- The frontend API helper uses relative same-origin `/api` URLs when served over HTTP.