{"id":40088078,"url":"https://github.com/devil-1964/backendh","last_synced_at":"2026-01-19T10:01:01.090Z","repository":{"id":316650584,"uuid":"1064302368","full_name":"devil-1964/backendH","owner":"devil-1964","description":null,"archived":false,"fork":false,"pushed_at":"2025-09-25T21:35:15.000Z","size":33,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-09-25T22:46:21.064Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://backendh-ezl1.onrender.com/","language":"EJS","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/devil-1964.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-25T20:48:42.000Z","updated_at":"2025-09-25T22:44:42.000Z","dependencies_parsed_at":null,"dependency_job_id":"c61f8181-b5a9-44f3-a9e4-c833dccdae78","html_url":"https://github.com/devil-1964/backendH","commit_stats":null,"previous_names":["devil-1964/backendh"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/devil-1964/backendH","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devil-1964%2FbackendH","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devil-1964%2FbackendH/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devil-1964%2FbackendH/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devil-1964%2FbackendH/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/devil-1964","download_url":"https://codeload.github.com/devil-1964/backendH/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devil-1964%2FbackendH/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28565050,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-19T08:53:44.001Z","status":"ssl_error","status_checked_at":"2026-01-19T08:52:40.245Z","response_time":67,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":"2026-01-19T10:01:00.028Z","updated_at":"2026-01-19T10:01:01.083Z","avatar_url":"https://github.com/devil-1964.png","language":"EJS","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Backend API\n\n## Visit this link for better experience\nhttps://backendh-ezl1.onrender.com/\n\nA backend service that processes offers and leads using rule-based logic combined with AI reasoning to generate lead scores and intent classifications.\n\n## Setup Steps\n\n\n### 1. Clone Repository\n```bash\ngit clone https://github.com/devil-1964/backendH.git\ncd backendH\n```\n\n### 2. Install Dependencies\n```bash\ncd server\nnpm install\n```\n\n### 3. Environment Configuration\nCreate `.env` file in the server directory:\n```\nPORT=3000\nGEMINI_API_KEY=your_gemini_api_key_here\n```\n\n### 4. Run Server\n```bash\nnpm start\n# or for development\nnpm run dev\n```\n\nServer will start at `http://localhost:3000`\n\n## API Usage Examples\n\n### 1. Store Offer\n```bash\ncurl -X POST http://localhost:3000/offer \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n    \"name\": \"AI Outreach Automation\",\n    \"value_props\": [\"24/7 outreach\", \"6x more meetings\"],\n    \"ideal_use_cases\": [\"B2B SaaS mid-market\"]\n  }'\n```\n\n### 2. Upload Leads CSV\n```bash\ncurl -X POST http://localhost:3000/leads/upload \\\n  -F \"leads=@leads.csv\"\n```\n\n**Required CSV format:**\n```csv\nname,role,company,industry,location,linkedin_bio\nJohn Doe,CEO,TechCorp,Technology,San Francisco,Tech entrepreneur with 10+ years\nJane Smith,VP Sales,SalesForce,Software,New York,Sales leader specializing in B2B\n```\n\n### 3. Process \u0026 Score Leads\n```bash\ncurl -X POST http://localhost:3000/score\n```\n\n### 4. Get Results\n```bash\ncurl -X GET http://localhost:3000/result\n```\n\n### 5. Download CSV Results\n```bash\ncurl -X GET http://localhost:3000/download -o results.csv\n```\n\n## Project Structure\n\n```\nserver/\n├── controllers/          # Request handlers\n│   ├── offerController.js\n│   ├── leadsController.js\n│   ├── scoreController.js\n│   └── downloadController.js\n├── routes/              # API routes\n│   ├── offerRoute.js\n│   ├── leadsRoute.js\n│   ├── scoreRoute.js\n│   └── downloadRoute.js\n├── services/            # Business logic\n│   ├── scoringService.js\n│   └── aiService.js\n├── utils/              # Helper functions\n│   └── csvParser.js\n├── views/              # EJS templates\n│   ├── index.ejs\n│   └── test.ejs\n├── uploads/            # Temporary file storage\n├── package.json\n└── index.js            # Server entry point\n```\n\n## Technologies Used\n\n- **Node.js \u0026 Express.js** - Backend framework\n- **Google Gemini API** - AI integration for intent classification\n- **Multer** - File upload handling\n- **CSV Parser** - CSV file processing\n- **EJS** - Template engine for documentation\n\n## Features\n\n- RESTful API design with proper error handling\n- Rule-based scoring with configurable weights\n- AI-powered intent classification using Google Gemini\n- CSV upload and download functionality\n- In-memory data storage (easily replaceable with database)\n- Interactive web interface for testing\n- Comprehensive API documentation\n\n## Testing\n\nVisit `http://localhost:3000/test` for an interactive interface to test all endpoints step by step.\n\n## Deployment\n\n\n## Area of Improvement\n\n- Can do much better error handling\n- Forget to commit while I did go according to steps and requirements according to the google docs\n- Rule logic can be much better with keywords that are more similar to each other or similar roles but didn't get any api for it\n- In future can use linkedin link and webscraper to generate which is better candidate for this role.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevil-1964%2Fbackendh","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdevil-1964%2Fbackendh","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevil-1964%2Fbackendh/lists"}