{"id":31482621,"url":"https://github.com/shz-code/saleano","last_synced_at":"2025-10-02T07:56:45.456Z","repository":{"id":316426242,"uuid":"1062774456","full_name":"shz-code/saleano","owner":"shz-code","description":null,"archived":false,"fork":false,"pushed_at":"2025-09-24T13:29:43.000Z","size":15,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-09-24T15:27:12.715Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/shz-code.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-09-23T17:55:00.000Z","updated_at":"2025-09-24T13:29:46.000Z","dependencies_parsed_at":"2025-09-24T15:27:14.203Z","dependency_job_id":"74807d0e-cf91-4330-9f1e-176691721faf","html_url":"https://github.com/shz-code/saleano","commit_stats":null,"previous_names":["shz-code/saleano"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/shz-code/saleano","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shz-code%2Fsaleano","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shz-code%2Fsaleano/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shz-code%2Fsaleano/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shz-code%2Fsaleano/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/shz-code","download_url":"https://codeload.github.com/shz-code/saleano/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shz-code%2Fsaleano/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":277974430,"owners_count":25908396,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-02T02:00:08.890Z","response_time":67,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-10-02T07:56:41.708Z","updated_at":"2025-10-02T07:56:45.451Z","avatar_url":"https://github.com/shz-code.png","language":"Python","readme":"# Saleano - Product Search API\n\nA FastAPI-based product search platform with AI-powered similarity search using vector embeddings.\n\n## Features\n\n- **Product Management**: Create and retrieve products with detailed information\n- **AI-Powered Search**: Semantic similarity search using Google Gemini embeddings and PostgreSQL vector search\n- **Modular Architecture**: Clean separation of models, routes, schemas, and utilities\n- **Web Interface**: Basic HTML templates for homepage and about page\n- **Database Integration**: PostgreSQL with SQLModel and pgvector for vector operations\n\n## Tech Stack\n\n- **Backend**: FastAPI, Python\n- **Database**: PostgreSQL with pgvector extension\n- **ORM**: SQLModel (SQLAlchemy + Pydantic)\n- **AI**: Google Gemini for embeddings\n- **Templates**: Jinja2\n- **Environment**: python-dotenv\n\n## Prerequisites\n\n- Python 3.8+\n- PostgreSQL with pgvector extension\n- Google Gemini API key\n\n## Installation\n\n1. Clone the repository:\n   ```bash\n   git clone \u003crepository-url\u003e\n   cd saleano\n   ```\n\n2. Create a virtual environment:\n   ```bash\n   python -m venv env\n   env\\Scripts\\activate  # On Windows\n   # or\n   source env/bin/activate  # On macOS/Linux\n   ```\n\n3. Install dependencies:\n   ```bash\n   pip install -r requirements.txt\n   ```\n\n4. Set up PostgreSQL:\n   - Install PostgreSQL\n   - Enable pgvector extension:\n     ```sql\n     CREATE EXTENSION vector;\n     ```\n\n## Configuration\n\n1. Create a `.env` file in the project root:\n   ```\n   GEMINI_API_KEY=your_gemini_api_key_here\n   DATABASE_URL=postgresql://username:password@localhost:5432/database_name\n   ```\n\n2. Update the database URL in `src/db.py` if needed.\n\n## Database Setup\n\nRun the application once to create tables automatically, or manually:\n\n```bash\npython -c \"from src.db import engine; from sqlmodel import SQLModel; SQLModel.metadata.create_all(engine)\"\n```\n\n## Running the Application\n\nStart the development server:\n\n```bash\nuvicorn src.main:app --reload\n```\n\nThe API will be available at `http://127.0.0.1:8000`\n\n- API Documentation: `http://127.0.0.1:8000/docs`\n- Web Interface: `http://127.0.0.1:8000`\n\n## API Endpoints\n\n### Products\n\n- `GET /products/` - Get all products\n- `POST /products/` - Create a new product\n- `GET /products/search?q=\u003cquery\u003e\u0026limit=\u003cnumber\u003e` - Search products by similarity\n\n### Web Pages\n\n- `GET /` - Homepage\n- `GET /about` - About page\n\n\n## Project Structure\n\n```\nsrc/\n├── main.py              # Application entry point\n├── db.py                # Database connection and session\n├── lib/\n│   └── gemini.py        # Gemini AI utilities\n├── models/\n│   ├── __init__.py\n│   ├── product.py       # Product database model\n│   └── user.py          # User database model\n├── routes/\n│   ├── __init__.py\n│   ├── product.py       # Product API routes\n│   └── user.py          # User API routes\n├── schemas/\n│   ├── __init__.py\n│   └── product.py       # Pydantic schemas\n├── static/              # Static files (CSS, JS, images)\n└── templates/           # Jinja2 HTML templates\n```\n\n## Acknowledgments\n\n- FastAPI for the web framework\n- SQLModel for the ORM\n- Google Gemini for AI embeddings\n- pgvector for vector search in PostgreSQL\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshz-code%2Fsaleano","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshz-code%2Fsaleano","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshz-code%2Fsaleano/lists"}