Public Repository – Developed by William Pérez Beltrán
receipts_api is a Ruby on Rails API application for managing receipts, payments, and photos. The API includes OCR text extraction functionality and integrates with Tesseract OCR for text recognition from images.
- Create and manage receipts with associated payments and photos
- Text extraction using Tesseract OCR
- PostgreSQL or SQLite support for development
- RESTful API endpoints for receipt management
- Example JSON responses in
json_examples
- Ruby 3.x (as specified in
.ruby-version)
- Rails 7.x
- Tesseract OCR (for text extraction)
On Linux:
sudo apt-get install tesseract-ocrOn MacOS (with Homebrew):
brew install tesseract- Configure database in
config/database.yml - Supports PostgreSQL for production and SQLite for development
rails db:create
rails db:migrate
rails db:seed # optionalrspec
# or
rails testrails serverThe API will be available at http://localhost:3000
- Tesseract OCR for text extraction
- Rails ActiveJob (optional) for background tasks
- Make sure PostgreSQL is installed on the production server
- Set environment variables for database credentials
- Precompile assets if needed:
rails assets:precompile- Start the server using
rails serveror a web server like Puma or Passenger
William Pérez Beltrán