{"id":18948513,"url":"https://github.com/bahdcoder/population-management-api","last_synced_at":"2025-07-05T06:36:56.825Z","repository":{"id":100521688,"uuid":"170006280","full_name":"bahdcoder/population-management-api","owner":"bahdcoder","description":null,"archived":false,"fork":false,"pushed_at":"2019-02-10T18:29:57.000Z","size":61,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-21T03:11:21.400Z","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/bahdcoder.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}},"created_at":"2019-02-10T17:40:08.000Z","updated_at":"2019-02-10T18:29:59.000Z","dependencies_parsed_at":"2023-05-15T16:45:31.639Z","dependency_job_id":null,"html_url":"https://github.com/bahdcoder/population-management-api","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bahdcoder%2Fpopulation-management-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bahdcoder%2Fpopulation-management-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bahdcoder%2Fpopulation-management-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bahdcoder%2Fpopulation-management-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bahdcoder","download_url":"https://codeload.github.com/bahdcoder/population-management-api/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":256264013,"owners_count":22362301,"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","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":"2024-11-08T13:13:47.953Z","updated_at":"2025-07-05T06:36:56.818Z","avatar_url":"https://github.com/bahdcoder.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Population Management API\n\n### How to run project\nThis project is built on the adonis framework. To make development faster, install the adonis cli using the command `npm install -g @adonisjs/cli`\n\n - Clone repository\n - Install npm dependencies\n - Create a file `.env` at project root, and use `.env.example` as a sample to setup your environment variables. For database, setup mysql or sqlite3. your choice.\n - Be sure to generate application key using `adonis key:generate`\n - Run migrations using command `adonis migration:run`\n - Run seeders using command `adonis seed`\n - Run application using `adonis serve --dev`\n - Run application tests using `adonis test`\n - To get a list of users with authentication tokens for them, make api request to `https://localhost:3333/`\n\n\n#### API DOCUMENTATION / Available endpoints\n\n - `POST /locations`: This endpoint is used to add new location data. \n    - Required attributes: \n       - `name` must be unique\n       - `male_count` must be an integer\n       - `female_count` must be an integer\n\n    - Optional attributes\n       - `location_id` must be a valid id of an existing location. use this to create nested locations.\n\n - `GET /locations`: This endpoint is used to get all locations and their data.\n - `PUT/PATCH /locations/:id`: This endpoint is used to update any attributes of the location. All attributes except `id` and `location_id` can be updated.\n - `DELETE /locations/:id`: This endpoint is used to delete a location.\n\n For more details on all endpoints, please refer to the tests.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbahdcoder%2Fpopulation-management-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbahdcoder%2Fpopulation-management-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbahdcoder%2Fpopulation-management-api/lists"}