Skip to content

sabraman/price-tag-printer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

124 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Price Tag Generator

Web application for generating and printing price tags. Built with React, TypeScript, and Vite.

Features

  • 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

Tech Stack

  • React 18
  • TypeScript
  • Vite
  • TailwindCSS
  • Shadcn UI components
  • PDF-lib for PDF generation
  • XLSX for Excel file handling
  • Google Sheets API integration

Project Structure

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

Getting Started

Prerequisites

  • Node.js (v16 or higher)
  • pnpm (recommended) or npm

Installation

  1. Clone the repository:
git clone https://github.com/yourusername/price-tag-generator.git
cd price-tag-generator
  1. Install dependencies:
pnpm install
  1. Start the development server:
pnpm dev

The application will be available at http://localhost:5173

Building for Production

To create a production build:

pnpm build

To preview the production build:

pnpm preview

Usage

  1. Choose your data input method:

    • Upload an Excel file
    • Connect to Google Sheets
    • Manual data entry
  2. Customize your price tags:

    • Select layout template
    • Adjust text sizes and positioning
    • Add logos or images (if supported)
  3. Preview your tags in real-time

  4. Print your tags:

    • Generate PDF for printing
    • Direct printing from browser

Excel File Format

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")

Development

Available Scripts

  • pnpm dev - Start development server
  • pnpm build - Build for production
  • pnpm preview - Preview production build
  • pnpm lint - Run ESLint

About

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors