Web application for generating and printing price tags. Built with React, TypeScript, and Vite.
- Generate customizable price tags
- Import data from Excel files
- Google Sheets integration
- Real-time preview of price tags
- Dashboard for managing price tags
- Multiple tag layout options
- Automatic text size adjustment
- Print-ready PDF generation
- React 18
- TypeScript
- Vite
- TailwindCSS
- Shadcn UI components
- PDF-lib for PDF generation
- XLSX for Excel file handling
- Google Sheets API integration
price-tag-printer/
├── public/ # Static assets
├── src/
│ ├── app/ # Application pages
│ │ └── dashboard/ # Dashboard components
│ ├── assets/ # Media assets
│ ├── components/ # Reusable components
│ │ └── ui/ # Shadcn UI components
│ ├── hooks/ # Custom React hooks
│ ├── lib/ # Library code and utilities
│ ├── pages/ # Page components
│ ├── store/ # State management
│ └── utils/ # Utility functions
└── ... # Configuration files
- Node.js (v16 or higher)
- pnpm (recommended) or npm
- Clone the repository:
git clone https://github.com/yourusername/price-tag-generator.git
cd price-tag-generator- Install dependencies:
pnpm install- Start the development server:
pnpm devThe application will be available at http://localhost:5173
To create a production build:
pnpm buildTo preview the production build:
pnpm preview-
Choose your data input method:
- Upload an Excel file
- Connect to Google Sheets
- Manual data entry
-
Customize your price tags:
- Select layout template
- Adjust text sizes and positioning
- Add logos or images (if supported)
-
Preview your tags in real-time
-
Print your tags:
- Generate PDF for printing
- Direct printing from browser
The application expects Excel files with the following structure:
- Column names should match the fields needed for price tags (e.g., name, price, SKU)
- Russian Excel files are supported (like the included "Объединенный_прайс.xlsx")
pnpm dev- Start development serverpnpm build- Build for productionpnpm preview- Preview production buildpnpm lint- Run ESLint