0.1.43 • Published 8 months ago

@parcha/docs-playground v0.1.43

Weekly downloads
-
License
-
Repository
github
Last release
8 months ago

Document Validation Playground

A modern React application built with Vite and TypeScript for performing quick business verifications using the Parcha API. The app features a clean UI built with Mantine components and includes PDF viewing capabilities.

🚀 Prerequisites

  • Node.js (v18 or higher)
  • npm or yarn package manager
  • Parcha API credentials (API key and agent key)

📦 Installation

  1. Clone the repository:
git clone https://github.com/Parcha-ai/parcha-api.git
cd parcha-api/typescript/examples/flash_check
  1. Install dependencies:
npm install
# or if you use yarn
yarn install
  1. Configure environment variables:

Create a .env file in the project root with the following variables:

# Required: Your Parcha API key from the dashboard
VITE_API_KEY=your_api_key_here

# Required: Your agent key for document validation
# Please ask the Parcha team for your unique agent key.
VITE_AGENT_KEY=parcha-poa-v1

# Optional: API URL - defaults to https://demo.parcha.ai/api/v1
VITE_API_URL=http://localhost:8001/api/v1

💡 Note: You can get your API credentials from the Parcha Dashboard. If you don't have access yet, contact our team.

🛠️ Development

To run the development server:

npm run dev
# or with yarn
yarn dev

This will start the development server at http://localhost:5173. The app features hot module replacement (HMR) for a smooth development experience.

🏗️ Building for Production

To create a production build:

npm run build
# or with yarn
yarn build

To preview the production build locally:

npm run preview
# or with yarn
yarn preview

🧰 Tech Stack

  • React 18
  • TypeScript
  • Vite
  • Mantine UI Components
  • PDF.js for PDF handling
  • Axios for API requests

📝 Available Scripts

  • npm run dev - Start development server
  • npm run build - Create production build
  • npm run lint - Run ESLint
  • npm run preview - Preview production build

📚 Features

  • Modern React with TypeScript
  • Fast development with Vite
  • Beautiful UI with Mantine components
  • PDF file handling and preview
  • File drag and drop support
  • Real-time notifications
  • Type-safe development experience

🤝 Contributing

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add some amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

📄 License

This project is licensed under the MIT License - see the LICENSE file for details.

0.1.43

8 months ago

0.1.42

8 months ago

0.1.41

8 months ago

0.1.40

8 months ago

0.1.39

8 months ago

0.1.38

8 months ago

0.1.37

8 months ago

0.1.36

8 months ago

0.1.33

8 months ago

0.1.32

8 months ago

0.1.31

8 months ago

0.1.28

9 months ago

0.1.26

9 months ago

0.1.25

9 months ago

0.1.24

9 months ago

0.1.23

9 months ago

0.1.22

9 months ago

0.1.21

9 months ago

0.1.20

9 months ago

0.1.19

9 months ago

0.1.18

9 months ago

0.1.16

9 months ago

0.1.14

9 months ago

0.1.13

9 months ago

0.1.12

9 months ago

0.1.11

9 months ago

0.1.10

9 months ago

0.1.9

9 months ago

0.1.8

9 months ago