An advanced AI-powered product identification platform that transforms visual product recognition through cutting-edge OCR and machine learning technologies.
- 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
This application can be run using Docker, which makes it easy to deploy in any environment without worrying about dependencies.
- Docker and Docker Compose installed on your system
- OpenAI API key (for AI-powered identification)
- Clone this repository
- Make the helper script executable:
chmod +x docker-run.sh - Run the helper script:
./docker-run.sh - The script will:
- Check for Docker and Docker Compose
- Create a sample
.envfile 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
- Clone this repository
- Create a
.envfile 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
- Build and start the containers:
docker-compose up -d- Run migrations:
docker-compose exec app npm run db:push- Access the application at http://localhost:4060
The first time you run the application, you'll need to run the migrations:
docker-compose exec app npm run db:push- Node.js 20+
- PostgreSQL
- Install dependencies:
npm install - Create
.envfile with required environment variables - Run migrations:
npm run db:push - Start the dev server:
npm run dev
MIT# productScaner