{"id":29961431,"url":"https://github.com/beemi/geousercoords","last_synced_at":"2025-08-03T23:11:00.380Z","repository":{"id":205599276,"uuid":"714613936","full_name":"beemi/GeoUserCoords","owner":"beemi","description":"User Geo coords","archived":false,"fork":false,"pushed_at":"2023-12-15T11:35:16.000Z","size":183,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2023-12-15T12:43:44.498Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/beemi.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}},"created_at":"2023-11-05T11:50:26.000Z","updated_at":"2023-11-05T11:51:07.000Z","dependencies_parsed_at":null,"dependency_job_id":"a3ae2705-999a-4543-8705-06cfd759fb94","html_url":"https://github.com/beemi/GeoUserCoords","commit_stats":null,"previous_names":["beemi/geousercoords"],"tags_count":0,"template":null,"template_full_name":null,"purl":"pkg:github/beemi/GeoUserCoords","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/beemi%2FGeoUserCoords","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/beemi%2FGeoUserCoords/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/beemi%2FGeoUserCoords/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/beemi%2FGeoUserCoords/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/beemi","download_url":"https://codeload.github.com/beemi/GeoUserCoords/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/beemi%2FGeoUserCoords/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268625009,"owners_count":24280188,"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-08-03T02:00:12.545Z","response_time":2577,"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-08-03T23:10:44.478Z","updated_at":"2025-08-03T23:11:00.240Z","avatar_url":"https://github.com/beemi.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# User geo coordinates API\n\n## Description\n\nThis is a simple API that returns the geo coordinates of a user based on the postcode provided.\n\n## Installation\n\n```bash\nnpm install express axios body-parser cors express helmet morgan\n```\n\n### Development\n\nTo run the app in development mode, run the following commandm which will start the mongodb instance and the app.\n\n```bash\ndocker-compose up -d\n```\nBuild the Docker image for local development\n    \n```bash\ndocker build -t user-geo-coordinates-api .\n```\n\n### Project structure\n\n```bash\nyour-app/\n│\n├── src/\n│   ├── models/                # Mongoose models / schemas.\n│   │   └── ...\n│   ├── routes/                # Express route definitions.\n│   │   └── ...\n│   ├── services/              # Business logic and service layer.\n│   │   ├── postcodeService.js # Service for handling postcode-related operations.\n│   │   └── externalApi.js     # This is where you'd interact with external APIs.\n│   ├── config/                # Configuration files.\n│   │   └── ...\n│   ├── utils/                 # Utility functions and helpers.\n│   │   └── ...\n│   ├── middleware/            # Custom middleware for Express.\n│   │   └── ...\n│   ├── app.js                 # Express app setup.\n│   └── server.js              # Server entry point.\n│\n├── package.json               # Project manifest.\n└── ...\n```\n### Build Docker image\n\nUsing github actions, the docker image is built and pushed to docker hub.\n\n```bash\ndocker run -p 3000:3000 -d \\\n  -e MONGO_INITDB_ROOT_USERNAME=newadmin \\\n  -e MONGO_INITDB_ROOT_PASSWORD=newpassword \\\n  -e MONGO_HOST=host.docker.internal \\\n  -e MONGO_PORT=27017 \\\n  -e MONGO_DB=newdatabase \\\n  your-app-name\n```\n\n### 🎨 API Documentation \n\nThe API documentation is available at [http://localhost:3000/api-docs](http://localhost:3000/api-docs)\n\n![API Documentation](docs/img_1.png)\n\n### 📝 Deployment\n\nDocker image is deployed to kubernetes cluster using github actions and helm.\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbeemi%2Fgeousercoords","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbeemi%2Fgeousercoords","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbeemi%2Fgeousercoords/lists"}