{"id":51548421,"url":"https://github.com/diya050/supplier-contact-log","last_synced_at":"2026-07-09T21:01:01.836Z","repository":{"id":361342647,"uuid":"1254064536","full_name":"Diya050/supplier-contact-log","owner":"Diya050","description":"Supplier contact tracking application built with Python, FastAPI, PostgreSQL, and HTML/CSS/JavaScript.","archived":false,"fork":false,"pushed_at":"2026-05-30T08:07:48.000Z","size":8,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-05-30T08:20:34.528Z","etag":null,"topics":["css","fastapi","html","js","postgresql","python"],"latest_commit_sha":null,"homepage":"","language":"HTML","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/Diya050.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":"2026-05-30T05:21:55.000Z","updated_at":"2026-05-30T08:07:52.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/Diya050/supplier-contact-log","commit_stats":null,"previous_names":["diya050/supplier-contact-log"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/Diya050/supplier-contact-log","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Diya050%2Fsupplier-contact-log","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Diya050%2Fsupplier-contact-log/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Diya050%2Fsupplier-contact-log/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Diya050%2Fsupplier-contact-log/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Diya050","download_url":"https://codeload.github.com/Diya050/supplier-contact-log/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Diya050%2Fsupplier-contact-log/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35312540,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-07-09T02:00:07.329Z","response_time":57,"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":["css","fastapi","html","js","postgresql","python"],"created_at":"2026-07-09T21:00:59.004Z","updated_at":"2026-07-09T21:01:01.827Z","avatar_url":"https://github.com/Diya050.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Supplier Contact Log Tracker\n\nA lightweight supplier contact tracking system built with:\n\n* FastAPI (Python backend)\n* PostgreSQL (database)\n* HTML/CSS/JavaScript (frontend)\n\n\n\n# 1. Clone Repository\n\n```bash\ngit clone https://github.com/Diya050/supplier-contact-log.git\ncd supplier-contact-log\n```\n\n\n\n# 2. Create \u0026 Activate Virtual Environment\n\n### Create environment\n\n```bash\npy -3.11 -m venv venv\n```\n\n### Activate\n\n#### Linux / macOS\n\n```bash\nsource venv/bin/activate\n```\n\n#### Windows\n\n```bash\n./venv/Scripts/activate\n```\n\nYou should see:\n\n```bash\n(venv)\n```\n\n\n\n# 3. Install Dependencies\n\n```bash\npip install -r requirements.txt\n```\n\n\n\n# 4. Database Setup (PostgreSQL)\n\n### Verify installation\n\n```bash\npsql --version\n```\n\nIf not found, install PostgreSQL and ensure `psql` is in PATH.\n\n**Solution:** Add psql to PATH\n\nIf PostgreSQL is already installed:\n\n1. Open:\n      - System Properties → Environment Variables\n      - Under System Variables → Path → Edit\n\n2. Add: `C:\\Program Files\\PostgreSQL\\\u003cversion\u003e\\bin`\n\n3. Restart PowerShell\n\n`Note:` Replace `\u003cversion\u003e` with your PostgreSQL version\n\n\n### Create database\n\n#### Option A (preferred)\n\n```bash\ncreatedb -U postgres supplier_contacts\n```\n\n#### Option B (psql shell)\n\n```bash\npsql -U postgres\n```\n\nInside:\n\n```sql\nCREATE DATABASE supplier_contacts;\n\\q\n```\n\n\n\n### Verify database\n\n```bash\npsql -U postgres -l\n```\n\nCheck that:\n\n```\nsupplier_contacts\n```\n\n\n\n### Run schema\n\n```bash\npsql -U postgres -d supplier_contacts -f schema.sql\n```\n\n\n\n### Verify tables\n\n```bash\npsql -U postgres -d supplier_contacts\n```\n\nInside psql:\n\n```sql\n\\dt\n\\d contacts\n\\q\n```\n\nExpected table:\n\n```\ncontacts\n```\n\n\n\n# 5. Environment Variables\n\nCreate a `.env` file in the project root:\n\n```env\nDATABASE_URL=postgresql://postgres:YOUR_PASSWORD@localhost:5432/supplier_contacts\n```\n\nReplace `YOUR_PASSWORD` with your PostgreSQL password.\n\nRefer to `.env.example` for reference.\n\n\n\n# 6. Run FastAPI Server\n\n```bash\nuvicorn main:app --reload\n```\n\nServer will start at:\n\n```\nhttp://127.0.0.1:8000\n```\n\nAPI documentation is available at:\n\n```\nhttp://127.0.0.1:8000/docs\n```\n\n\n\n# 7. Open Frontend\n\nEnsure backend is running, then open:\n\n* `index.html` (double-click), or\n* Right-click → Open with browser\n\n\n\n# 8. Usage\n\n### Add Contact\n\n* Fill form\n* Click **Add Contact**\n* Table updates instantly\n\n### View Contacts\n\n* Auto-loads on page open\n\n### Delete Contact\n\n* Click **Delete**\n* Row removed without refresh\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdiya050%2Fsupplier-contact-log","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdiya050%2Fsupplier-contact-log","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdiya050%2Fsupplier-contact-log/lists"}