Skip to content

Anika-Tabasum/Product_Scanner_AI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AI-Powered Product Identification Platform

An advanced AI-powered product identification platform that transforms visual product recognition through cutting-edge OCR and machine learning technologies.

Features

  • AI-powered product recognition
  • Guest user functionality
  • User authentication and account management
  • Product database with search capabilities
  • Demographic data visualization
  • Responsive UI with dark/light mode

Docker Setup

This application can be run using Docker, which makes it easy to deploy in any environment without worrying about dependencies.

Prerequisites

  • Docker and Docker Compose installed on your system
  • OpenAI API key (for AI-powered identification)

Running with Docker

Option 1: Using the Helper Script

  1. Clone this repository
  2. Make the helper script executable: chmod +x docker-run.sh
  3. Run the helper script: ./docker-run.sh
  4. The script will:
    • Check for Docker and Docker Compose
    • Create a sample .env file if one doesn't exist
    • Build and start the containers
    • Wait for the database to be ready
    • Run migrations
    • Provide a success message with the URL

Option 2: Manual Setup

  1. Clone this repository
  2. Create a .env file in the root directory with your environment variables:
# Required
DATABASE_URL=postgres://postgres:postgres@db:5432/postgres
SESSION_SECRET=your_session_secret
OPENAI_API_KEY=your_openai_api_key

# Optional - for email functionality
EMAIL_HOST=smtp.example.com
EMAIL_PORT=587
EMAIL_USER=your_email_user
EMAIL_PASS=your_email_password
EMAIL_FROM=noreply@example.com
  1. Build and start the containers:
docker-compose up -d
  1. Run migrations:
docker-compose exec app npm run db:push
  1. Access the application at http://localhost:4060

Database Migration

The first time you run the application, you'll need to run the migrations:

docker-compose exec app npm run db:push

Development

Requirements

  • Node.js 20+
  • PostgreSQL

Setup

  1. Install dependencies: npm install
  2. Create .env file with required environment variables
  3. Run migrations: npm run db:push
  4. Start the dev server: npm run dev

License

MIT# productScaner

Releases

No releases published

Packages

 
 
 

Contributors

Languages