commit 783b6cb7e83f6c88a963fec0d97e4cebc783a4e5 Author: admtracksteel Date: Thu Mar 12 19:15:05 2026 +0000 initial file diff --git a/README.md b/README.md new file mode 100644 index 0000000..db6315f --- /dev/null +++ b/README.md @@ -0,0 +1,77 @@ +# Gestor de Pintura Industrial (GPI) + +Modern Full-Stack Application for managing industrial painting projects. + +## Tech Stack + +- **Backend**: Node.js, Express, Prisma, PostgreSQL. +- **Frontend**: React (Vite), Tailwind CSS, TypeScript. + +## Prerequisites + +- Node.js (v18+) +- PostgreSQL (running locally or via Docker) + +## Setup + +### Backend + +1. Navigate to the backend directory: + + ```bash + cd backend + ``` + +2. Install dependencies: + + ```bash + npm install + ``` + +3. Configure Environment Variables: + - Copy `.env.example` (or create `.env`) + - Set `DATABASE_URL="postgresql://user:password@localhost:5432/gpidb?schema=public"` + +4. Run Migrations: + + ```bash + npx prisma migrate dev --name init + ``` + +5. Start the server: + + ```bash + npm run dev + ``` + + Server runs on `http://localhost:3000`. + +### Frontend + +1. Navigate to the frontend directory: + + ```bash + cd frontend + ``` + +2. Install dependencies: + + ```bash + npm install + ``` + +3. Start the development server: + + ```bash + npm run dev + ``` + + App runs on `http://localhost:5173`. + +## Features + +- **Projects**: Create and manage painting projects. +- **Geometry**: Register parts with dimensions, area, and complexity. +- **Painting Schemes**: Define paint systems (Primer, Intermediate, Finish). +- **Application Control**: Log daily painting activities (Wet/Dry thickness calculation). +- **Inspection**: Record quality control inspections (EPS, Adhesion, Appearance).