{"id":29407097,"url":"https://github.com/princecodes247/savanna-interview","last_synced_at":"2025-09-08T22:35:02.391Z","repository":{"id":252850392,"uuid":"841653220","full_name":"princecodes247/savanna-interview","owner":"princecodes247","description":null,"archived":false,"fork":false,"pushed_at":"2024-08-13T05:38:29.000Z","size":284,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-08-12T05:26:05.918Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","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/princecodes247.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}},"created_at":"2024-08-12T20:55:07.000Z","updated_at":"2024-08-13T05:38:32.000Z","dependencies_parsed_at":"2025-07-11T00:44:16.850Z","dependency_job_id":"6dad7d20-31de-4bd2-b05b-8f757098a7ef","html_url":"https://github.com/princecodes247/savanna-interview","commit_stats":null,"previous_names":["princecodes247/savanna-interview"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/princecodes247/savanna-interview","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/princecodes247%2Fsavanna-interview","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/princecodes247%2Fsavanna-interview/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/princecodes247%2Fsavanna-interview/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/princecodes247%2Fsavanna-interview/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/princecodes247","download_url":"https://codeload.github.com/princecodes247/savanna-interview/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/princecodes247%2Fsavanna-interview/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274231416,"owners_count":25245659,"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-09-08T02:00:09.813Z","response_time":121,"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-07-11T00:40:36.879Z","updated_at":"2025-09-08T22:35:02.365Z","avatar_url":"https://github.com/princecodes247.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# GitHub Commits Indexer\n\n## Overview\n\nThis project is a robust GitHub Commits Indexer that indexes commits on any provided GitHub repository and keeps the index up-to-date. \n\n## Features\n\n- Fetch comprehensive repository details (name, owner, description, forks, stars, etc.)\n- Retrieve and analyze commit history\n- Utilizes PostgreSQL for data persistence\n- Implements Redis for job queues\n- Includes a comprehensive test suite for reliability\n\n## Tech Stack\n\n- Node.js\n- TypeScript\n- PostgreSQL\n- Redis\n- Vitest (for testing)\n\n## Prerequisites\n\n- Node.js (v14 or later)\n- GitHub Personal Access Token\n\n## Setup\n\n1. Clone the repository:\n   ```\n   git clone https://github.com/princecodes247/savanna-interview.git\n   cd savanna-interview\n   ```\n\n2. Create a `.env` from `.env.example` file in the root directory and add the following environment variables:\n   ```\n   NODE_ENV=development\n   GITHUB_TOKEN=your_github_personal_access_token\n   PORT=3000\n   POSTGRES_USER=postgres\n   POSTGRES_PASSWORD=password\n   POSTGRES_DB=postgresdb\n   POSTGRES_PORT=5432\n   REDIS_URL=redis\n   REDIS_PORT=6379\n   ```\n   Replace `your_github_personal_access_token` with your actual GitHub token.\n\n3. Run the installation:\n   ```\n   npm install\n   ```\n\n4. Run the dev server:\n   ```\n   npm run api:watch\n   ```\nThe application should now be running on `http://localhost:3000`\n\n5. Run the cron:\n   ```\n   npm run cron:watch\n   ```\n\n## Running Tests\n\nTo run the test suite:\n\n   ```\n   npm run test\n   ```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprincecodes247%2Fsavanna-interview","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fprincecodes247%2Fsavanna-interview","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprincecodes247%2Fsavanna-interview/lists"}