Skip to content

diazdesandi/ocr-azure-project

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

OCR Azure Project

This project consists of two main parts: ocr-backend and ocr-frontend.

ocr-backend

The backend is implemented in Go and provides the OCR (Optical Character Recognition) functionality using Azure services.

Project Setup

  1. Install dependencies:

    go mod tidy
  2. Run the server:

    go run cmd/main.go

Environment Variables

The backend uses environment variables for configuration. Ensure you have a .env file with the necessary variables. Example:

```env
PORT=8080
AZURE_OCR_ENDPOINT=<your-azure-ocr-endpoint>
AZURE_OCR_KEY=<your-azure-ocr-key>
```

Main Components

  • Main Entry Point: cmd/main.go
  • Environment Initialization: utils.InitEnv
  • Handlers: handlers.AzureHandler, handlers.CheckStatus

ocr-frontend

The frontend is implemented using Vue 3 and Vite.

Recommended IDE Setup

VSCode + Volar (and disable Vetur).

Type Support for .vue Imports in TS

TypeScript cannot handle type information for .vue imports by default, so we replace the tsc CLI with vue-tsc for type checking. In editors, we need Volar to make the TypeScript language service aware of .vue types.

Customize configuration

See Vite Configuration Reference.

Project Setup

  1. Install dependencies:

    npm install
  2. Compile and Hot-Reload for Development:

    npm run dev
  3. Type-Check, Compile and Minify for Production:

    npm run build
  4. Run Unit Tests with Vitest:

    npm run test:unit
  5. Lint with ESLint:

    npm run lint

Main Components

  • Main Layout: HomeLayout.vue
  • Tailwind CSS Configuration: tailwind.config.js, tailwind.css

Common

Version Control

This project uses Git for version control. Ensure you have .gitignore files in both ocr-backend and ocr-frontend to exclude unnecessary files from version control.

License

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors