Skip to content

yusufarsln98/my-safe-pdf

Repository files navigation

React, Vite and Tanstack Router (With Ant Design)

A modern and minimal boilerplate for React projects using TypeScript, Vite, Antd Design, and other essential tools for a productive development experience.

Features

  • ⚡️ Vite - Lightning fast build tool
  • ⚛️ React 19 - The library for web UIs
  • 📝 TypeScript - JavaScript with syntax for types
  • 🔷 Ant Design - A comprehensive React UI library
  • 🎨 Styled Components - CSS-in-JS styling solution
  • 📚 Storybook - UI component development environment
  • 🔍 ESLint - Code linting
  • 💅 Prettier - Code formatting
  • 🐶 Husky - Git hooks made easy
  • 📋 Commitlint - Lint commit messages
  • 🧭 TanStack Router - Type-safe routing for React
  • 🌐 i18next - Internationalization framework for language switching and localization
  • 🗃️ Zustand - Simple and fast state management

Getting Started

  1. Clone this repository:

  2. Install dependencies:

npm install
  1. Start development server:
npm run dev

Available Scripts

  • npm run dev - Start development server
  • npm run build - Build for production (runs TypeScript compiler and Vite build)
  • npm run preview - Preview production build
  • npm run prepare - Setup Husky git hooks
  • npm run lint - Run ESLint
  • npm run lint:fix - Fix ESLint errors
  • npm run format - Format code with Prettier
  • npm run format:check - Check code formatting
  • npm run storybook - Start Storybook server (port 6006)
  • npm run build-storybook - Build Storybook

Commit Convention

This boilerplate follows Conventional Commits:

  • feat: New feature
  • fix: Bug fix
  • docs: Documentation changes
  • style: Code style changes (formatting, etc.)
  • refactor: Code refactoring
  • perf: Performance improvements
  • test: Adding or updating tests
  • chore: Maintenance tasks
  • ci: CI/CD changes

Collecting workspace informationI'll help update the project structure section in your README.md to reflect your actual workspace structure. Here's the updated version:

Project Structure

.
├── .env.example       # Example environment variables
├── .husky/            # Git hooks configuration
├── .storybook/        # Storybook configuration
├── docs/              # Project documentation
├── public/            # Public static files
├── src/
│   ├── assets/        # Static assets (images, locales)
│   ├── lib/           # Common utilities and configurations
│   │   ├── hooks/     # Custom React hooks
│   │   ├── types/     # TypeScript types and interfaces
│   │   └── utils/     # Utility functions
│   ├── components/    # Reusable UI components
│   │   └── ui/        # Common UI components
│   ├── features/      # Feature-specific modules
│   ├── pages/         # Page components
│   ├── routes/        # Router configuration
│   ├── store/         # Global state management
│   ├── stories/       # Storybook stories
│   ├── styles/        # Global styles
└── ... configuration files

Key directories:

  • assets/: Contains static files like images and localization files
  • lib/: Shared utilities, helpers, and configurations
    • utils/: Utility functions and helpers
    • types/: Shared TypeScript types and interfaces
    • hooks/: Custom React hooks
  • components/: Reusable UI components organized by feature
  • features/: Feature-specific code organized in modules
  • pages/: Top-level page components
  • routes/: TanStack Router configuration and route definitions
  • store/: Global state management using Zustand

This structure better reflects your actual project organization and includes the additional directories like features, hooks, pages, and store that are present in your workspace.

License

MIT License

About

Offline PDF tool for editing PDFs

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •