{"id":34896470,"url":"https://github.com/fajar-dev/sync-is-nusacontact","last_synced_at":"2026-05-23T06:31:09.941Z","repository":{"id":324313263,"uuid":"1096415929","full_name":"fajar-dev/sync-is-nusacontact","owner":"fajar-dev","description":"sync-is-nusacontact","archived":false,"fork":false,"pushed_at":"2025-11-15T01:53:49.000Z","size":11,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-11-15T03:36:25.488Z","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/fajar-dev.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-11-14T11:49:27.000Z","updated_at":"2025-11-15T01:53:52.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/fajar-dev/sync-is-nusacontact","commit_stats":null,"previous_names":["fajar-dev/sync-is-nusacontact"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/fajar-dev/sync-is-nusacontact","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fajar-dev%2Fsync-is-nusacontact","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fajar-dev%2Fsync-is-nusacontact/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fajar-dev%2Fsync-is-nusacontact/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fajar-dev%2Fsync-is-nusacontact/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fajar-dev","download_url":"https://codeload.github.com/fajar-dev/sync-is-nusacontact/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fajar-dev%2Fsync-is-nusacontact/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28048025,"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-12-26T02:00:06.189Z","response_time":55,"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-12-26T07:04:05.242Z","updated_at":"2025-12-26T07:05:23.567Z","avatar_url":"https://github.com/fajar-dev.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Sync IS NusaContact\n\nData synchronization service between Information System (IS) and NusaContact. This service is used to sync customer contact data from IS to NusaContact.\n\n## 📦 Installation\n\n### Prerequisites\n\nMake sure you have installed:\n- [Bun](https://bun.sh/) latest version\n\n### Installation Steps\n\n1. Clone this repository:\n```bash\ngit clone https://github.com/fajar-dev/sync-is-nusacontact.git\ncd sync-is-nusacontact\n```\n\n2. Install dependencies:\n```bash\nbun install\n```\n\n3. Configure environment variables (create `.env` file):\n```env\n# API Configuration\nPORT=3000\n\nDB_HOST=localhost\nDB_PORT=3306\nDB_USER=root\nDB_PASSWORD=\nDB_NAME=is\n\nNUSACONTACT_SYNC_CONTACT_API_URL= http://nusacontact.com/api/contacts\nNUSACONTACT_API_KEY=\nNUSACONTACT_SYNC_CONTACT_MAX_ATTEMPTS=16\n```\n\n## 🚀 Usage\n\n### Development Mode\n\nRun the application in development mode:\n```bash\nbun run dev\n```\n\nBuild the application:\n```bash\nbun run build\n```\n\n### Production Mode\n\nRun the application in production mode:\n```bash\nbun run dist/main.js\n```\n\n## 📝 API Documentation\n\n### Synchronization Endpoint\n\n#### POST /sync-is-nusacontact\nPerform contact data synchronization\n\n**Request Body:**\n```json\n{\n  \"contactNumber\": \"08123456789\",\n  \"custIds\": \"123,456,789\",\n  \"contactName\": \"John Doe\"\n}\n```\n\n**Response:**\n```json\n{\n  \"success\": true,\n  \"message\": \"Contact created successfully\",\n}\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffajar-dev%2Fsync-is-nusacontact","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffajar-dev%2Fsync-is-nusacontact","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffajar-dev%2Fsync-is-nusacontact/lists"}